RE: [squid-users] squid cache delay?

From: Chris Robertson <[email protected]>
Date: Fri, 16 Dec 2005 10:16:51 -0900

>> ----- Original Message ----- From: "Mark Elsen"
>> <mark.elsen@gmail.com> To: "Dave" <dmehler26@woh.rr.com> Cc:
>> <squid-users@squid-cache.org> Sent: Friday, December 16, 2005 11:59
>> AM Subject: Re: [squid-users] squid cache delay?
>>
>>
>>> Hello, I've got a recurring problem with squid. I'm running it on
>>> a freebsd6 box installed from the latest port. Approximately
>>> every 3 to 4 days internet access slows to a crawl, and on the
>>> squid box squid processes are up in cpu time. Additionally
>>> whenever a lan machine requests a page the squid box's hard disk
>>> spins up and goes crazy for about 30 seconds, then when it's done
>>> the page is finally served. I'm assuming it has something to do
>>> with the squid cache setup i'm running, which is only a single
>>> directory, a squid -k reconfigure relieves the problem. My
>>> squid.conf file has this:
>>> cache_dir ufs /usr/local/squid/cache 100 16 256
>>> I am thinking about increasing these values, would a
>>> different cache storage type help? If i add another cache
>>> directory would this problem reoccur?
>>> Thanks.
>>> Dave.
>>>
>>>
>>
>>
>> - http://www.squid-cache.org/Doc/FAQ/FAQ-11.html#ss11.46
>>
>> - Does SQUID have sufficient memory on your system ; verify that
>> the squid process is not swapping.
>>
>> M.
>>
>>
> -----Original Message-----
> From: Dave [mailto:dmehler26@woh.rr.com]
> Sent: Friday, December 16, 2005 9:36 AM
> To: squid-users@squid-cache.org
> Subject: Re: [squid-users] squid cache delay?
>
>
> Hello, Thanks for the suggestion. I checked out the faq and /dev/null
> does not appear to be the issue. Memory, this box has 1gb of ram, and
> during these high cpu periods i do not detect swapping. I'm
> suspecting that since the cache is full squid is dumping the oldest
> items and taking a while to do it. I'm wondering if adding another
> cache directory, changing the size of this one, or using a different
> cache format will aliviate this?
> Thanks.
> Dave.
>

Try using aufs or diskd instead of ufs... Adding another cache_dir directive will not help (unless it's on another spindle/drive). For what it's worth, the "single directory" is a single parent directory. The additional arguments to cache_dir specify how many sub directories to use (in your case, 16 sub-directories with 256 sub-sub-directories each, or 4096 directories in total, not including the parent). For 100MB of content, that's plenty.

Chris
Received on Fri Dec 16 2005 - 12:16:54 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 31 2005 - 12:00:02 MST