RE: [squid-users] FW: Squid memory utilization

From: Scott Phalen <sphalen@dont-contact.us>
Date: Fri, 20 Feb 2004 12:51:56 -0600

I understand that there are other processes that will run just from turning
on the server. I am using "TOP" to verify RAM utilization. When squid
isn't running there is not more than 200MB of RAM used. I turn on squid and
within 6 hours I am at the point you see in "TOP" below:

12:47pm up 6:06, 4 users, load average: 0.21, 0.23, 0.18
49 processes: 46 sleeping, 3 running, 0 zombie, 0 stopped
CPU states: 5.6% user, 11.4% system, 0.0% nice, 83.0% idle
Mem: 2059416K av, 1798476K used, 260940K free, 292K shrd, 136604K
buff
Swap: 2096400K av, 0K used, 2096400K free 1392716K
cached

  PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
 2886 nobody 15 0 153M 153M 1684 R 14.9 7.6 22:11 squid

Keep in mind I am a novice linux guy. If I am reading top wrong then my
bad. I don't know what the "buff" and "cached" mean to the far right.
Maybe that is where my issue is. Or maybe I have a memory leak. I have no
clue how to check for that. I am using the latest stable version of squid,
I read there were memory leak issues in previous posts, do I need to patch
this version of squid?

Scott

-----Original Message-----
From: Duane Wessels [mailto:wessels@squid-cache.org]
Sent: Friday, February 20, 2004 12:46 PM
To: Scott Phalen
Cc: squid-users@squid-cache.org
Subject: RE: [squid-users] FW: Squid memory utilization

On Fri, 20 Feb 2004, Scott Phalen wrote:

> Thanks for showing me that command. Here is the info you asked for.
> Anything I should be concerned about in here?
>
> Resource usage for squid:
> UP Time: 13526.773 seconds
> CPU Time: 1184.000 seconds
> CPU Usage: 8.75%
> CPU Usage, 5 minute avg: 14.68%
> CPU Usage, 60 minute avg: 12.46%
> Process Data Segment Size via sbrk(): 153436 KB
> Maximum Resident Size: 0 KB
> Page faults with physical i/o: 473

According to this, the Squid process size is 153MB.

Now, why do you say that your "server is consuming all it's RAM"?
If you are looking at top and the value for "Free" then you need
to understand that your system's RAM is being used for other things,
such as disk I/O buffers.

Duane W.
Received on Fri Feb 20 2004 - 11:52:02 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:02 MST