Operating System - HP-UX
1834967 Members
2011 Online
110072 Solutions
New Discussion

Re: High CPU Usage.. Top output below.. Please help.

 
DMAN
Occasional Advisor

High CPU Usage.. Top output below.. Please help.

Mon Jun 21 14:01:20 2004
Load averages: 0.83, 0.85, 0.81
276 processes: 258 sleeping, 18 running
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 1.00 82.2% 0.0% 7.9% 9.9% 0.0% 0.0% 0.0% 0.0%
1 0.99 89.2% 0.0% 10.8% 0.0% 0.0% 0.0% 0.0% 0.0%
2 0.61 23.5% 0.0% 2.9% 73.5% 0.0% 0.0% 0.0% 0.0%
3 0.73 23.5% 0.0% 2.0% 74.5% 0.0% 0.0% 0.0% 0.0%
--- ---- ----- ----- ----- ----- ----- ----- ----- -----
avg 0.83 53.9% 0.0% 5.9% 40.2% 0.0% 0.0% 0.0% 0.0%

Memory: 2671108K (1447320K) real, 3655356K (1931196K) virtual, 41060K free Page#
1/12

CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
3 ? 1542 root 152 20 2484K 1928K run 2214:54 100.26 100.09 samd
2 ? 1283 root 152 20 2156K 1040K run 2214:28 100.22 100.04 swci
12 REPLIES 12
Sridhar Bhaskarla
Honored Contributor

Re: High CPU Usage.. Top output below.. Please help.

Hi,

If this is a 11i system, then make sure DCE products for 11.0 are installed on it.

swlist -l product |grep -i dce

Shouldn't list anything that says 11.00 in the version.

If so, you will need to install 11i version of them from your OS CDs. After re-installing it is a good idea to reboot the system as there are few processes that would need to be restarted.

If the DCE versions are good, then look for patches in itrc.hp.com.

In either the case, ensure you have a good make_tape_recovery tape or ignite image.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Navin Bhat_2
Trusted Contributor

Re: High CPU Usage.. Top output below.. Please help.

Hi,
Please post the sar -u and sar -d outputs. The high cpu consumption may also as a result of memory pressure on the system. Use measureware or glance for further analysis.
Victor Fridyev
Honored Contributor

Re: High CPU Usage.. Top output below.. Please help.

Hi,

It seems to me, you switched off a terminal where some X applications were running. The applications work now in a wrong mode.
Kill them and this will decrease the CPU load.
HTH
Entities are not to be multiplied beyond necessity - RTFM
DMAN
Occasional Advisor

Re: High CPU Usage.. Top output below.. Please help.

I installed OVO two weeks ago no problems.. we rebooted over the weekend..now this..
It's okay to kill swci and samd ?
Sridhar Bhaskarla
Honored Contributor

Re: High CPU Usage.. Top output below.. Please help.

Did you install DCE KT Tools along with OVO agent?. If so, I believe you might have installed 11.0 version of KT tools. Your swlist will confirm it.

samd is used to configure services such as Distributed Print Service on the remote systems. 'swci' is part of DMI - Desktop Management interface that I have not seen many people using it. If you are ok with not having them, you can disable them. samd is run through inittab. So, you will need to comment it out and run 'init q' to get rid of it. swci can be terminated using /sbin/init.d/Dmisp stop command. Edit /etc/rc.config.d/Dmiconfig to permanently disable it.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
DMAN
Occasional Advisor

Re: High CPU Usage.. Top output below.. Please help.

Yes DCE is installed for 11.00..

DMAN
Occasional Advisor

Re: High CPU Usage.. Top output below.. Please help.

# swlist -l product |grep -i dce
DCE-Core B.11.11 HP DCE/9000 Core Client Software
DCE-CoreTools B.11.00.10 DCE-CoreTools
DCE-KT-Tools B.11.00.10 DCE-KT-Tools
IntegratedLogin B.11.11 Integrated Login for HP-UX and DCE
KRB-Support B.11.11 Kerberos Support for HP-UX and DCE
Sridhar Bhaskarla
Honored Contributor

Re: High CPU Usage.. Top output below.. Please help.

DCE-CoreTools B.11.00.10 DCE-CoreTools
DCE-KT-Tools B.11.00.10 DCE-KT-Tools

There the problem is. You would need to re-install DCE-CoreTools from Application CDs (Look at CD_TABLE_OF_CONTENTS after mounting any of the CD. You will also find DCE-KT-Tools there as I don't remember if there is any such for 11i. But I believe you don't need KT-Tools for OVO agent for atleast 6.1 version.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
DMAN
Occasional Advisor

Re: High CPU Usage.. Top output below.. Please help.

That needs a reboot ?
Sridhar Bhaskarla
Honored Contributor

Re: High CPU Usage.. Top output below.. Please help.

It doesn't. However, I suggest you to install the latest DCE patch also after reinstalling DCE-Coretools. It is a good idea to reboot. Last time, you didn't see the problem until you rebooted the system is due to the same reason. 'swci' and 'samd' were using the old DCE libraries until you rebooted the system. After reboot, they started using the new (actually old 11.0) libraries and hence you started seeing the issue.

Meanwhile, disable these two processes. When you get a chance, do the work the reboot the system. But make sure you have good make_tape_recovery tape in case if you run into issues.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
DMAN
Occasional Advisor

Re: High CPU Usage.. Top output below.. Please help.

Installed 11.11 CoreTools.. same top output should I restart anything.. this is in production so rebooting the server is a last resort.

Memory: 2542836K (1444448K) real, 3803056K (2013548K) virtual, 42236K free Page# 1/54

CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
3 ? 3007 oracle 241 20 43588K 47116K run 2:53 93.65 93.48 PSAPPSRV
2 ? 1283 root 152 20 2156K 700K run 3344:04 90.83 90.68 swci
1 pts/tc 15575 root 241 20 560K 188K run 1041:00 87.05 86.89 sh
3 ? 1542 root 152 20 2484K 1556K run 3345:46 76.56 76.43 samd
# swlist -l product|grep -i dce
DCE-Core B.11.11 HP DCE/9000 Core Client Software
DCE-CoreTools B.11.11.10 DCE-CoreTools
IntegratedLogin B.11.11 Integrated Login for HP-UX and DCE
KRB-Support B.11.11 Kerberos Support for HP-UX and DCE
Sridhar Bhaskarla
Honored Contributor

Re: High CPU Usage.. Top output below.. Please help.

Hi,

When you get a chance to reboot the system, install the latest (but recommended) DCE patches and then reboot. For the time being, close down the processes.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try