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-08 Thread Sascha Ottolski
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


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-07 Thread Simon Lyall
On Mon, 7 Apr 2008, Michael S. Fischer wrote:
> On Mon, Apr 7, 2008 at 2:14 PM, Simon Lyall <[EMAIL PROTECTED]> wrote:
> > On Mon, 7 Apr 2008, Michael S. Fischer wrote:
> >  > 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.
> >
> >  and what is wrong with that?  Surely your RAM is better being used by the
> >  main applications on the server ( Varnish ) rather than "sitting around
> >  and waiting" copies of sshd, cron and getty?
>
> Huh?  Nothing I said contradicts that.

Sorry, I read " wouldn't " as " would " [1] .


[1] Approx 7 times.

-- 
Simon J. Lyall  |  Very Busy  |  Web: http://www.darkmere.gen.nz/
"To stay awake all night adds a day to your life" - Stilgar | eMT.

___
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 Michael S. Fischer
On Mon, Apr 7, 2008 at 2:14 PM, Simon Lyall <[EMAIL PROTECTED]> wrote:
> On Mon, 7 Apr 2008, Michael S. Fischer wrote:
>  > 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.
>
>  and what is wrong with that?  Surely your RAM is better being used by the
>  main applications on the server ( Varnish ) rather than "sitting around
>  and waiting" copies of sshd, cron and getty?

Huh?  Nothing I said contradicts that.

--Michael
___
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 Simon Lyall
On Mon, 7 Apr 2008, Michael S. Fischer wrote:
> 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.



and what is wrong with that?  Surely your RAM is better being used by the
main applications on the server ( Varnish ) rather than "sitting around
and waiting" copies of sshd, cron and getty?



-- 
Simon J. Lyall  |  Very Busy  |  Web: http://www.darkmere.gen.nz/
"To stay awake all night adds a day to your life" - Stilgar | eMT.

___
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 Michael S. Fischer
On Mon, Apr 7, 2008 at 9:00 AM, Dag-Erling Smørgrav <[EMAIL PROTECTED]> wrote:
> 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.

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.

--Michael
___
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