GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   FreeBSD Server Tweaking for TGPs (https://gfy.com/showthread.php?t=88527)

VeriSexy 11-16-2002 06:11 AM

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

http 11-16-2002 06:45 AM

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

VeriSexy 11-16-2002 07:30 AM

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.

http 11-16-2002 09:28 AM

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

some_idiot 11-16-2002 10:07 AM

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.

x3m 11-17-2002 08:09 AM

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?

mrthumbs 11-17-2002 08:40 AM

http://www.thumbsz.com/shit/bsd.jpg

VeriSexy 11-17-2002 08:47 AM

Quote:

Originally posted by x3m
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?

You have to increase the limit in your Kernel of your OS

x3m 11-17-2002 08:57 AM

Quote:

Originally posted by VeriSexy


You have to increase the limit in your Kernel of your OS

Do you mind telling how can I do this?


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