[squid-users] memory question

From: Joost de Heer <[email protected]>
Date: Fri, 29 Apr 2005 14:45:57 +0200 (CEST)

Runnin Squid 2.5STABLE7 on Linux.

When I look at the memory usage of squid via top I see the following:

13866 squid 25 0 256M 226M 1372 D 21.7 11.2 153:57 0 squid

When I look via mgr:info I see the following:

Resource usage for squid:
        UP Time: 9600.075 seconds
        CPU Time: 9299.210 seconds
        CPU Usage: 96.87%
        CPU Usage, 5 minute avg: 95.74%
        CPU Usage, 60 minute avg: 95.96%
        Process Data Segment Size via sbrk(): 255797 KB
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 10441
Memory usage for squid via mallinfo():
        Total space in arena: 255797 KB
        Ordinary blocks: 233705 KB 3587 blks
        Small blocks: 0 KB 0 blks
        Holding blocks: 10248 KB 10 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 22091 KB
        Total in use: 243953 KB 92%
        Total free: 22091 KB 8%
        Total size: 266045 KB

When I look at http://www.squid-cache.org/Doc/FAQ/FAQ-8.html, I see the
following:

[quote]
Finally, you can ask the Squid process to report its own memory usage.
This is available on the Cache Manager info page. Your output may vary
depending upon your operating system and Squid version, but it looks
similar to this:

    Resource usage for squid:
            Maximum Resident Size: 137892 KB
    Memory usage for squid via mstats():
            Total space in arena: 140144 KB
            Total free: 8153 KB 6%

If your RSS (Resident Set Size) value is much lower than your process
size, then your cache performance is most likely suffering due to paging.
[/quote]

In top, the RSS is shown to be 226MB, in the mgr info, the Maximum RS is 0
KB. Which of the two should I believe?

Joost
Received on Fri Apr 29 2005 - 06:45:29 MDT

This archive was generated by hypermail pre-2.1.9 : Sun May 01 2005 - 12:00:04 MDT