On Fri, Dec 05, 2003 at 03:18:10PM +0100, Henrik Nordstrom wrote:
> On Fri, 5 Dec 2003, Victor Ivanov wrote:
> 
> > I'm running squid 2.5 stable 3. Actualy it should be stable4 (freebsd
> > squid port 2.5_4), it uses lots of patches.
> > Anyway, the behavior is the same with squid 2.4.
> > 
> > The problem is my cache dir became too big and now it takes about
> > five minutes to write the cache. In the meantime there's no service.
> 
> Most likely you have too little memory for the size of your cache_dir. See 
> the Squid FAQ 8.11 How much memory do I need in my Squid server? 
> <url:http://www.squid-cache.org/Doc/FAQ/FAQ-8.html#ss8.11>

That was the issue indeed. FreeBSD 5.1 comes with 512M hard data segment
limit. There is an example for extending the limit for FreeBSD 3 and 2
in the Squid FAQ, and it works with 5.1 too. There are even prepared
values in /sys/conf/NOTES:

    options         MAXDSIZ=(1024UL*1024*1024)
    options         MAXSSIZ=(128UL*1024*1024)
    options         DFLDSIZ=(1024UL*1024*1024)

The pc has only 512M RAM.  I'll measure the amount of swapin/outs and
the impact on the performance.

> 
> > HDD: 2x Maxtor UDMA133 using RAID0 (that obviously was a mistake)
> 
> RAID0 is relatively OK, but there is no performance benefit from it.
> 
> > It seems this raid has awfully low speed.
> 
> Should not.

Well, it's one of those cheap built-in Promise chips. Its write is
really slow :(

> > cache_mem 384 MB
> 
> Why this extremely large cache_mem?

Well I don't know :) I'll put it to 128M or something. It'll probably
decrease swap usage.

Thanks for your help.

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to