![]() |
FreeBSD Server Tweaking for TGPs
What kind of settings do you guys have in apache and freebsd kernel?
Suppose you get listed on every TGP and had a ton of bandwidth and Dual 1.13 Ghz cpus with Gigs of ram. I am sure this server should be able to push 60mb/s but best settings? Besides using thttpd and maybe a reverse squid proxy, what kind of settings do you have in httpd.conf in apache and in your freebsd kernel? :helpme |
Hostnamelookup off, AllowOverride None, uncomment the lines where it mentions logging (turns logging off) and point error logging to /dev/null, max clients 256, keepalive on, remove all unnecessary modulessuch as ssl etc.,
Of course it would be better to not use apache at all hehe |
Max client 256????
I had maxclients at 3000. Suppose you get listed on the Hun. Are you sure 256 is even close to enough? People will get locked out if there are too many request. I am sure the dual machine hardware should be enough. People were getting hun traffic with 400 Mhz servers 2 years ago with no problems. |
so you recompiled apache then? Because 256 is the max setting without recompiling if I'm not mistaken.
And the Hun won't send you 3000 concurrent users, not even close- Anyway, if you really want to see what you can do with a single box you'd clearly looking into something different than apache. xp1900 with 1GB ram serving 20 MBit including all the thumbnails. Has to choose from over 10,000 different pics and thumbs. Apache would have broken links all over the place by now but this box is still fast as if there were no traffic 10:15am up 79 days, 18:01, 1 user, load average: 0.03, 0.03, 0.00 72 processes: 69 sleeping, 3 running, 0 zombie, 0 stopped CPU states: 0.0% user, 3.4% system, 0.0% nice, 96.6% idle of course there is no apache involved :Graucho for freebsd thttpd might be good or zeus is good too I guess but expensive |
Same kernel settings for high bandwidth routing.
Check docs.freebsd.org and search back to about 2000 on how to tweak the kernel. I think it was back and forth with Jim Mercer. You can get a gig ether to do about 800Mbps and it's possible to get 4 at that speed in a 32bit PCI bus. |
I noticed that response time is very slow for my server and I saw this in apache status:
CPU Usage: u11.7813 s12.375 cu0 cs0 - 8.24% CPU load 65.5 requests/sec - 2.0 MB/second - 30.7 kB/request 512 requests currently being processed, 0 idle servers I have MinSpareServers 32 MaxSpareServers 64 StartServers 200 MaxClients 2000 in apache config, but still it stoped at 512. How can I increase the number of running processes? |
|
Quote:
|
Quote:
|
All times are GMT -7. The time now is 07:11 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123