Kristian, Thank you for your reply. I was looking for a command that shows me the memory usage (userd and free) to monitors servers from Nagios/Cacti software. Do you know where can I start? Do you know anoutabout any test script to find out how many memory is being used?
Thank you, Roberto. 2011/1/3 Kristian Lyngstol <[email protected]> > Hi, > > On Thu, Dec 30, 2010 at 12:47:36PM -0300, Roberto O. Fernández Crisial > wrote: > > I have two servers running varnish (varnish-2.1.3 SVN), and both started > > with "-s malloc,28G" option. > > > > I've tried with varnishstat, looking for sma's values (I think > "sma_balloc + > > sma_bfree = 28G"), but only in one server shows "correct" information: > > > > sma_balloc 1641487715428 . SMA bytes allocated > > sma_bfree 1611596371850 . SMA bytes free > > > > The other server shows: > > > > sma_balloc 239065444117 . SMA bytes allocated > > sma_bfree 226776048576 . SMA bytes free > > > > What should I do to see the memory used and memory free from varnish > cache? > > sma_nbytes is probably easier to read - though you'll get the same result. > > This only indicates that the second server hasn't filled the cache. To > verify this, check if the first server has n_lru_nuked objects (it should) > and compare it to the second server (which should have 0 nuked - unless the > cache size shrunk dramatically). > > The sma_nbytes and related counters refer to memory used for current > objects, not what is available. To allocate space for a new object, Varnish > checks that: > > (new object size) + (sma_nbytes) < (total size, specified by -s) > > Hope this helps. > > - Kristian > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iQEcBAEBAgAGBQJNIZ01AAoJEIC1IG5rXEfqjWAIAKSfq5l0cMdzpBBjSEQmq8el > QHyt779tk67y6sjtnclraOYopuqQW33atO92ycgIxHSucXqkMJW340a2u6Pax4hj > Mq7jTRS0BPk+SKhkUirjTBZf8tg+ZNdo7sOyD6GDRXhe6xLD6l3SsujaHj1bpklj > nepWoZa5DIWy/uaZ+O/RIpp+iL8tdY9tJL9Xh9VrjjP1VC6FGGl7T4ieie2SSrgb > eyFvGxX6H8l3Q/gZ+4gzjdyMKfDvkeIsVkBFZ3njZFawTjNblQELXBJh9tsqs54L > Vg6GxagRLDFHYiPcO/q+uDWUAD5EzKFa9q1wP3BFn0X9GMhvBHsF/jKxhaEg7VM= > =9c3K > -----END PGP SIGNATURE----- > >
_______________________________________________ varnish-misc mailing list [email protected] http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
