[squid-users] Optimizing squid
Alex Rousskov
rousskov at measurement-factory.com
Thu Feb 25 21:43:36 UTC 2016
On 02/25/2016 01:19 PM, Heiler Bemerguy wrote:
>>> /2016/02/25 13:42:19 kid1| WARNING: swapfile header inconsistent with available data
>> I do not know what causes these in your environment. Do you see them
>> when _not_ using any optional options on the cache_dir lines and not
>> sending any HTTP requests to Squid?
> I just disabled the "optional options" and run like this:
> cache_dir rock /cache2/rock1 20000
>
> And even with a lot of connections coming in, NO errors or warnings this
> time...
Glad you are making progress! I assume you ran "squid -z" after removing
slot-size=2048 but please correct me if my assumption is wrong.
I suspect the warnings are caused by rock index building code assuming
that one database slot is always enough to store cache entry metadata.
With a 2KB slot, some metadata (e.g., containing long Vary values) may
overflow into the next db slot. The metadata is probably stored
correctly, but the index building code does not load its tail, resulting
in warnings.
I recommend filing a bug report with Squid bugzilla about this,
referring to this email message.
As a work around, consider increasing your slot size. No supported size
will be 100% sufficient until the bug is fixed, but I speculate that
16KB should cover most cases. You may be able to go lower.
Unfortunately, I do not know what the store entry metadata size
distribution looks like [in your environment] and Squid does not really
report that, so I am just guessing, and you would have to experiment.
HTH,
Alex.
More information about the squid-users
mailing list