squid: 'run out of swap file numbers'

squid: 'run out of swap file numbers'

Post by Jens Grivol » Wed, 01 Sep 1999 04:00:00



Hi,

I'm getting messages such as this one in my squid.out:

| Tue Aug 31 08:11:13 CEST 1999: Running: squid -D -s
| FATAL: You've run out of swap file numbers.

I have no idea what this is supposed to mean.

In my cache.log I have warnings such as:

| 1999/08/31 06:47:45| WARNING: filemap utilization at 88%
|         Consider decreasing store_avg_object_size in squid.conf

Is this related?

I am somewhat surprised as I still have free diskspace and while squid
is eating up all physical RAM, the swap partition is basically
untouched.

I went with the default settings which I believed to be rather
conservative so I don't see why it wouldn't work on my system.

The message do seem to be relevant as I am having serious problems
with the proxy today, many pages will not get loaded or not get loaded
completely.

thanks for any pointers,

Jens

 
 
 

squid: 'run out of swap file numbers'

Post by Jens Grivol » Wed, 01 Sep 1999 04:00:00



>Hi,

>I'm getting messages such as this one in my squid.out:

>| Tue Aug 31 08:11:13 CEST 1999: Running: squid -D -s
>| FATAL: You've run out of swap file numbers.

> [..]

adding
        store_avg_object_size 7 KB

to my squid.conf and doing squid -k reconfigure seems to have fixed it
for now.

I am still somewhat amazed that squid would completely lock up, just
because it didn't expect so many small files.  I had the harddisk
space set to the default (100M, yes, I am going to change that as soon
as I get a bigger hd for the machine) with about 90M used for the
cache.

The expected behavior would have been of squid to just kick the old
stuff to make room for new data.  It appears to me as a bug that it
just won't work anymore.

Jens

 
 
 

1. Numbering a text file (UNIX 'number' command)

SUMMARY:
1. Use 'nl':
   csh% /usr/bin/nl text.file > numbered.text.file

2. Use 'pr':
   csh% /usr/bin/pr -nt < text.file > numbered.text.file

3. Use 'awk':
   csh% cat -n file > file2  ; awk '{print NR, $0}' file > file2
   csh% awk '{print NR, $0}' infile > outfile

4. Use 'perl':
   dos> perl -e "my $num =1;while(<>) {print \"$num $_\"; $num +=1;}" file
   csh% perl -e 'my $num =1;while(<>) {print  "$num $_";  $num +=1;}' file

5. Use 'number':
   csh% number filename

Where 'number' is as shown below:
#!   /bin/csh  -f
############################################################################
# Name: number
# Intent: number any text file
# Author: Eunice Santorini, Version 1.00 July 10, 2002
# Revision: 1.05 July 10, 2002
############################################################################

# /usr/bin/nl, e.g.:
#  csh% /usr/bin/nl text.file > numbered.text.file
#

#  csh% /usr/bin/pr -nt < text.file > numbered.text.file
#

# suggested awk, e.g.:
#  csh% cat -n file > file2  ; awk '{print NR, $0}' file > file2
#       For uniform width, use awk printf formatting instead of print.
#  csh% awk '{print NR, $0}' infile > outfile
#
# Mark Mieschler suggested perl:
#  dos> perl -e "my $num =1;while(<>) {print \"$num $_\"; $num +=1;}" file
#  csh% perl -e 'my $num =1;while(<>) {print  "$num $_";  $num +=1;}' file
############################################################################
if ( $#argv >= 1) then
 set INFILE = $1
 set NUMFILE = $INFILE.$$
     if (-f $INFILE) then
       set OUTFILE = ${INFILE}.$$$
       set number=`wc -l $INFILE | awk '{print $1}'`

       echo $count > $NUMFILE
        while ($count <= $number)

          echo $count >> $NUMFILE
        end
       paste -d" " $NUMFILE $INFILE > $OUTFILE
       $EDITOR $OUTFILE
     else
       echo "Sorry, $INFILE does not seem to exist ..."
     endif
 else
  echo "Ooops ... missing file name ..."
  echo "Example: $0 filename"
endif
exit 0

2. newbie needs MAJOR help with slackware UMSDOS install

3. Sound problem on Toshiba Laptop

4. qattach error, related to ISDN ?

5. Problem running 'waisq' in 'chroot' file system

6. How do you turn on Iptables in RH 7.2????

7. Can apache/stronghold log when a user 'click outs' of your site?

8. Adding swap space using 'swap -a' command ?

9. swap space descrepancy between top and 'swap'

10. 'cat file' but only if 'file' exist

11. Coverting '.so' files to '.o' files