LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-29-2005, 10:46 PM   #1
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Rep: Reputation: 16
Apache can decompress gzip'ed files as they're requested!


Hello,

So Apache can decompress gzip'ed HTML and other files as they're requested. What in the world might be the advantage of this? To save a little bit of hard drive space by compressing, you put so much extra load on the server, don't you? (Because it would have to decompress the file each time before serving it to the client.)

If what I said it correct, then doing so makes no sense because hard drive space can always be added easily and relatively cheaply, while CPU capacity is a more valuable and constrained resource, isn't it?

Thanks.
 
Old 03-29-2005, 11:19 PM   #2
mikeheggy
Member
 
Registered: Jan 2005
Posts: 37

Rep: Reputation: 15
Are you talking about mod_deflate or mod_gzip for apache?

I think what you are referring to is apache's ability to gzip files on the fly and send it to the browser. That means the whole file is stored on the hard drive. But when it's requested, it's compressed and send to a client (that is, if they support it). This is done to save bandwidth. A lot of bandwidth actually, but at the same time sacrificing cpu and memory load on the server, like you said.

I run a couple of websites out of my own house on a DSL line, which has a very limited upload speed - 300 kilobits. But, by setting up mod_deflate in apache, it makes the website (and server) seem super fast, because it uses less bandwidth.
 
Old 03-29-2005, 11:42 PM   #3
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Original Poster
Rep: Reputation: 16
Thanks for the response. Wow, actually, I didn't know Apache could do what you described, but that's pretty cool!

What I was referring to was the opposite, where it would be stored on the server as, not the regular file, but a gzip file, like index.html.gz

Then when index.html is requested, Apache (after configuring the directives to do so) decompresses index.html.gz and sends it index.html.

This wouldn't decrease bandwidth usage, but it would increase server load and (looks like) for the sole purpose of saving some hard drive space.

What do you think about this, and is there a sensible reason to do this?
 
Old 03-29-2005, 11:47 PM   #4
mikeheggy
Member
 
Registered: Jan 2005
Posts: 37

Rep: Reputation: 15
No, I haven't heard of that before. Where did you read that, I'm curious?

I can't think of any advantage of doing something like that, besides saving disk space. But like you said that would be a horrible waste of cpu and memory usage.
 
Old 03-30-2005, 12:15 AM   #5
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Original Poster
Rep: Reputation: 16
Haha, this is the second post today where I got some info off Rute and people have said they have no idea what I'm talking about

If I read any more Rute, I think people are gonna laugh me right off this site, haha! Anyways, here's the URL:

http://web.whittier.edu/jlutgen/rute...00000000000000

I'm hoping you could take a look at it and let me know if it does what I explained it as being able to do, or whether I horribly misinterpreted it?

Thanks! (Hope you learned something new cuz of me, seeing as how so many people on this site have taught me stuff! )
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Decompress .zip files on AIX system namdn AIX 4 08-23-2004 10:35 AM
Decompress .zip files on AIX system namdn Linux - General 3 07-28-2004 07:43 AM
Oh boy I forgot how do you decompress .gz files in Windows chutsu Linux - Newbie 15 04-17-2004 09:20 PM
decompress tar gz files? buccaneer Linux - Newbie 5 01-19-2004 03:15 AM
How do you decompress files, or run files such as the Netscape 6 Uninstaller in RH7.2 oudent Linux - Newbie 1 11-19-2001 01:11 AM


All times are GMT -5. The time now is 02:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration