Re: some linux tuning

From: <jlewis@dont-contact.us>
Date: Sat, 26 Jun 1999 16:06:23 -0400 (EDT)

On Sat, 26 Jun 1999, Stephen R. van den Berg wrote:

> That means, total leaked is approximately: 142550-46504-10000 = 86046 KB
> That's an approximate: 86046/2344439 = 37.6 bytes
> per request. Substracting malloc overhead,
> that means that the average object size lost is 29.6 bytes per request.
>
> How well does that fit in with other samples?
> You didn't show your request count, Jon.

Included below is the full general info from that previous post. What's
the 10000 above? His 7mb of free blocks plus ~3mb for the squid
process?

If I take 226629 - 96695 - 12000, I get 117934KB. If I ignore ICP,

117934KB * 1024 bytes/KB / 3197449 http reqs = 37.8 bytes/req

Hmm...looks like a pattern emerging. The numbers don't work out similarly
for my smaller cache though. The little one was just setup late last week
though, so really it's too soon to say it has the leak problem.

[big cache]
Squid Object Cache: Version 2.2.STABLE3

 Start Time:
              Wed, 16 Jun 1999 16:41:25 GMT
 Current Time:
              Fri, 18 Jun 1999 03:33:49 GMT

Connection information for squid:
        Number of clients accessing cache: 303
        Number of HTTP requests received: 3197449
        Number of ICP messages received: 5070397
        Number of ICP messages sent: 5076005
        Number of queued ICP replies: 44
        Request failure ratio: 0.00%
        HTTP requests per minute: 1528.1
        ICP messages per minute: 4849.2
        Select loop called: 30758610 times, 4.082 ms avg
Cache information for squid:
        Request Hit Ratios: 5min: 23.5%, 60min: 20.0%
        Byte Hit Ratios: 5min: 8.1%, 60min: 7.4%
        Storage Swap size: 9286217 KB
        Storage Mem size: 16160 KB
        Storage LRU Expiration Age: 0.46 days
        Mean Object Size: 9.28 KB
        Requests given to unlinkd: 2042182
Median Service Times (seconds) 5 min 60 min:
        HTTP Requests (All): 8.68295 2.25116
        Cache Misses: 12.67057 2.79397
        Cache Hits: 1.71839 0.33943
        Near Hits: 2.37608 0.76407
        Not-Modified Replies: 0.89858 0.23230
        DNS Lookups: 0.96589 0.47457
        ICP Queries: 0.00000 0.00000
Resource usage for squid:
        UP Time: 125544.417 seconds
        CPU Time: 51072.640 seconds
        CPU Usage: 40.68%
        CPU Usage, 5 minute avg: 11.30%
        CPU Usage, 60 minute avg: 23.64%
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 1995736
Memory usage for squid via mallinfo():
        Total space in arena: 226629 KB
        Ordinary blocks: 217882 KB 353099 blks
        Small blocks: 0 KB 0 blks
        Holding blocks: 1392 KB 4 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 8746 KB
        Total in use: 219274 KB 97%
        Total free: 8746 KB 4%
Memory accounted for:
        Total accounted: 96695 KB
File descriptor usage for squid:
        Maximum number of file descriptors: 1024
        Largest file desc currently in use: 527
        Number of file desc currently in use: 286
        Files queued for open: 0
        Available number of file descriptors: 738
        Reserved number of file descriptors: 100
        Store Disk files open: 26
Internal Data Structures:
        1000455 StoreEntries
          3232 StoreEntries with MemObjects
          3055 Hot Object Cache Items
        1000293 Filemap bits set
        1000269 on-disk objects

[little cache]
Squid Object Cache: Version 2.2.STABLE1

 Start Time:
              Fri, 25 Jun 1999 21:11:37 GMT
 Current Time:
              Sat, 26 Jun 1999 19:58:18 GMT

Connection information for squid:
        Number of clients accessing cache: 587
        Number of HTTP requests received: 895997
        Number of ICP messages received: 0
        Number of ICP messages sent: 0
        Number of queued ICP replies: 0
        Request failure ratio: 0.00%
        HTTP requests per minute: 655.6
        ICP messages per minute: 0.0
        Select loop called: 10101263 times, 8.118 ms avg
Cache information for squid:
        Request Hit Ratios: 5min: 39.2%, 60min: 39.7%
        Byte Hit Ratios: 5min: 28.3%, 60min: 25.5%
        Storage Swap size: 1891222 KB
        Storage Mem size: 8212 KB
        Storage LRU Expiration Age: 0.76 days
        Mean Object Size: 8.73 KB
        Requests given to unlinkd: 83337
Median Service Times (seconds) 5 min 60 min:
        HTTP Requests (All): 0.19742 0.19742
        Cache Misses: 0.32154 0.33943
        Cache Hits: 0.01745 0.01745
        Near Hits: 0.22004 0.27332
        Not-Modified Replies: 0.01035 0.01035
        DNS Lookups: 0.04639 0.04854
        ICP Queries: 0.00000 0.00000
Resource usage for squid:
        UP Time: 82000.836 seconds
        CPU Time: 11951.110 seconds
        CPU Usage: 14.57%
        CPU Usage, 5 minute avg: 18.05%
        CPU Usage, 60 minute avg: 21.12%
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 209210
Memory usage for squid via mallinfo():
        Total space in arena: 38135 KB
        Ordinary blocks: 35915 KB 14871 blks
        Small blocks: 0 KB 0 blks
        Holding blocks: 176 KB 1 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 2220 KB
        Total in use: 36091 KB 95%
        Total free: 2220 KB 6%
Memory accounted for:
        Total accounted: 26731 KB
File descriptor usage for squid:
        Maximum number of file descriptors: 1024
        Largest file desc currently in use: 205
        Number of file desc currently in use: 179
        Files queued for open: 0
        Available number of file descriptors: 845
        Reserved number of file descriptors: 100
        Store Disk files open: 4
Internal Data Structures:
        216567 StoreEntries
          1505 StoreEntries with MemObjects
          1484 Hot Object Cache Items
        216515 Filemap bits set
        216513 on-disk objects

----don't waste your cpu, crack rc5...www.distributed.net team enzo---
 Jon Lewis *jlewis@lewis.org*| Spammers will be winnuked or
 System Administrator | nestea'd...whatever it takes
 Atlantic Net | to get the job done.
_________http://www.lewis.org/~jlewis/pgp for PGP public key__________
Received on Sat Jun 26 1999 - 13:47:49 MDT

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