All pastes #947700 Raw Edit

Mine

public text v1 · immutable
·published 2008-03-18 17:30 UTC
rendered paste body
[18:21:18] <Rasmus> MaxClients 150 is nuts
[18:21:26] <Rasmus> Do you seriously have enough ram for that?
[18:21:38] <Rasmus> None of my servers could handle that
[18:21:47] <ScottMac> our max clients is 200 here
[18:21:58] <ScottMac> but its just running mod_proxy
[18:22:16] <ScottMac> our app servers have 60 max clients
[18:22:28] → Sebast1an joined the channel.
[18:22:53] <CPUnerd_> back
[18:23:47] <Rasmus> You must run some really lean stuff in order to run 150
[18:24:00] <Rasmus> What's your non-shared memory footprint for each?
[18:25:50] <madbomber> rasmus, our web servers only have 2GB of memory, of which 1GB is used by apache (and never more, we're anal like that)
[18:26:14] <ScottMac> so each process can have 6mb?
[18:26:19] <madbomber> we only have about 25-50 clients connected at any given time to each (w/ keep-alive and the load balancing pipelining requests)
[18:26:43] <madbomber> the 150 limit is mostly if there is any sort of hiccup on the box, it can atleast buffer requests for a few fractions of a second
[18:26:55] <madbomber> and then normally recover on it's own without rejecting requests
[18:26:55] <SaraMG> um... 1024 / 150 == 6.8MB
[18:27:15] <SaraMG> It'll buffer, but it'll swap like mad and fall over like a drunk on payday
[18:27:15] <Rasmus> Wow, fitting Apache+PHP into 6.8M is magic
[18:27:23] <madbomber> i have swap disabled on the web servers
[18:27:28] <madbomber> they do no local disk io
[18:27:32] <Rasmus> so it will just fall over
[18:27:40] • SaraMG waves bye-bye
[18:27:40] <madbomber> sec let me login to a box to know exactly
[18:27:56] → mixedpupp joined the channel.
[18:27:57] <SaraMG> madbomber: It's math dude.   X * Y = Z
[18:28:41] <Rasmus> which buffer are you talking about?
[18:28:59] <Rasmus> As soon as accept() triggers, the Apache process is going to be active and eat up memory
[18:29:08] <madbomber> virt 140-142, res 23-30, shared 17-25 per process
[18:29:12] <Rasmus> without swap, as soon as you go over your memory limit, you are dead
[18:29:29] <SaraMG> malloc(x) == null, bye-bye
[18:29:36] <madbomber> ya, we actually turned swap back on a few months ago.. i forgot
[18:29:44] <madbomber> when we added more servers last time :)
[18:30:02] <madbomber> Mem:   2074600k total,  1772228k used,   302372k free,   245860k buffers
[18:30:04] <madbomber> Swap:  2096440k total,    10848k used,  2085592k free,  1119484k cached
[18:30:07] <ekneuss> SaraMG, boah, it's not like every malloc calls is protected in order no to dramatically crash. *cough* *cough*
[18:30:09] ← mixedpupp left IRC. (Client Quit)
[18:30:13] <madbomber> that's a current running box doing about 165 pages per second