LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-11-2007, 01:27 AM   #1
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Rep: Reputation: 30
CPU Consumption


Hai all,,


command bash consumes 100% of CPU....

is this normal ? ..

**********************************************************************
[oraprod@alioracle bdump]$ top
top - 10:16:57 up 7 days, 1:29, 4 users, load average: 1.01, 1.10, 1.09
Tasks: 453 total, 2 running, 451 sleeping, 0 stopped, 0 zombie
Cpu(s): 13.1% us, 0.4% sy, 0.0% ni, 85.5% id, 0.9% wa, 0.0% hi, 0.0% si
Mem: 4148304k total, 4127872k used, 20432k free, 12788k buffers
Swap: 8217236k total, 161224k used, 8056012k free, 2832452k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
24420 root 25 0 13732 9568 1212 R 100 0.2 3995:21 bash
1383 oraprod 16 0 2260 1184 756 R 1 0.0 0:00.34 top
18284 applprod 16 0 11428 8128 2644 S 1 0.2 1:33.43 FNDLIBR
16801 applprod 16 0 779m 205m 13m S 0 5.1 6:23.68 java
16803 applprod 16 0 749m 57m 8448 S 0 1.4 1:43.99 java
18331 oraprod 16 0 614m 275m 274m S 0 6.8 15:47.31 oracle
18587 oraprod 16 0 614m 182m 179m S 0 4.5 0:14.18 oracle
1 root 16 0 1876 592 504 S 0 0.0 0:06.31 init
2 root RT 0 0 0 0 S 0 0.0 0:00.48 migration/0
3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0
4 root RT 0 0 0 0 S 0 0.0 0:00.19 migration/1
*********************************************************************
output of sar :



Linux 2.6.9-42.ELsmp (alioracle.ali.com.kw) 11/11/2007

10:16:07 AM CPU %user %nice %system %iowait %idle
10:16:08 AM all 12.59 0.00 0.12 0.00 87.28
10:16:09 AM all 12.62 0.00 0.00 0.00 87.38
10:16:10 AM all 13.09 0.00 0.25 0.50 86.16
10:16:11 AM all 12.75 0.00 0.12 0.00 87.12
10:16:12 AM all 12.62 0.00 0.00 0.00 87.38
Average: all 12.74 0.00 0.10 0.10 87.06
***************************************************************



Is this normal ?


Thanks
Yusuf







*********************************************************************
 
Old 11-11-2007, 04:08 AM   #2
keratos
Member
 
Registered: May 2007
Location: London, UK.
Distribution: Major:FC8. Others:Debian;Zenwalk; Arch; Slack; RHEL.
Posts: 544

Rep: Reputation: 30
I wouldnt say its normal.
 
Old 11-11-2007, 04:20 AM   #3
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by keratos View Post
I wouldnt say its normal.


Can anyone how to debug and solve the above issue ?


Thanks
Yusuf
 
Old 11-11-2007, 04:35 AM   #4
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Start stopping some services. Use a LIVE Linux distribution like Knoppix and do a rootkit scan. If bash has been compromise, revert to an old full backup. Before putting the system on the network, run a file monitor, so you know what is happening to your files.
 
Old 11-11-2007, 01:23 PM   #5
keratos
Member
 
Registered: May 2007
Location: London, UK.
Distribution: Major:FC8. Others:Debian;Zenwalk; Arch; Slack; RHEL.
Posts: 544

Rep: Reputation: 30
Quote:
Originally Posted by yusufs View Post
Can anyone how to debug and solve the above issue ?


Thanks
Yusuf
Difficult to say without having access to the machine.

Electro's proposals are good to being with, and in combination you should consider scanning IP traffic that might be emitted via bash, and maybe run a virus/malware scanner. There are hardly any successful viruses out there for linux, but its not completely "safe".

As I said, difficult to say without being there to visualise what is happening.
 
Old 11-12-2007, 12:17 AM   #6
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by keratos View Post
Difficult to say without having access to the machine.

Electro's proposals are good to being with, and in combination you should consider scanning IP traffic that might be emitted via bash, and maybe run a virus/malware scanner. There are hardly any successful viruses out there for linux, but its not completely "safe".

As I said, difficult to say without being there to visualise what is happening.
Thanks Kerato and Electro.. all the ideas that you've given will be very simple to you.. as am a newbie, I have to learn all this.
Anyway, thanks... let me try my best in this issue.

Yusuf
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Measure "CPU load" and "memory consumption" of a process DaneelGiskard Programming 3 08-30-2007 11:43 AM
Power consumption? meniscus Linux - Hardware 4 12-08-2006 04:58 AM
Memory Consumption of 10.2 naparhi Slackware 4 08-27-2006 03:10 AM
limit CPU consumption eantoranz Linux - Security 3 07-19-2005 08:32 PM
Weird bandwidth consumption mrsolo Linux - Networking 6 10-06-2003 03:01 AM


All times are GMT -5. The time now is 04:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration