If I understand the situation you've described, here's how I see the expected system usage.

Assumptions:
50M/PDF
Generation takes 1.6X final size (min)
100 simultaneous users
20% memory block fragmentation (typ)
LAMP overhead ~ 1.5G

((50*100*1.6)/0.8) + 1500 = 11500M
11.5G peak memory usage. Depending on your traffic pattern, your typical usage may well exceed the 2G physical available.

I'd allocate at *least* 4G Swap in that situation, and I'd make sure to run a 64-bit kernel on a 64-bit CPU (Opteron/Athlon-64/Itanium)
I'd also make *really* sure the app handles an out-of-memory situation gracefully.


Don Calfa wrote:
On one server now that's basically LAMP and mail, I have 20 sites  that reach about 10 Gig a month.
With 512M, I have any any time about 36M free with 36M used in swap.

The sites I'm moving over have traffic that is about 60G a month and the server they're on now is slooooooow.
I know PDF is a memory hog and I just want to be prepared for about a hundred users at a time generating PDF's.


Rob Wultsch wrote:

Hope much total memory are you intending on using? I rather doublt
that you would need 4 GB of swap.


On Fri, 25 Feb 2005 15:55:23 -0700, Don Calfa <tvat3000@west.ponymail.us> wrote:
 

Usually the rule of thumb for swap is 2x physical memory (AFAIK)
I'm remembering that there isn't a need for swap larger than 2Gig but
I'm not sure.

If I install 2 Gig of memory in a server, do I really need 4 Gig of swap?
---------------------------------------------------

  


 


---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change  you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss