[squid-users] rock storage

Amos Jeffries squid3 at treenet.co.nz
Mon Jun 1 20:22:16 UTC 2015


On 2/06/2015 5:13 a.m., Hussam Al-Tayeb wrote:
> Hello, I added a 5000MB rock storage entry in squid.conf
> when it filled up, squid cache manager said:
> 	Storage Swap size:	5120000 KB
> 	Storage Swap capacity:	100.0% used,  0.0% free
> 
> but du -BM says 4703M is the size of the rock storage file.
> ls -l says 5242880000.
> 
> Since it is full, shouldn't du -BM reading be closer to 5000M?

Not particularly. Squid is counting the size of data blocks (cells) in
the DB. The FS may have completely different ideas about how much space
that data takes up after physical storage features have processed it.

Particularly if one rock DB cell takes up multiple FS blocks / inodes.
The incompletely filled rock DB cells (204, 304 or very small responses)
may only be using half (or less) the space on disk of filled cells.

4703 M10 is a lot closer than you may think as well. It is 4912 MiB.

Amos



More information about the squid-users mailing list