WARNING: storage file size reduced to.....

Dag-Erling Smørgrav des at linpro.no
Tue Jul 31 08:01:51 CEST 2007


rad_kam at tlen.pl writes:
> WARNING: storage file size reduced to 1073741824 due to system limitations
> WARNING: storage file size reduced to 11756049694 (80% of available disk space)
> NB: Limiting size to 2GB on 32 bit architecture to prevent running out of
> address space.  Specifiy explicit size to override.
>
> What does it mean ?

The maximum cache size on a 32-bit machine is 2 GB (2^31 bytes); in
addition, the size of the cache in bytes has to fit in off_t.  If off_t
is 32 bits, the maximum size is 2^31-1; Varnish will shift the requested
cache size right (i.e. divide it by two) until it fits, so if you
requested 2 GB (2^31, one byte too many) you get 1 GB (2^30).

The second message is the result of a bug which causes Varnish to think
that 1 GB is more than ~14 GB (the amount of free space in the file
system on which you placed the cache file) and set the cache size to 80%
of that, or ~11 GB.

The third message is a consequence of the aforementioned bug; Varnish
notices that ~11 GB is more than 2^31-1 and sets the cache size to
2^31-1 rounded down to the nearest page.

Could you please test the attached patch?

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fssize.diff
Type: text/x-diff
Size: 1694 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20070731/aaf16dda/attachment-0002.diff>


More information about the varnish-misc mailing list