Olivier Nicole <[email protected]> writes:
> $ /usr/local/sbin/varnishd -P /var/run/varnishd.pid -a localhost:6081 -f 
> /usr/local/etc/varnish/default.vcl -T localhost:6082 -s malloc,5G -s 
> file,/web/varnish,50% -u www -g www

Why use both malloc and file?  Varnish will spread objects equally
between both storage backends.  You'd be better off using just the file.

> The file system used for storage has 407 GB available and Varnish
> plans to use up to 1626 GB out of that, that is far more than the 50%.

Try instrumenting str2bytes() in lib/libvarnish/num.c to show the
details of the calculations.  In str2bytes(), p is a pointer to the size
specification ("50%" in your case), fval is the numeric value (should be
50), rel is the size of the file system in bytes (should be
approximately 407*2^30).

DES
-- 
Dag-Erling Smørgrav - [email protected]
_______________________________________________
varnish-misc mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to