Re: Memory-problem with Squid 1.0.9, 1.0.15 and 1.0.16, YIKES!

From: James R Grinter <jrg@dont-contact.us>
Date: Wed, 25 Sep 1996 17:35:42 +0000

On Wed 25 Sep, 1996, Lars.Slettjord@cc.uit.no wrote:
>The server runs on a SGI Challenger S (IRIX 5.3) with 128 MB RAM. And
>right now the memory usage is:

Well, as a comparison, for an SGI Challenge S (irix 6.2) 256MB RAM:
(with some extra memory figures added below)

cache_mem 48
cache_swap 30000
gopher 6 4320
http 6 4320
ftp 6 4320

> Memory usage for squid via mallinfo():
> Total space in arena: 145327 KB
> Ordinary blocks: 38419 KB 460153 blks
> Small blocks: 241 KB 16400 blks
> Holding blocks: 5 KB 164 blks
> Free Small blocks: 76 KB
> Free Ordinary blocks: 106584 KB
> Total in use: 38666 KB 27%
> Total free: 106661 KB 73%

        Storage Swap size: 3426 MB
        Storage Mem size: 25441 KB

Memory usage for squid via mallinfo():
        Total space in arena: 187639 KB
        Ordinary blocks: 83827 KB 30814 blks
        Small blocks: 42320 KB 721800 blks
        Holding blocks: 225 KB 7218 blks
        Free Small blocks: 335 KB
        Free Ordinary blocks: 60930 KB
        Total in use: 126373 KB 67%
        Total free: 61266 KB 33%

Internal Data Structures:
        Hot Object Cache Items 2218
        StoreEntries with MemObjects 2218
Meta Data:
        StoreEntry 342735 x 48 bytes = 16065 KB
        IPCacheEntry 651 x 52 bytes = 33 KB
        Hash link 29 x 12 bytes = 0 KB
        URL strings = 15554 KB
        Pool MemObject structures 2262 x 96 bytes = 212 KB ( 4 free)
        Pool for Request structur 2301 x 4508 bytes = 10129 KB ( 176 free)
        Pool for in-memory object 8633 x 4096 bytes = 34532 KB ( 8572 free)
        Pool for disk I/O 267 x 8192 bytes = 2136 KB ( 1208 free)
        Miscellaneous = 5077 KB
        Total Accounted = 83741 KB

>Have anyone else expirienced this? Does anyone know what to do to
>fix this?

We think our memory usage is just 'correct'. We have a lot of slow
clients accessing (dialups over modem connections) and a large
number of connections - approximately 49000 an hour, average.

Something to look at is the amount of memory in use by VM Objects,
because Squid uses memory whilst it's downloading the object and
saving it to disk, and also whilst sending it to a client & reading
from disk. A colleague will probably be along in a minute to explain
that better, if someone else doesn't.. (Pete?)

-- jrg.
Received on Wed Sep 25 1996 - 09:35:53 MDT

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