Re: [squid-users] reading swap.state file

From: Eliezer Croitoru <eliezer_at_ngtech.co.il>
Date: Wed, 07 Aug 2013 03:07:39 +0300

On 08/07/2013 12:25 AM, Hussam Al-Tayeb wrote:
> On Tuesday 06 August 2013 14:13:57 Eliezer Croitoru wrote:
>
>> Dont be afraid to lose couple cached files...
>> Squid recover from it very fast..
>>
>> Eliezer
>
> not very fast. if i leave it like that, i end up with 50 to 200 files in
> swap.state every week that are not actually on disk.
>
> I wish we had some sort of 'squid fsck' option which checked for such
> inconsistencies.
>
Well you can follow on that in the store.log..
This is why these are there.
You can verify what files are being used as files and not as cache objects.
Then you can make sure that all the files are scheduled for removal in
the right time and place.
it's kind of a simple tool but it needs to be designed properly to make
sure it wont miss calculate that there is indeed a bug in squid or the OS..

if you are up to the task of sketch the pseudo code for this operation
It will be nice to see this kind of logs analysed.

Eliezer
Received on Wed Aug 07 2013 - 00:07:52 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 07 2013 - 12:00:06 MDT