Using less than 0.3% of available swap

From: Jtn <jtn@dont-contact.us>
Date: Fri, 7 Nov 1997 11:29:06 +0900

Hope you can point me in the right direction.

We are a small ISP pulling in about 600MB per day and would like to use Squid to reduce this.

I've set up Squid on our web server:
It has a 4GB SCSI devoted to the cache and 96MB RAM (Although for some reason Linux 2.0.30 'free' only reports 64MB even though the CMOS reports the full 96MB)

I've played around with mem and swap sizes and can't seem to get the cache to grow past about 13MB.

Any ideas on where to start looking? I've read all of the FAQ's etc and haven't come up with anything.

Copies of relevant information follows.

Kind regards
Stephen Neander
jtn@acenet.com.au

Cache Information
-----------------------------------------------------------------------
Squid Object Cache: Version 1.1.14
Start Time: Wed, 05 Nov 1997 06:45:32 GMT
Current Time: Fri, 07 Nov 1997 00:27:44 GMT
Connection information for squid:
        Number of TCP connections: 28772
        Number of UDP connections: 0
        Connections per hour: 689.9
        Select loop called: 609273 times, 246.412 ms avg
Cache information for squid:
        Storage Swap size: 13 MB
        Storage Mem size: 11631 KB
        Storage LRU Expiration Age: 365.00 days
        Requests given to unlinkd: 0
        Unused fileno stack count: 0
Resource usage for squid:
        CPU Time: 431 seconds (246 user 185 sys)
        CPU Usage: 0%
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 1096
Memory usage for squid via mallinfo():
        Total space in arena: 22272 KB
        Ordinary blocks: 12885 KB 1378 blks
        Small blocks: 0 KB 0 blks
        Holding blocks: 260 KB 1 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 9387 KB
        Total in use: 13145 KB 59%
        Total free: 9387 KB 42%
File descriptor usage for squid:
        Maximum number of file descriptors: 256
        Largest file desc currently in use: 22
        Number of file desc currently in use: 22
        Available number of file descriptors: 234
        Reserved number of file descriptors: 64
Internal Data Structures:
          2222 StoreEntries
            59 StoreEntries with MemObjects
            59 StoreEntries with MemObject Data
            57 Hot Object Cache Items
Accounted Memory Usage:
        StoreEntry 2222 x 52 bytes = 112 KB
        URL strings = 115 KB
        IPCacheEntry 137 x 36 bytes = 4 KB
        FQDNCacheEntry 0 x 56 bytes = 0 KB
        Hash link 57 x 12 bytes = 0 KB
        Pool MemObject structures 59 x 100 bytes = 5 KB ( 0 free)
        Pool for Request structur 61 x 4408 bytes = 262 KB ( 0 free)
        Pool for in-memory object 2947 x 4096 bytes = 11788 KB ( 0 free)
        Pool for disk I/O 1 x 8192 bytes = 8 KB ( 0 free)
        NetDB Address Entries 0 x 76 bytes = 0 KB
        NetDB Host Entries 0 x 8 bytes = 0 KB
        NetDB Peer Entries 0 x 24 bytes = 0 KB
        ClientDB Entries 44 x 292 bytes = 12 KB
        Miscellaneous = 461 KB
        Total Accounted = 12771 KB
-----------------------------------------------------------------------

Cache Parameters
-----------------------------------------------------------------------
 Parameter Value Description
 VM-Max 15 Maximum hot-vm cache (MB)
 VM-High 90 High water mark hot-vm cache (%)
 VM-Low 75 Low water mark hot-vm cache (%)
 Swap-Max 3000 Maximum disk cache (MB)
 Swap-High 95 High water mark disk cache (%)
 Swap-Low 90 Low water mark disk cache (%)
 Neg-TTL 300 TTL for negative cache (s)
 ReadTimeout 900 Maximum idle connection (s)
 ClientLifetime 12000 Lifetime for incoming HTTP requests
 CleanRate 31536000 Rate for periodic object expiring
 HttpAccelMode 0 Is operating as an HTTP accelerator
-----------------------------------------------------------------------

Cache Configuration File
-----------------------------------------------------------------------
#squid.conf - a very basic config file for squid

#Turn logging to it's lowest level
debug_options ALL,1

#defines a group (or Access Control List) that includes all IP
#addresses
acl all src 0.0.0.0/0.0.0.0

acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl allowed_hosts_nar src 203.35.118.0/255.255.255.192
acl allowed_hosts_bow src 203.35.119.0/255.255.255.192
acl web_server src 203.35.118.2/255.255.255.192
#acl Dangerous_ports port 7 9 19

#http_access deny manager all
#http_access deny Dangerous_ports
http_access allow allowed_hosts_nar
http_access allow allowed_hosts_bow
http_access deny manager !localhost !web_server
#http_access deny all

icp_access allow allowed_hosts_nar
icp_access allow allowed_hosts_bow
icp_access deny all

#allow all sites to use connect to us via HTTP
#http_access allow all

#allow all sites to use us as a sibling
#icp_access allow all

#test the following sites to check that we are connected
dns_testnames internic.net usc.edu cs.colorado.edu mit.edu yale.edu

#run as the squid user
cache_effective_user squid squid
#otherwise, you can uncomment the below line and comment the one out.
# this will run as use "nobody" with the group "nogrtoup"
#cache_effective_user nobody nobody

err_html_text <A HREF="mailto:squid@acenet.com.au">Webmaster</A>

cache_mgr squid@acenet.com.au

cachemgr_passwd jbdkclzq all

cache_mem 15

cache_swap 3000

cache_host ozric.telstra.net parent 3128 3130 no-query default

cache_stoplist cgi-bin ? acenet.com.au ace.com.au berkelouw.com.au bvr.com.au
hierarchy_stoplist hotmail.com
memory_pools off
-----------------------------------------------------------------------

Thank You :-)
                                                                                                                                                              
Received on Thu Nov 06 1997 - 17:23:59 MST

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