recommendation for swap space?

Sascha Ottolski ottolski at web.de
Tue Apr 8 10:51:13 CEST 2008


Am Montag 07 April 2008 18:00:14 schrieb Dag-Erling Smørgrav:
> Sascha Ottolski <ottolski at web.de> 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     shared    buffers     cached
Mem:      32969244   32874908      94336          0     108648   29129752
-/+ buffers/cache:    3636508   29332736
Swap:     29045480    1473200   27572280


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


Thanks, Sascha



More information about the varnish-misc mailing list