Re: Varnish memory consumption issues?

2009-09-02 Thread Kristian Lyngstol
On Sat, Aug 29, 2009 at 12:09:15AM -0400, pub crawler wrote:
 Hello, new to Varnish.
 
 We have been running Varnish for about 5 days now. So far, excellent product.
 
 We have a potential issue and I haven't seen anything like this before.
 
 We just restarted Varnish - we have a 1GB cache file on disk. When I
 run top, I see Varnish is using :
 
 10m RES
 153g VIRT

I'll leave a more detail explanation to PHK or someone more experienced
with the deep magics of a VM, but the 10m is the real memory consumption
which I'm sure top/free can confirm.

Though 153G seem very high for VIRT. What I usually see is VIRT = 2x cache
size, or thereabouts, but that might not be conclusive.

Do you care to paste your startup arguments and parameters?

-- 
Kristian Lyngstøl
Redpill Linpro AS
Tlf: +47 21544179
Mob: +47 99014497


pgp3jBn43z5mb.pgp
Description: PGP signature
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: Varnish memory consumption issues?

2009-09-02 Thread pub crawler
Thanks Kristian for the explanation.

I posted this, and I believe it likely was our issue - perhaps not
starting Cherokee with proper parameters included. Our configuration
is pretty barbones default per se.

What is troubling is 153GB is more resources than this machine has RAM
+ disk combined. Stumped as to how Varnish or the OS would allocate
all this memory when the resources not there.

It's worth noting that we changed our commandline to spawn Varnish and
Varnish seems to be more reasonable with memory now:
5775 nobody20   0 4363m 169m 162m S1  8.6   1:00.03 varnishd

4GB is the size of the cache file we setup for Cherokee so VIRT is
right on consumption wise.  RES memory at 169m is quite fine /
reasonable also. These numbers seem to what others experience right?

-Paul

On Wed, Sep 2, 2009 at 9:25 AM, Kristian
Lyngstolkrist...@redpill-linpro.com wrote:
 On Sat, Aug 29, 2009 at 12:09:15AM -0400, pub crawler wrote:
 Hello, new to Varnish.

 We have been running Varnish for about 5 days now. So far, excellent product.

 We have a potential issue and I haven't seen anything like this before.

 We just restarted Varnish - we have a 1GB cache file on disk. When I
 run top, I see Varnish is using :

 10m RES
 153g VIRT

 I'll leave a more detail explanation to PHK or someone more experienced
 with the deep magics of a VM, but the 10m is the real memory consumption
 which I'm sure top/free can confirm.

 Though 153G seem very high for VIRT. What I usually see is VIRT = 2x cache
 size, or thereabouts, but that might not be conclusive.

 Do you care to paste your startup arguments and parameters?

 --
 Kristian Lyngstøl
 Redpill Linpro AS
 Tlf: +47 21544179
 Mob: +47 99014497

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


Varnish memory consumption issues?

2009-08-28 Thread pub crawler
Hello, new to Varnish.

We have been running Varnish for about 5 days now. So far, excellent product.

We have a potential issue and I haven't seen anything like this before.

We just restarted Varnish - we have a 1GB cache file on disk. When I
run top, I see Varnish is using :

10m RES
153g VIRT

Why is Varnish reporting this sort of VIRT memory?  How do we correct
that usage number or reset it?
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc