In message <24a219a51001261923n40146083yb221aac2cadbc...@mail.gmail.com>, Marti
n Goldman writes:

>1. How can you tell whether your Varnish objects fit in RAM?

If you start seeing disk-activity, they do not fit.

>2. If I have objects residing in virtual memory, to what extent will my
>performance be adversely affected? If I want my site to be fast, do I
>basically need to go out and buy as much RAM as it will take so that virtual
>memory isn't needed?

Well, the impact is the necessary disk-I/O to bring the object into
RAM.

Getting more RAM is one solution, but if your working set is much
larger than 4G, getting a SSD disk instead might be a better investment.

>3. I noticed tonight that my machine was using a few hundred megs of swap
>space,

Yes, varnish will force inactive programs (inetd, getty, sendmail etc)
out to swap so it can get at the RAM.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
p...@freebsd.org         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to