[rhn-users] CPU usage problem on the Enterprise AS4.0
LanTu at viatech.com
LanTu at viatech.com
Thu May 19 00:07:54 UTC 2005
I tried to run 2 big processes "atachd and Astro", got following result
from "top" on AS4.0.
It is very interesting, the total CPU usage (cpu0 + cpu1 + cpu2 + cpu3)
wont over then 100%
That's why I always got %CPU usage is less then 25% (100% / 4 cpus =
25%) from sar.
I also try run same processes on the RedHat Enterprise 3.0 on same model
machine,
the CPU usage is make sense, 2 CPUs usage can reach 100% full.
I read a journal about the CPU Affinity from
http://www.linuxjournal.com/article/6799
But I am not sure it is related or not.
CPU usage on AS4.0
------------------------------------------------------------------------
-----------------------------------
top - 16:47:39 up 19 days, 3:43, 4 users, load average: 1.65, 1.77,
1.19
Tasks: 99 total, 2 running, 97 sleeping, 0 stopped, 0 zombie
Cpu0 : 94.8% us, 4.3% sy, 0.0% ni, 0.9% id, 0.0% wa, 0.0% hi,
0.0% si
Cpu1 : 0.0% us, 28.1% sy, 0.0% ni, 71.9% id, 0.0% wa, 0.0% hi,
0.0% si
Cpu2 : 0.0% us, 6.7% sy, 0.0% ni, 93.3% id, 0.0% wa, 0.0% hi,
0.0% si
Cpu3 : 0.0% us, 21.1% sy, 0.0% ni, 78.9% id, 0.0% wa, 0.0% hi,
0.0% si
Mem: 32465300k total, 25689708k used, 6775592k free, 66276k buffers
Swap: 50331604k total, 0k used, 50331604k free, 19961288k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27690 xinchang 25 0 3836m 1.7g 6316 R 24.4 5.5 11:51.76 atachd
23472 xinchang 16 0 5243m 3.0g 17m S 7.0 9.7 124:53.23 Astro
23081 xinchang 17 0 8328 1112 844 S 3.2 0.0 42:03.13 top
27796 root 18 0 8328 1116 844 R 2.2 0.0 1:53.19 top
8400 xinchang 15 0 69732 2996 2172 S 1.6 0.0 623:35.74 xterm
27720 root 16 0 26996 1468 988 S 0.1 0.0 0:22.24 in.rlogind
1 root 16 0 4744 556 460 S 0.0 0.0 0:01.61 init
2 root RT 0 0 0 0 S 0.0 0.0 0:00.37 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/0
------------------------------------------------------------------------
-----------------------------------
top - 16:48:23 up 19 days, 3:43, 4 users, load average: 1.84, 1.81,
1.23
Tasks: 99 total, 3 running, 96 sleeping, 0 stopped, 0 zombie
Cpu0 : 69.0% us, 4.0% sy, 0.0% ni, 27.0% id, 0.0% wa, 0.0% hi,
0.0% si
Cpu1 : 28.8% us, 58.2% sy, 0.0% ni, 13.0% id, 0.0% wa, 0.0% hi,
0.0% si
Cpu2 : 0.0% us, 75.3% sy, 0.0% ni, 24.7% id, 0.0% wa, 0.0% hi,
0.0% si
Cpu3 : 0.0% us, 64.5% sy, 0.0% ni, 35.5% id, 0.0% wa, 0.0% hi,
0.0% si
Mem: 32465300k total, 25690028k used, 6775272k free, 66276k buffers
Swap: 50331604k total, 0k used, 50331604k free, 19961288k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27690 xinchang 25 0 3836m 1.7g 6316 R 99.9 5.5 12:35.65 atachd
23472 xinchang 15 0 5243m 3.0g 17m S 63.7 9.7 125:10.29 Astro
23081 xinchang 16 0 8328 1112 844 S 61.5 0.0 42:11.19 top
3093 gdm 16 0 114m 11m 6724 S 41.1 0.0 2236:16 gdmgreeter
8400 xinchang 18 0 69732 2996 2172 R 40.5 0.0 623:41.28 xterm
27978 root 18 0 8328 1108 844 R 11.5 0.0 0:01.90 top
82 root 15 0 0 0 0 S 0.3 0.0 6:59.22 pdflush
1 root 16 0 4744 556 460 S 0.0 0.0 0:01.61 init
2 root RT 0 0 0 0 S 0.0 0.0 0:00.37 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/0
------------------------------------------------------------------------
-----------------------------------
top - 16:48:45 up 19 days, 3:44, 4 users, load average: 1.60, 1.75,
1.22
Tasks: 99 total, 3 running, 96 sleeping, 0 stopped, 0 zombie
Cpu0 : 79.4% us, 2.8% sy, 0.0% ni, 17.8% id, 0.0% wa, 0.0% hi,
0.0% si
Cpu1 : 12.0% us, 15.1% sy, 0.0% ni, 72.9% id, 0.0% wa, 0.0% hi,
0.0% si
Cpu2 : 5.8% us, 22.4% sy, 0.0% ni, 71.8% id, 0.0% wa, 0.0% hi,
0.0% si
Cpu3 : 0.0% us, 7.7% sy, 0.0% ni, 92.3% id, 0.0% wa, 0.0% hi,
0.0% si
Mem: 32465300k total, 25689972k used, 6775328k free, 66276k buffers
Swap: 50331604k total, 0k used, 50331604k free, 19961288k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27690 xinchang 19 0 3836m 1.7g 6316 R 99.9 5.5 12:57.35 atachd
23472 xinchang 16 0 5243m 3.0g 17m S 29.4 9.7 125:14.35 Astro
27978 root 18 0 8328 1108 844 R 16.8 0.0 0:05.84 top
3093 gdm 16 0 114m 11m 6724 S 12.6 0.0 2236:18 gdmgreeter
23081 xinchang 16 0 8328 1112 844 R 5.9 0.0 42:12.63 top
3025 root 15 0 33572 11m 2564 S 0.3 0.0 44:24.61 X
8400 xinchang 16 0 69732 2996 2172 S 0.3 0.0 623:42.20 xterm
27720 root 16 0 26996 1468 988 S 0.3 0.0 0:23.55 in.rlogind
1 root 16 0 4744 556 460 S 0.0 0.0 0:01.61 init
2 root RT 0 0 0 0 S 0.0 0.0 0:00.37 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/0
-----Original Message-----
From: rhn-users-bounces at redhat.com [mailto:rhn-users-bounces at redhat.com]
On Behalf Of Gary Wilson Jr
Sent: Tuesday, May 17, 2005 12:03 PM
To: Red Hat Network Users List
Subject: Re: [rhn-users] CPU usage problem on the Enterprise AS4.0
I have seen many different types of top outputs. In your case, it seems
that top is reporting the total %CPU usage. So...
If a process is using 25% in a 4 processor machine, that means that the
process is using 100% of one processor. A single process cannot use
more than one processor at a time. This is also why the process on your
Sun v20z with 2 processors tops out at 50% CPU usage, meaning it is
using 100% of one processor.
LanTu at viatech.com wrote:
>
> Help!!!
> Has anybody meet problem below on the Enterprise AS4.0?
>
> I am running Enterprise AS4.0 with Kernel 2.6.9 on the Sun v40z (4
CPUs).
> When I use "top" and "sar" to check CPU usage, only can up reach to
> 25% max.
>
> Linux 2.6.9-5.ELsmp 05/16/2005
>
> 11:28:48 AM CPU %user %nice %system %iowait
%idle
> 11:28:49 AM all 24.88 0.00 20.10 0.00
55.02
> 11:28:50 AM all 25.00 0.00 28.75 0.00
46.25
> 11:28:51 AM all 25.00 0.00 16.00 0.00
59.00
> 11:28:52 AM all 25.00 0.00 19.58 0.00
55.38
> 11:28:53 AM all 25.00 0.00 17.25 0.00
57.75
> Average: all 24.99 0.00 20.34 0.00
54.67
> I also tried it on the Sun v20z (2 CPUs) and ASUS AP1600R (1 CPUs)
>
> The CPU usage on the v20z only can reach to 50% max,
> Linux 2.6.9-5.ELsmp Monday 16,May,2005
>
> 11:18:36 PDT CPU %user %nice %system %iowait
%idle
> 11:18:37 PDT all 50.00 0.00 0.00 0.00
50.00
> 11:18:38 PDT all 50.00 0.00 0.00 0.00
50.00
> 11:18:39 PDT all 50.00 0.00 0.00 0.00
50.00
> 11:18:40 PDT all 50.00 0.00 0.00 0.00
50.00
> 11:18:41 PDT all 50.00 0.00 0.00 0.00
50.00
> Average: all 50.00 0.00 0.00 0.00
50.00
> On the ASUS AP1600R can reach to 100% max.
> Linux 2.6.9-5.ELsmp (pc011.s3g-fr.com) Monday 16,May,2005
>
> 11:35:11 PDT CPU %user %nice %system %iowait
%idle
> 11:35:12 PDT all 100.00 0.00 0.00 0.00
0.00
> 11:35:13 PDT all 100.00 0.00 0.00 0.00
0.00
> 11:35:14 PDT all 100.00 0.00 0.00 0.00
0.00
> 11:35:15 PDT all 100.00 0.00 0.00 0.00
0.00
> 11:35:16 PDT all 100.00 0.00 0.00 0.00
0.00
> Average: all 100.00 0.00 0.00 0.00
0.00
>
>
>
> ----------------------------------------------------------------------
> --
>
> _______________________________________________
> rhn-users mailing list
> rhn-users at redhat.com
> https://www.redhat.com/mailman/listinfo/rhn-users
_______________________________________________
rhn-users mailing list
rhn-users at redhat.com
https://www.redhat.com/mailman/listinfo/rhn-users
More information about the rhn-users
mailing list