memory problem

From: Thomas Krause <tom@dont-contact.us>
Date: Sun, 04 Jan 1998 13:28:29 +0100

Hello,
I've installed squid 1.1.18 on a Linux 2.0.32 machine
with 256 MB RAM. There is high traffic on this proxy,
about 12 GB in the last 3 days. My problem is, that
the squid allocates more and more memory. If there
is no more physical RAM the proxy becomes realy slow.
I log the size of the squid every 5 min. I see that
the proxy doesn't release memory:

Fri Dec 19 14:10:01 PID:14699 SIZE:87524
Fri Dec 19 15:25:02 PID:14699 SIZE:104004
Fri Dec 19 20:00:03 PID:14699 SIZE:146260
Fri Dec 19 21:55:01 PID:14699 SIZE:195180
Mon Dec 22 00:45:01 PID:14699 SIZE:200080
Mon Dec 22 19:30:02 PID:14699 SIZE:245096
Sat Dec 27 19:40:05 PID:14699 SIZE:267588
Tue Dec 30 02:00:04 PID:14699 SIZE:280080

The relevant options (I think) in squid.conf are:

cache_mem 40
cache_swap 7200
maximum_object_size 8192
ipcache_size 4096
request_size 1024

Currently squid uses 207744 kB memory, the cache information is:

Squid Object Cache: Version 1.1.18
Start Time: Thu, 01 Jan 1998 16:50:48 GMT
Current Time: Sun, 04 Jan 1998 12:17:51 GMT
Connection information for squid:
        Number of TCP connections: 1510345
        Number of UDP connections: 307608
        Connections per hour: 26952.3
        Select loop called: 15378067 times, 15.790 ms avg
Cache information for squid:
        Storage Swap size: 6534 MB
        Storage Mem size: 34003 KB
        Storage LRU Expiration Age: 1.74 days
        Requests given to unlinkd: 52886
        Unused fileno stack count: 24
Resource usage for squid:
        CPU Time: 32216 seconds (13130 user 19086 sys)
        CPU Usage: 13%
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 1168043
Memory usage for squid via mallinfo():
        Total space in arena: 204663 KB
        Ordinary blocks: 97144 KB 156580 blks
        Small blocks: 0 KB 0 blks
        Holding blocks: 1552 KB 5 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 107519 KB
        Total in use: 98696 KB 48%
        Total free: 107519 KB 53%
File descriptor usage for squid:
        Maximum number of file descriptors: 2048
        Largest file desc currently in use: 290
        Number of file desc currently in use: 243
        Available number of file descriptors: 1805
        Reserved number of file descriptors: 100
Internal Data Structures:
        457952 StoreEntries
            92 StoreEntries with MemObjects
            92 StoreEntries with MemObject Data
            16 Hot Object Cache Items
Accounted Memory Usage:
        StoreEntry 457952 x 52 bytes = 23255 KB
        URL strings = 22242 KB
        IPCacheEntry 2318 x 36 bytes = 81 KB
        FQDNCacheEntry 0 x 56 bytes = 0 KB
        Hash link 16 x 12 bytes = 0 KB
        Pool MemObject structures 256 x 100 bytes = 25 KB (
16 free)
        Pool for Request structur 256 x 4408 bytes = 1102 KB (
736 free)
        Pool for in-memory object 10240 x 4096 bytes = 40960 KB (
6788 free)
        Pool for disk I/O 140 x 8192 bytes = 1120 KB (
816 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 694 x 292 bytes = 197 KB
        Miscellaneous = 1765 KB
        Total Accounted = 90749 KB

My problem: the proxy must be fast and stable. I think
the NOVM-version is not a good solution. There are
errors in my configuration ?
Thanks for any hints.

Bye,
Thomas.
Received on Sun Jan 04 1998 - 04:33:47 MST

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