drumnbass.be forum

drumnbass.be forum » Urban area » Drumnbass.be news » Performance tweaks
Go to the bottom of this page Performance tweaks
Author
Post
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

I've been spending a couple of hours tweaking the server to get faster download times. I installed mod_gzip and tweaked the cache of MySQL.

IMO it's a lot faster now but this is highly subjective since I expect it to be faster Big Grin Probably the speed boost is minimal, definitely when you are on broadband. Does anyone else notice a difference? Any modem users perhaps?

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
01-08-2004 01:35 Homepage of thechronic
Surya Surya is a male
The Robot


images/avatars/avatar-1127.gif

Registration Date: 04-11-2002
Posts: 11,238

Helpfulness rating: 
44 Vote(s) - Average Rating: 9.27

Lol. The download was so fast already modem users should be at their max thoughput during the whole download, I don't think this will help them Big Grin

__
"In dnb you should make people jump not swim"
- Pieter Frenssen 2004


01-08-2004 10:59 Homepage of Surya
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

Lol no the mp3s are already compressed, no use in gzipping them, I mean text downloads from the forum and listen page etc. Big Grin

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
01-08-2004 11:59 Homepage of thechronic
Surya Surya is a male
The Robot


images/avatars/avatar-1127.gif

Registration Date: 04-11-2002
Posts: 11,238

Helpfulness rating: 
44 Vote(s) - Average Rating: 9.27

Who said anything about zipping?

__
"In dnb you should make people jump not swim"
- Pieter Frenssen 2004


01-08-2004 12:16 Homepage of Surya
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

gzipping Big Grin Check out mod_gzip.

It compresses all text content (html etc) before sending it to the browser.
Some examples:
listen page with 100 entries 90.863 bytes original, 7908 bytes compressed (91% smaller file size)
forum index page 36.280 bytes orig / 5025 compressed (86% smaller)

This should give an enormeous speed boost on modems, especially if they are using quick rendering browsers such as Firefox. The images, audio etc are not gzipped since these are already compressed.
Now (in the daytime, and sober Big Grin ) I can definitely feel a speed increase even on broadband, especially in large pages such as the listen page with 100 entries. This used to take like a second to load and is now almost instant.

I also did optimalisations on the MySQL cache, but this gives speed increases of like 10 milliseconds on pages with a lot of queries, such as the forum index, not really noticeable, but every bit helps, especially if it becomes faster just by changing some settings Cool

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
01-08-2004 12:51 Homepage of thechronic
Surya Surya is a male
The Robot


images/avatars/avatar-1127.gif

Registration Date: 04-11-2002
Posts: 11,238

Helpfulness rating: 
44 Vote(s) - Average Rating: 9.27

Oh, yeah, didn't read properly Roll Eyes

It is fast indeed

__
"In dnb you should make people jump not swim"
- Pieter Frenssen 2004


01-08-2004 14:44 Homepage of Surya
djfreemc djfreemc is a male
Sponsor


images/avatars/avatar-89.jpg

Registration Date: 25-07-2003
Posts: 1,117

Helpfulness rating: 
10 Vote(s) - Average Rating: 9.40

I guess it saves a bit on bandwith too, allthough that wasn't really a problem.

__
The mysteries of the distorted snare...
Can't win if u don't play
01-08-2004 18:00 Homepage of djfreemc
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

The text only amounts for a small percentage, most is taken up by the mp3's and samples, but I sometimes felt the board was a bit sluggish... not any more Big Grin

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
01-08-2004 19:52 Homepage of thechronic
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

Hmm the server just went down for nearly an hour, if this has anything to do with the tweaks I did I'll have to undo them again cuz this is not acceptable... Frown

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
02-08-2004 14:39 Homepage of thechronic
Surya Surya is a male
The Robot


images/avatars/avatar-1127.gif

Registration Date: 04-11-2002
Posts: 11,238

Helpfulness rating: 
44 Vote(s) - Average Rating: 9.27

I don't see why they would have anything to do with them Confused

__
"In dnb you should make people jump not swim"
- Pieter Frenssen 2004


02-08-2004 14:50 Homepage of Surya
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

Well it's only the second time it went down since I got the server, could have something to do with it...

I changed the work partition of mod_gzip to one with lots of free space, maybe that helps

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
02-08-2004 15:16 Homepage of thechronic
Surya Surya is a male
The Robot


images/avatars/avatar-1127.gif

Registration Date: 04-11-2002
Posts: 11,238

Helpfulness rating: 
44 Vote(s) - Average Rating: 9.27

Lets hope so!

__
"In dnb you should make people jump not swim"
- Pieter Frenssen 2004


02-08-2004 15:29 Homepage of Surya
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

Changed lots of things in the config again, hopefully it's stable now Big Grin

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
02-08-2004 16:09 Homepage of thechronic
KoFFiE KoFFiE is a male
Easy Player


images/avatars/avatar-271.gif

Registration Date: 28-04-2003
Posts: 891

Helpfulness rating: 
6 Vote(s) - Average Rating: 7.83

Hmm encountered soms strange things (just last few hours):

- I can't logout anymore (cookie handling fubar'ed by mod_gzip ?)
- Could not see the party heads board listing anymore for more than an hour, the other boards were no prob. After a few restarts of my browser, it worked perfectly again Confused (Opera 7.52 on Win2k pro EN) - could be a caching-issue

The speedup isn't really noticable I think, the mod_gzip will however save you some bandwidth at the cost of overall system performance, and I have no idea what loads your server has to handle Wink If they are close to 1.00 - it could very well be that your database performance suffers from it...

__
Sleep is a poor substitute for coffee

This post has been edited 2 time(s), it was last edited by KoFFiE: 02-08-2004 16:40.

02-08-2004 16:36 Homepage of KoFFiE
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

Logging out works fine for me in firefox, IE and Opera, I'd suggest clearing your cookie cache. I have changed the cookie code several weeks ago and the cookie is now made for a different directory which can cause the log out problem. See this thread for more info.

The server went down for about an hour today, so maybe you were trying to access the forum between 13:45 and 14:35 and did see some of the pages since they were cached in the browser?

Damn I just saw that my mailbox is overflowing with error messages, have to look into that... Frown

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
02-08-2004 17:05 Homepage of thechronic
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

Fixed the error messages, made a typo in httpd.conf Roll Eyes

quote:
Originally posted by KoFFiE
The speedup isn't really noticable I think, the mod_gzip will however save you some bandwidth at the cost of overall system performance, and I have no idea what loads your server has to handle Wink If they are close to 1.00 - it could very well be that your database performance suffers from it...

It's now at 0.04 Big Grin Highest I've ever seen is 0.40, typically around 0.19.

Apart from this site I'm only hosting a few small sites such as www.artsoundstudio.be and www.funrun.be which practically don't consume any bandwidth or CPU

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
02-08-2004 17:15 Homepage of thechronic
drumnbass.be forum » Urban area » Drumnbass.be news » Performance tweaks