Re: [squid-users] cache dir keeps growing

From: Martin Chandler <chand@dont-contact.us>
Date: Mon, 15 Oct 2001 10:12:56 +0900

Thanks for the response.

The find command turned up nothing.
As for the log rotation, they are scheduled to be rotated once a week, but
I have moved that up to daily to see if it makes a difference.

The interesting thing is that last Friday the cache size was down to almost
the configured level (about 1.4G), but then it rocketed back up to about
4.2G by Saturday morning, when the machine crashed (for the second time
this week).
Unfortunately I didn't write down the error message on the console, and
when I rebooted
and checked the logs there was nothing related there...
At this moment (Monday morning), the cache is still at 4.2G, so it has not
grown since the reboot Saturday
morning.

I was running apache in order to access the cachemgr script, but I have
shut it down
to keep things as simple as possible while I figure this out.

If you have any other ideas, or would like some additional information, please
let me know.

Thanks,
Martin

At 21:33 01/10/12 +0200, Henrik Nordstrom wrote:
>Good question.
>
>Check if there is any huge files in the cache directories.
>
>find /squid -size +500000 -ls
>
>Are you periodically rotating your logs? If not then swap.state may grow
>really huge
>
>Regards
>Henrik Nordstr$B‹N(B
>Squid Hacker
>
>
>Martin Chandler wrote:
> >
> > I have just switched over my squid proxy from a FreeBSD server to Linux 2.4.7
> > squid 2.3.STABLE5, and what had worked before does no more. My cache just
> > keeps growning.
> >
> > from squid.conf:
> > cache_dir ufs /squid 1024 16 256
> >
> > [root@proxy]# df
> > Filesystem 1k-blocks Used Available Use% Mounted on
> > /dev/sda6 241116 82260 146408 36% /
> > /dev/sda5 93309 7299 81193 8% /boot
> > /dev/sda10 1027768 44 975516 0% /home
> > /dev/sda11 11653788 2950000 8111796 27% /squid
> > /dev/sda8 3020140 374172 2492552 13% /usr
> > /dev/sda9 1027768 351920 623640 36% /var
> >
> > I am currently using the GDSF replacement policy. The cachemgr storedir
> > section looks like this,
> >
> > Store Directory Statistics:
> > Store Entries : 110807
> > Maximum Swap Size : 1048576 KB
> > Current Store Swap Size: 943021 KB
> > Current Capacity : 90% used, 10% free
> >
> > Store Directory #0: /squid
> > First level subdirectories: 16
> > Second level subdirectories: 256
> > Maximum Size: 1048576 KB
> > Current Size: 943021 KB
> > Percent Used: 89.93%
> > Filemap bits in use: 110477 of 262144 (42%)
> > Filesystem Space in use: 2947264/11653788 KB (25%)
> > Filesystem Inodes in use: 242820/1482208 (16%)
> > Flags:
> >
> > so evidently it thinks it is within bounds. What am I missing?
> >
> > Thanks,
> > Martin
Received on Sun Oct 14 2001 - 19:08:15 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:02:43 MST