[squid-users] CPU usage question

From: Raj <list@dont-contact.us>
Date: Wed, 04 Jun 2003 12:35:55 +0545

Hello to the Squid community!

I have been using a SQUID_WCCPv1system (2.5.STABLE3 / RH8 / P4 / 1 GB
RAM / 30 GB cache_dir ) fine for a week or so now. I am gradually adding
more and more traffic on it and watching the system load. Right now I
have half the traffic (~3 mbps). I am particularly observing the CPU
usage as it seems to be increasing dramatically with the added load.
Actually I am little confused as to the actual CPU usage by squid and
the total CPU usage all procs on the system.

My cache manager shows:

Resource usage for squid:
 UP Time: 505940.273 seconds
 CPU Time: 188719.130 seconds
 CPU Usage: 37.30%
 CPU Usage, 5 minute avg: 79.35%
 CPU Usage, 60 minute avg: 76.10%
--------------------------------------
My top shows:

12:38pm up 5 days, 20:35, 1 user, load average: 2.48, 2.62, 2.68
38 processes: 35 sleeping, 3 running, 0 zombie, 0 stopped
CPU states: 16.7% user, 65.4% system, 0.0% nice, 17.7% idle
Mem: 904112K av, 899604K used, 4508K free, 0K shrd, 287492K
buff
Swap: 1020116K av, 47776K used, 972340K free 197028K
cached

  PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
  580 squid 19 0 297M 267M 15896 R 78.4 30.3 3146m squid
 2124 root 10 0 512 496 456 D 0.7 0.0 45:48 syslogd
  133 root 9 0 0 0 0 DW 0.3 0.0 44:37 kjournald
  586 squid 9 0 632 600 556 S 0.1 0.0 9:59 diskd
 2128 root 9 0 416 400 364 S 0.1 0.0 13:38 klogd
------------------------------------

My procinfo shows:

user : 14:20:47.75 10.2% page in : 12803861 disk 1:
114289r63514927w
nice : 0:00:16.10 0.0% page out: 405032647 disk 2:
833539r 672513w
system: 1d 21:08:57.71 32.1% swap in : 19958 disk 3: 822433r
671563w
idle : 3d 9:06:09.78 57.7% swap out: 14854
-----------------------------------

I know that this may be a basic question but I am kind of confused to
find out the actual CPU usage by squid and the total CPU usage due to
all procs on the system. This info is vital for me to add more Squid
boxes to be able to handle all the traffic of my network.

Thanks in advance.

Raj
Received on Wed Jun 04 2003 - 00:52:11 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:17:14 MST