Persistent mode statistics

Anders Nordby anders at fupp.net
Thu Jan 7 16:39:41 CET 2010


Hi,

I'm running Varnish trunk 4434 in FreeBSD/amd64 7.2-RELEASE with
persistent mode and data spread on three filesystems:

-s persistent,/data00/varnishd.dat,20g -s persistent,/data01/varnishd.dat,20g -s persistent,/data02/varnishd.dat,20g

root at cache12:~# varnishstat -1 | egrep ^sm
sm_nreq                     0         0.00 allocator requests
sm_nobj                     0          .   outstanding allocations
sm_balloc                   0          .   bytes allocated
sm_bfree                    0          .   bytes free
sma_nreq                    0         0.00 SMA allocator requests
sma_nobj                    0          .   SMA outstanding allocations
sma_nbytes                  0          .   SMA outstanding bytes
sma_balloc                  0          .   SMA bytes allocated
sma_bfree                   0          .   SMA bytes free
sms_nreq                41969         5.71 SMS allocator requests
sms_nobj                    0          .   SMS outstanding allocations
sms_nbytes                  0          .   SMS outstanding bytes
sms_balloc           26826511          .   SMS bytes allocated
sms_bfree            26826511          .   SMS bytes freed
root at cache12:~# ps axww -o pid,vsz,rss,command | grep varnish
61987 63008980 84844 varnishd: Varnish-Mgr cache12.finn.no (varnishd)
61988 63819396 19615712 varnishd: Varnish-Chld cache12.finn.no
(varnishd)

As you can see, PID 61988 has allocated 19615712 kilobytes - 18,7
gigabytes of memory resident. This does not show in varnishstat. I can
see that sms_balloc grows steadily, but it does not have the number I
expect for used memory. How do I check how much memory/space Varnish
spent with persistent mode?

Cheers,

-- 
Anders.



More information about the varnish-misc mailing list