What limits the varnish_storage.bin size?

Lars Jørgensen lajo at kb.dk
Fri Aug 12 09:02:03 CEST 2011


Hi,

Varnish can't use more than 2 GB cache on a 32bit system. Somebody suggested you tried replacing just the kernel for testing purposes, but there is no need to test. You need a 64bit server.


Lars

From: varnish-misc-bounces at varnish-cache.org [mailto:varnish-misc-bounces at varnish-cache.org] On Behalf Of Kurt Kraut
Sent: Thursday, August 11, 2011 5:11 PM
To: varnish-misc at varnish-cache.org
Subject: Re: What limits the varnish_storage.bin size?

Hi,


Yes, it is a 32 bit CentOS install. Can I workaround this without reinstalling the whole system?


Thanks in advance,


Kurt Kraut
2011/8/11 Lars Jørgensen <lajo at kb.dk<mailto:lajo at kb.dk>>
Hi Kurt,

Are you on a 32bit OS?


Lars

From: varnish-misc-bounces at varnish-cache.org<mailto:varnish-misc-bounces at varnish-cache.org> [mailto:varnish-misc-bounces at varnish-cache.org<mailto:varnish-misc-bounces at varnish-cache.org>] On Behalf Of Kurt Kraut
Sent: Wednesday, August 10, 2011 8:50 PM
To: varnish-misc at varnish-cache.org<mailto:varnish-misc at varnish-cache.org>
Subject: What limits the varnish_storage.bin size?

Hi,

I've been using to different CentOS servers to run varnish and to load balance to the same backends. I'm using the file cache, not malloc. I've found something odd:

root at s2-ul [~]# du /var/lib/varnish/varnish_storage.bin
2099200    /var/lib/varnish/varnish_storage.bin

admin at s4-ul [~]# du /var/lib/varnish/varnish_storage.bin
2099200    /var/lib/varnish/varnish_storage.bin

Both storage files in these two servers have the precise same size in bytes. But I'm running varnish to use 100GB of storage:

/usr/sbin/varnishd -P /var/run/varnish.pid -a :80 -f /etc/varnish/default.vcl -T 127.0.0.1:6082<http://127.0.0.1:6082> -t 900 -w 1,1000,120 -u varnish -g varnish -S /etc/varnish/secret -s file,/var/lib/varnish/varnish_storage.bin,100G

What am I missing? What else would limit varnish_storage.bin to this specific size?

_______________________________________________
varnish-misc mailing list
varnish-misc at varnish-cache.org<mailto:varnish-misc at varnish-cache.org>
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110812/f55dd2ca/attachment-0003.html>


More information about the varnish-misc mailing list