Re: recommendation for swap space?

2008-04-08 Thread C. Handel
On Mon, Apr 7, 2008 at 6:18 PM, Michael S. Fischer [EMAIL PROTECTED] wrote:
 now that my varnish processes start to reach the RAM size, I'm wondering
 what a dimension of swap would be wise? I currently have about 30 GB
 swap space for 32 GB RAM, but am wondering if it could even make sense
 to have no swap at all? My cache file is 517 GB in size.
  
Varnish does not use swap.

  That said, it wouldn't make sense to entirely deallocate your swap
  space, since the kernel may decide to page or swap out processes other
  than Varnish.

You also need swap if a huge process tries to fork. Having a huge
Process forking a child, means, that the child process initially is a
copy of the parent. It is a copy on write memory (so it doesn't realy
use memory) and in most cases the child will release all memory and do
something else, but the virtual memory needs to be big enough during
the fork.

Greetings
   Christoph
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: recommendation for swap space?

2008-04-08 Thread Pablo García
Sacha, try to modify the /proc/sys/vm/swappiness it's on 60 (default),
I reduce it to 20 or even 0, on my oracle cluster, to prevent
important process from being swapped.

Regards, Pablo

On Tue, Apr 8, 2008 at 5:51 AM, Sascha Ottolski [EMAIL PROTECTED] wrote:
 Am Montag 07 April 2008 18:00:14 schrieb Dag-Erling Smørgrav:

  Sascha Ottolski [EMAIL PROTECTED] writes:
now that my varnish processes start to reach the RAM size, I'm
wondering what a dimension of swap would be wise? I currently have
about 30 GB swap space for 32 GB RAM, but am wondering if it could
even make sense to have no swap at all? My cache file is 517 GB in
size.
  
   Varnish does not use swap.
  
   DES

  hmm, then I'm wondering why my machines do swap quite a bit. It's a
  almost naked linux, the only processes really doing some work are
  varnishd and varnishlog.

  I have 32 GB of RAM, 30 GB of swap, and 517 GB of cache file. according
  to top, varnishd has a resident size of 25 GB, and almost 1,5 GB of
  swap is in use. kswapd often shows up in top.


  # free
  total   used   free sharedbuffers cached
  Mem:  32969244   32874908  94336  0 108648   29129752
  -/+ buffers/cache:3636508   29332736
  Swap: 290454801473200   27572280


  it's not worrying me, performance is brilliant, I'm just curious :-)


  Thanks, Sascha


 ___
  varnish-misc mailing list
  varnish-misc@projects.linpro.no
  http://projects.linpro.no/mailman/listinfo/varnish-misc

___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: recommendation for swap space?

2008-04-07 Thread Dag-Erling Smørgrav
Sascha Ottolski [EMAIL PROTECTED] writes:
 now that my varnish processes start to reach the RAM size, I'm wondering 
 what a dimension of swap would be wise? I currently have about 30 GB 
 swap space for 32 GB RAM, but am wondering if it could even make sense 
 to have no swap at all? My cache file is 517 GB in size.

Varnish does not use swap.

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


recommendation for swap space?

2008-04-06 Thread Sascha Ottolski
Hi,

now that my varnish processes start to reach the RAM size, I'm wondering 
what a dimension of swap would be wise? I currently have about 30 GB 
swap space for 32 GB RAM, but am wondering if it could even make sense 
to have no swap at all? My cache file is 517 GB in size.

BTW, the trunk seems to run stable, for 2,5 half days now!


Cheers,

Sascha
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc