Red Hat Linux question on top and vmstat outputs


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Red Hat Linux question on top and vmstat outputs
# 1  
Old 06-24-2013
Red Hat Linux question on top and vmstat outputs

RHEL 5.4

Our Linux machine seemed to be running slow. So, I ran the top and vmstat commands.

Question1.
I can see the process 11517 consuming 100% CPU . But that just means that this process totally utilizes one of the cores in a mult-core CPU. Right ? This machine apparently has two quad-core Intel processors


Question2. Can you spot any other issues from the below output ?

Question3. Is there an option in top command by which we can determine the number of CPUs in a machine ?

Code:
top - 16:10:53 up 75 days, 22:12,  4 users,  load average: 1.04, 1.14, 1.10
Tasks: 242 total,   2 running, 240 sleeping,   0 stopped,   0 zombie
Cpu(s): 12.5%us,  0.1%sy,  0.0%ni, 86.3%id,  1.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:  32959980k total, 32741588k used,   218392k free,   300180k buffers
Swap:  6094840k total,      136k used,  6094704k free, 31481772k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
11517 oracle    25   0 6510m 776m 690m R 100.0  2.4  86:37.57 oracle
11279 oracle    16   0 6431m  67m  65m S  0.3  0.2   0:18.11 oracle
11656 oracle    15   0 6420m  99m  95m S  0.3  0.3   0:39.96 oracle
    1 root      15   0 10348  700  584 S  0.0  0.0   0:08.62 init
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:02.16 migration/0
    3 root      34  19     0    0    0 S  0.0  0.0   0:00.09 ksoftirqd/0
    4 root      RT  -5     0    0    0 S  0.0  0.0   0:01.70 migration/1
    5 root      34  19     0    0    0 S  0.0  0.0   0:00.41 ksoftirqd/1
    6 root      RT  -5     0    0    0 S  0.0  0.0   0:01.79 migration/2
    7 root      34  19     0    0    0 S  0.0  0.0   0:00.24 ksoftirqd/2
    8 root      RT  -5     0    0    0 S  0.0  0.0   0:01.87 migration/3
    9 root      34  19     0    0    0 S  0.0  0.0   0:00.37 ksoftirqd/3
   10 root      RT  -5     0    0    0 S  0.0  0.0   0:01.73 migration/4
   11 root      34  19     0    0    0 S  0.0  0.0   0:00.14 ksoftirqd/4
   12 root      RT  -5     0    0    0 S  0.0  0.0   0:01.43 migration/5
   13 root      34  19     0    0    0 S  0.0  0.0   0:00.56 ksoftirqd/5
   14 root      RT  -5     0    0    0 S  0.0  0.0   0:01.43 migration/6
   15 root      34  19     0    0    0 S  0.0  0.0   0:00.24 ksoftirqd/6
   16 root      RT  -5     0    0    0 S  0.0  0.0   0:01.43 migration/7
   17 root      34  19     0    0    0 S  0.0  0.0   0:00.12 ksoftirqd/7
   18 root      10  -5     0    0    0 S  0.0  0.0   0:00.62 events/0
   19 root      10  -5     0    0    0 S  0.0  0.0   0:01.54 events/1
   20 root      10  -5     0    0    0 S  0.0  0.0   0:00.17 events/2
   21 root      10  -5     0    0    0 S  0.0  0.0   0:00.23 events/3
   22 root      10  -5     0    0    0 S  0.0  0.0   0:00.64 events/4
   23 root      10  -5     0    0    0 S  0.0  0.0   0:00.21 events/5
   24 root      10  -5     0    0    0 S  0.0  0.0   0:03.29 events/6
   25 root      10  -5     0    0    0 S  0.0  0.0   0:00.15 events/7

--- VMSTAT

Code:
$ vmstat 2 10
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 1  0    136 216496 301368 31483372    0    0    18   233    0    1  3  1 95  1  0
 1  0    136 216496 301368 31483372    0    0     0   186  156  239 12  0 87  1  0
 1  0    136 216496 301392 31483372    0    0     0   204  156  244 12  0 87  0  0
 1  0    136 216496 301392 31483372    0    0     0   180  166  249 13  0 87  1  0
 1  0    136 216496 301396 31483372    0    0     0   232  164  254 13  0 87  1  0
 1  0    136 216496 301396 31483372    0    0     0   236  165  236 12  0 86  1  0
 1  0    136 216496 301396 31483372    0    0     0   180  155  234 13  0 87  1  0
 1  0    136 216372 301416 31483372    0    0     0   252  165  257 13  0 86  1  0
 1  0    136 216372 301420 31483368    0    0     0   164  176  259 13  0 86  2  0
 1  0    136 216372 301424 31483372    0    0     0   298  156  249 12  0 87  0  0

# 2  
Old 06-24-2013
There could be a few things, I suppose. A database lock or I/O contention would be my next path to follow, however it also depends what you are running on. Is this a partition of a real machine (VMware or other partitioning software) and are the servers balanced properly, i.e. could another logical partition be consuming more than its fair share?


I hope that this gives you a pointer to work from.


Robin
Liverpool/Blackburn
UK
# 3  
Old 06-24-2013
Just for Question 3 - You can get the information from

Code:
cat /proc/cpuinfo

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Fedora

Which is the better platform to learn UNIX/Linux (Kali Linux Vs. Red Hat or other)?

I just started a new semester and I started my UNIX class yesterday. I've already decided to use python along with my learning process but what I really want to use with it is Kali as my UNIX/Linux platform to learn off of since I already wanted to learn Cyber Sec. anyways. I just wanted to know if... (12 Replies)
Discussion started by: ApacheOmega
12 Replies

2. UNIX for Dummies Questions & Answers

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ?

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ? (2 Replies)
Discussion started by: ahmedamer12
2 Replies

3. Red Hat

Red Hat Linux release 9 (Shrike) question

Hi guys, wondering if you could help me out here... this is a proxy system problem I'm trying to access a web gui service off a linux box running Red Hat Linux release 9 (Shrike) used as a proxy server which does not seem to have a web browser installed..... how can i do this? so to... (2 Replies)
Discussion started by: slashbash
2 Replies

4. Shell Programming and Scripting

Linux Red Hat - FTP question

Hi Everyone, Based on what I have read so far and what others have posted on this forum, I have come up with the following script to download and upload files from and to a FTP sever: HOST=xyz.com USER=someuser PASSWD=somepwd tmpfile=/tmp/files.$$ indir=/tmp/inbound... (2 Replies)
Discussion started by: maxshop
2 Replies

5. News, Links, Events and Announcements

Red Hat Linux gets top government security rating

By Robert McMillan, IDG News Service, 06/15/07 Red Hat Linux gets top government security rating (0 Replies)
Discussion started by: Neo
0 Replies

6. Linux

Red Hat Linux 9

Hello there! Will anybody please tell me some good links to online eBooks on Red Hat Linux 9 user experiences and the like. If the books are in PDF Format, it will be nice to read. Thanks for cooperation in advance. Enjoy using open source and breathe freely! JAM (5 Replies)
Discussion started by: Jawwad
5 Replies

7. Linux

Red-hat AS 2.1 network question

I have setup a AS 2.1 server with no X running or installed. I need to know how to configure the IP and such from command line and change it from DHCP. We used DHCP at first since we didn't know the IP we were going to use and now I need to change it. Any help would be great as Redhat's site just... (2 Replies)
Discussion started by: Acleoma
2 Replies

8. UNIX for Dummies Questions & Answers

XP to Linux (Red Hat)

I have a PC running XP, and I have a PC that dual boots W2K and Red Hat Linux 7.3. I have the two connected via crossover cable, and the two can access each other when both are running windows. If I were to boot up Linux, can my XP PC telnet to the Linux PC? Any pointers or websites to... (3 Replies)
Discussion started by: lawadm1
3 Replies

9. UNIX for Dummies Questions & Answers

Slackware's Linux 3.0 VS Red Hat Linux 7.x

Hello guys, I got overzealous (I Think). I got the book Linux Unleashed that comes with the Slackware 3.0 Version of Linux for $2.00.I also have Red Hat Linux 7.2 (No book, just the OS).What I wanted to know was,other than the bells and whistles of Red Hat is there any significant difference... (2 Replies)
Discussion started by: perrylx
2 Replies

10. UNIX for Dummies Questions & Answers

Red Hat Linux 6.0

Ok here is my problem i do not know the command to load a driver for my network card in Ted hat linux 6.0 could sombody give me a hand. and if there is anyone that has a list of commands for red hat that would be great also (2 Replies)
Discussion started by: bbutler3295
2 Replies
Login or Register to Ask a Question

Featured Tech Videos