Re: out of swap file numbers?

From: Stewart Forster <slf@dont-contact.us>
Date: Thu, 18 Dec 1997 10:56:33 +1100

Hi Tom,

> Has anyone seen this message from Squid before and knows what
> a cure could be? These come up in syslog (and cache.log):

        Yes & Yes.
>
> 97/12/16 22:52:12| You should increment MAX_SWAP_FILE
>
> Dec 01:42:59 squid[3086]: WARNING: You've run out of swap file numbers!
>
> Dec 14 01:42:59 : WARNING: Setting Maximum Swap Size to -1125914
> 2 KB
> Dec 14 01:43:00 : WARNING: Exceeded 'cache_swap' high water mark
> (35211570K > -11146550K)
>
> The machine is running Linux 2.0.32 with 512Meg of RAM with 45gig
> of cache, but only 64Meg of swap (is this what the problem might be?).

        You need to recompile squid with a higher maximum swap file number.
This can be achieved by editing store.c and looking for where the #define
for MAX_SWAP_FILE is. Just increase the amount the shift is done by. The
default is 1<<21 or only 2M swap files, which amounts to about 33Gb of disk
space. Once hit get over that you need to increase MAX_SWAP_FILE.

        Cheers,

                Stew.

-- 
Stewart Forster (Snr. Systems Programmer/Developer)
connect.com.au pty ltd, Level 9, 114 Albert Rd, Sth Melbourne, VIC 3205, Aust.
Email: slf@connect.com.au   Phone: +61 3 9251-3684   Fax: +61 3 9251-3666
Received on Wed Dec 17 1997 - 15:59:46 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:59 MST