Question on GZIP Compression

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
BLACKWAR
Registered User
Posts: 138
Joined: Thu Mar 28, 2002 9:24 am
Location: USA
Contact:

Question on GZIP Compression

Post by BLACKWAR »

Hi,
I was wondering , what does GZIP compression do.
And what happens if i enable it.. cuz i did and saw no difference.. so basically what is the use of it
Thanks
BLACKWAR
Visit my phpBB2 forums at : http://www.blackwar.tk

zoid
Registered User
Posts: 743
Joined: Fri Oct 12, 2001 6:29 am
Location: $SCRIPT_NAME
Contact:

Re: Question on GZIP Compression

Post by zoid »

BLACKWAR wrote: Hi,
I was wondering , what does GZIP compression do.
And what happens if i enable it.. cuz i did and saw no difference.. so basically what is the use of it
Thanks
BLACKWAR

It compresses the data sent to the browser. While it saves you traffic it increases the CPU usage.

Alexander
Whatever you want to know, please do a Image Search before asking :).

Run your own Chatcommunity
>> PINO - Client/Server Chat for Windows <<

BLACKWAR
Registered User
Posts: 138
Joined: Thu Mar 28, 2002 9:24 am
Location: USA
Contact:

Re: Question on GZIP Compression

Post by BLACKWAR »

zoid wrote:
BLACKWAR wrote:Hi,
I was wondering , what does GZIP compression do.
And what happens if i enable it.. cuz i did and saw no difference.. so basically what is the use of it
Thanks
BLACKWAR

It compresses the data sent to the browser. While it saves you traffic it increases the CPU usage.

Alexander


So what do you think?
should i turn it on or off.. right now its on and i really cant see any difference except this : phpBB Created this page in 0.154983 seconds : 13 queries executed : GZIP compression enabled : Debug Mode
When its on, the 0.154983 seconds is a LOT lower..
when its off, that number is like 1.5 seconds.. so what do you think i should do?
Direct link to my forums : http://www.timdorr.com/~blackwar/phpBB

Thanks
Visit my phpBB2 forums at : http://www.blackwar.tk

User avatar
Black Fluffy Lion
Former Team Member
Posts: 6057
Joined: Sat Dec 15, 2001 11:37 am

Post by Black Fluffy Lion »

yeah, unless there's a special reason why you shouldn't I would turn it on.

BLACKWAR
Registered User
Posts: 138
Joined: Thu Mar 28, 2002 9:24 am
Location: USA
Contact:

Post by BLACKWAR »

well im on a friends web page.. he gave me some free space .. so if this is going to effect his web hosting service in any way (need to pay more) then i will turn it off.. i want to know exactly what effects it has..
Visit my phpBB2 forums at : http://www.blackwar.tk

zoid
Registered User
Posts: 743
Joined: Fri Oct 12, 2001 6:29 am
Location: $SCRIPT_NAME
Contact:

Re: Question on GZIP Compression

Post by zoid »

BLACKWAR wrote: So what do you think?
should i turn it on or off.. right now its on and i really cant see any difference except this : phpBB Created this page in 0.154983 seconds : 13 queries executed : GZIP compression enabled : Debug Mode
When its on, the 0.154983 seconds is a LOT lower..
when its off, that number is like 1.5 seconds.. so what do you think i should do?
Direct link to my forums : http://www.timdorr.com/~blackwar/phpBB

Thanks

It depends what is more of your concern. Traffic or CPU usage. In case you run a dedicated server you could choose GZIP, since the load wouldnt really matter. If you are on a shared server, it could become a load issue.

So those things have to be considered.
  • dedicated or shared
  • how much traffic
  • how many users are on the server (if shared)
  • how many users do you have
Alexander
Whatever you want to know, please do a Image Search before asking :).

Run your own Chatcommunity
>> PINO - Client/Server Chat for Windows <<

zoid
Registered User
Posts: 743
Joined: Fri Oct 12, 2001 6:29 am
Location: $SCRIPT_NAME
Contact:

Post by zoid »

BLACKWAR wrote: well im on a friends web page.. he gave me some free space .. so if this is going to effect his web hosting service in any way (need to pay more) then i will turn it off.. i want to know exactly what effects it has..

Unless your board uses much CPU time, he might pay even more if you turn it off, since it takes more traffic then. Depends on his contract.

Alexander
Last edited by zoid on Thu Mar 28, 2002 1:55 pm, edited 1 time in total.
Whatever you want to know, please do a Image Search before asking :).

Run your own Chatcommunity
>> PINO - Client/Server Chat for Windows <<

BLACKWAR
Registered User
Posts: 138
Joined: Thu Mar 28, 2002 9:24 am
Location: USA
Contact:

Re: Question on GZIP Compression

Post by BLACKWAR »

zoid wrote:
BLACKWAR wrote:So what do you think?
should i turn it on or off.. right now its on and i really cant see any difference except this : phpBB Created this page in 0.154983 seconds : 13 queries executed : GZIP compression enabled : Debug Mode
When its on, the 0.154983 seconds is a LOT lower..
when its off, that number is like 1.5 seconds.. so what do you think i should do?
Direct link to my forums : http://www.timdorr.com/~blackwar/phpBB

Thanks

It depends what is more of your concern. Traffic or CPU usage. In case you run a dedicated server you could choose GZIP, since the load wouldnt really matter. If you are on a shared server, it could become a load issue.

So those things have to be considered.
  • dedicated or shared
  • how much traffic
  • how many users are on the server (if shared)
  • how many users do you have
Alexander


well i know he has 10 gigs of bandwidth per month so im thinking thats not a problem..
im not sure if it is dedicated.. i dont think so tho...
i have very little users.. but am hoping of growing soon

one more thing.. why does enabling gzip decrease the time phpBB pages are created?
Visit my phpBB2 forums at : http://www.blackwar.tk

zoid
Registered User
Posts: 743
Joined: Fri Oct 12, 2001 6:29 am
Location: $SCRIPT_NAME
Contact:

Re: Question on GZIP Compression

Post by zoid »

BLACKWAR wrote: well i know he has 10 gigs of bandwidth per month so im thinking thats not a problem..
im not sure if it is dedicated.. i dont think so tho...
i have very little users.. but am hoping of growing soon

one more thing.. why does enabling gzip decrease the time phpBB pages are created?

10 GB are usually a shared server. The actual generation of the pages does not become more slow due to compression, but the time value probably includes compression as well.

Alexander
Whatever you want to know, please do a Image Search before asking :).

Run your own Chatcommunity
>> PINO - Client/Server Chat for Windows <<

BLACKWAR
Registered User
Posts: 138
Joined: Thu Mar 28, 2002 9:24 am
Location: USA
Contact:

Post by BLACKWAR »

well as you saw from the specs so far.. i just need one straight answer..
Do you think i should enable Gzip or not?
I just need a yes or no answer to make sure im doin the right thing
THanks
Visit my phpBB2 forums at : http://www.blackwar.tk

zoid
Registered User
Posts: 743
Joined: Fri Oct 12, 2001 6:29 am
Location: $SCRIPT_NAME
Contact:

Post by zoid »

BLACKWAR wrote: well as you saw from the specs so far.. i just need one straight answer..
Do you think i should enable Gzip or not?
I just need a yes or no answer to make sure im doin the right thing
THanks

If your friend accepts the traffic caused by you, then no.

Alexander
Whatever you want to know, please do a Image Search before asking :).

Run your own Chatcommunity
>> PINO - Client/Server Chat for Windows <<

SamG
Former Team Member
Posts: 3221
Joined: Fri Aug 31, 2001 6:35 pm
Location: Beautiful Northwest Lower Michigan
Name: Sam Graf

Post by SamG »

I would think if you're sharing a site with a friend, you want to keep an eye on that 10 gig part of the equation that zoid has been talking about. If your board gets busy, that amount of bandwidth could get used before the end of the month, especially between the two of you.

But on a shared server, you're also going to run into the other problem zoid mentions -- load on the CPU. Since GZIP decreases the amount of bandwidth used (the amount of material transfered between the server and your users) but increases the amount of work the server has to do, it's a careful balance.

I guess what I'm saying, if your board starts to get at all busy, better be looking for another place for your board, or you may cause your friend some grief if his host complains. So I'd be looking for another place and think of your current setup as very temporary. That's just my opinion.
We should talk less, and say more.

BLACKWAR
Registered User
Posts: 138
Joined: Thu Mar 28, 2002 9:24 am
Location: USA
Contact:

Post by BLACKWAR »

zoid wrote:
BLACKWAR wrote:well as you saw from the specs so far.. i just need one straight answer..
Do you think i should enable Gzip or not?
I just need a yes or no answer to make sure im doin the right thing
THanks

If your friend accepts the traffic caused by you, then no.

Alexander


i didnt exactly understand what you meant there? :?:
Visit my phpBB2 forums at : http://www.blackwar.tk

zoid
Registered User
Posts: 743
Joined: Fri Oct 12, 2001 6:29 am
Location: $SCRIPT_NAME
Contact:

Post by zoid »

BLACKWAR wrote: i didnt exactly understand what you meant there? :?:

If your friend isnt bothered by the traffic caused by your board, then you dont need to turn it on.

Alexander
Whatever you want to know, please do a Image Search before asking :).

Run your own Chatcommunity
>> PINO - Client/Server Chat for Windows <<

User avatar
rmang
Registered User
Posts: 285
Joined: Fri Aug 24, 2001 10:33 pm

Post by rmang »

I would recommend using gzip with the board. The CPU hit is negligible unless your board is wildly popular, and the savings in bandwidth (ie it compresses a 10k page of text to like 2k in many cases as an example) is well worth it. Plus, it speeds up the board for all users, as the pages are compressed, therefore, less to download.

Just my 2 sense :)

Rob M.

Locked

Return to “2.0.x Support Forum”