[squid-users] Filemap bits in use problem

From: Eric Lawson <Eric.Lawson@dont-contact.us>
Date: Thu, 27 Mar 2003 10:03:45 +1100

I'm running 2.5.STABLE1-20030317 on a Sun Cobalt Linux box. Downloaded and installed it just before 2.5 stable 2 was released, doh what timing I have. Looking in cachemgr.cgi in the store directory stats I'm seeing something strange. Filemap bits in use seems excessively high compared to the % capacity used. This is a copy of the cachemgr.cgi screen.

Store Directory Statistics:
Store Entries : 125975
Maximum Swap Size : 12863488 KB
Current Store Swap Size: 1178513 KB
Current Capacity : 9% used, 91% free

Store Directory #0 (ufs): /home/squid2/cache
FS Block Size 1024 Bytes
First level subdirectories: 16
Second level subdirectories: 256
Maximum Size: 12863488 KB
Current Size: 1178513 KB
Percent Used: 9.16%
Filemap bits in use: 125828 of 131072 (96%)
Filesystem Space in use: 1415920/17671528 KB (8%)
Filesystem Inodes in use: 134728/4621888 (3%)
Flags: SELECTED
Removal policy: lru
LRU reference age: 9.72 days

The two relevant sections in squid.conf are

cache_dir ufs /home/squid2/cache 12562.548 16 256
store_avg_object_size 9 KB

the 9k figure for the store_avg_object_size I chose from the following section of General Runtime Information in cachemgr.cgi

Cache information for squid:
        Request Hit Ratios: 5min: 39.8%, 60min: 35.0%
        Byte Hit Ratios: 5min: 9.5%, 60min: 41.4%
        Request Memory Hit Ratios: 5min: 1.3%, 60min: 1.2%
        Request Disk Hit Ratios: 5min: 19.8%, 60min: 31.2%
        Storage Swap size: 1181892 KB
        Storage Mem size: 19076 KB
        Mean Object Size: 9.36 KB
        Requests given to unlinkd: 668

According to the faq, the filemap bits in use should be equal to 2 * swap size / avg object size, so my filemaps should be 2,858,553 filemap bits, instead of the 131,072 which is listed?

What can I do to increase the number of filemap bits in use, I don't want to see what will happen when it hits 100%

Also, is there a quick and easy way to update from 2.5 stable 1, to 2.5 stable 2?

Eric

######################################################################
                         Warning

This email message and any attached files may contain information
that is confidential and subject of legal privilege intended only
for use by the individual or entity to whom they are addressed. If
you are not the intended recipient or the person responsible for
delivering the message to the intended recipient be advised that
you have received this message in error and that any use, copying,
circulation, forwarding, printing or publication of this message or
attached files is strictly forbidden, as is the disclosure of the
information contained therein. If you have received this message in
error, please notify the sender immediately and delete it from your
Inbox.

ACC Web Site: www.crimecommission.gov.au
######################################################################
Received on Wed Mar 26 2003 - 19:28:32 MST

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