Search squid archive

Re: Optimizing squid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux