FAQ-11/ss11.17 and Linux (long config included!)

From: Simon Greaves <Simon.Greaves@dont-contact.us>
Date: Fri, 07 Jan 2000 09:51:27 +1300 (FJST)

Hi,

Browsing the FAQ, and having read:

http://www.squid-cache.org/Doc/FAQ/FAQ-11.html#ss11.17

I did the page faults/connections calculation and got fairly high ratio's,
implying that squid may be paging too much. Looking at memory usage with
cachemgr and top, it looks to me like I should be ok for memory, would
anyone care to help clarify this for me?

Sorry about the size of the message, I'm including all of cachemgr's info
in case there is anything else there I should know about. For reference,
the two caches are in a sibling relationship and serve the whole
university community. Our Internet link is currently 64K, increasing to
128K soon (gasp!... :-)

Thanks,

Simon

-- 
8<-------------------------------------------------
Cache0:	P100, 128MB, RH Linux 6.0/2.2.12, 2.1GB IDE, Squid 2.2S5
top:
Mem:  128432K av, 125284K used,   3148K free,  12504K shrd,  68464K buff
Swap: 133016K av,   2932K used, 130084K free                 10672K cached
  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
  436 nobody    10   0 30908  28M  1856 R       0 29.0 22.5  85:37 squid
cachemgr:
Connection information for squid:
        Number of clients accessing cache:      136
        Number of HTTP requests received:       21981
        Number of ICP messages received:        17002
        Number of ICP messages sent:    17002
        Number of queued ICP replies:   0
        Request failure ratio:   0.00%
        HTTP requests per minute:       20.0
        ICP messages per minute:        30.9
        Select loop called: 405592 times, 162.538 ms avg
Cache information for squid:
        Request Hit Ratios:     5min: 35.2%, 60min: 27.8%
        Byte Hit Ratios:        5min: 8.1%, 60min: 14.7%
        Storage Swap size:      1303737 KB
        Storage Mem size:       8176 KB
        Storage LRU Expiration Age:      30.57 days
        Mean Object Size:       8.12 KB
        Requests given to unlinkd:      7236
Median Service Times (seconds)  5 min    60 min:
        HTTP Requests (All):   3.11263  2.37608
        Cache Misses:          7.38455  3.66001
        Cache Hits:            0.15888  0.24524
        Near Hits:             2.50793  2.64709
        Not-Modified Replies:  0.27332  0.24524
        DNS Lookups:           0.45394  0.20377
        ICP Queries:           0.00000  0.00000
Resource usage for squid:
        UP Time:        65923.912 seconds
        CPU Time:       5164.140 seconds
        CPU Usage:      7.83%
        CPU Usage, 5 minute avg:        17.22%
        CPU Usage, 60 minute avg:       14.61%
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 9988
Memory usage for squid via mallinfo():
        Total space in arena:   29246 KB
        Ordinary blocks:        28759 KB    706 blks
        Small blocks:               0 KB      0 blks
        Holding blocks:           692 KB      1 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:     486 KB
        Total in use:           29451 KB 101%
        Total free:               486 KB 2%
Memory accounted for:
        Total accounted:        21783 KB
File descriptor usage for squid:
        Maximum number of file descriptors:   4096
        Largest file desc currently in use:     35
        Number of file desc currently in use:   29
        Files queued for open:                   0
        Available number of file descriptors: 4067
        Reserved number of file descriptors:   100
        Store Disk files open:                   1
Internal Data Structures:
        160677 StoreEntries
          1554 StoreEntries with MemObjects
          1549 Hot Object Cache Items
        160637 Filemap bits set
        160636 on-disk objects
page faults/number of connections:
	9988/21981 = 0.454
8<-------------------------------------------------
Cache1: P100, 128MB, RH Linux 6.0/2.2.12, 6.4GB IDE, Squid 2.2S5
top:
Mem:  128432K av, 125292K used,   3140K free,   7328K shrd,  10648K buff
Swap: 128484K av,   2952K used, 125532K free                  8636K cached
  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
  429 nobody    16   0 95912  92M   924 S       0  4.0 73.4  19:59 squid
cachemgr:
Connection information for squid:
        Number of clients accessing cache:      177
        Number of HTTP requests received:       39879
        Number of ICP messages received:        20420
        Number of ICP messages sent:    21600
        Number of queued ICP replies:   4
        Request failure ratio:   0.00%
        HTTP requests per minute:       30.5
        ICP messages per minute:        32.2
        Select loop called: 684962 times, 114.419 ms avg
Cache information for squid:
        Request Hit Ratios:     5min: 23.9%, 60min: 30.9%
        Byte Hit Ratios:        5min: 26.9%, 60min: 31.2%
        Storage Swap size:      4911418 KB
        Storage Mem size:       28660 KB
        Storage LRU Expiration Age:      98.78 days
        Mean Object Size:       7.91 KB
        Requests given to unlinkd:      13411
Median Service Times (seconds)  5 min    60 min:
        HTTP Requests (All):   2.64709  2.25116
        Cache Misses:          2.94900  3.46762
        Cache Hits:            0.08265  0.04776
        Near Hits:             2.94900  2.37608
        Not-Modified Replies:  0.02069  0.04277
        DNS Lookups:           0.07968  0.08334
        ICP Queries:           0.00000  0.00000
Resource usage for squid:
        UP Time:        78372.478 seconds
        CPU Time:       1201.710 seconds
        CPU Usage:      1.53%
        CPU Usage, 5 minute avg:        0.21%
        CPU Usage, 60 minute avg:       1.02%
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 26623
Memory usage for squid via mallinfo():
        Total space in arena:   94258 KB
        Ordinary blocks:        93985 KB   3466 blks
        Small blocks:               0 KB      0 blks
        Holding blocks:           860 KB      2 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:     272 KB
        Total in use:           94845 KB 101%
        Total free:               272 KB 0%
Memory accounted for:
        Total accounted:        78318 KB
File descriptor usage for squid:
        Maximum number of file descriptors:   4096
        Largest file desc currently in use:     37
        Number of file desc currently in use:   27
        Files queued for open:                   0
        Available number of file descriptors: 4069
        Reserved number of file descriptors:   100
        Store Disk files open:                   1
Internal Data Structures:
        629061 StoreEntries
          5807 StoreEntries with MemObjects
          5802 Hot Object Cache Items
        620566 Filemap bits set
        620574 on-disk objects
page faults/number of connections:
	26623/39879 = 0.668
8<-------------------------------------------------
-- 
Simon Greaves				voice: (+679) 212114
Computer Centre				fax:   (+679) 304089
The University of the South Pacific	email: Simon.Greaves@usp.ac.fj
Suva, Fiji
Received on Thu Jan 06 2000 - 14:52:06 MST

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