Sponsored Content
Top Forums UNIX for Dummies Questions & Answers GNU Linux sleeping processes in top command Post 302900075 by sidharthmellam on Saturday 3rd of May 2014 09:14:14 PM
Old 05-03-2014
GNU Linux sleeping processes in top command

hi all

sleeping processes in the following output , are they doing anything , but consuming lot of sources, should I need to kill them , how to know , , what they are doing

and the output says out of 260 processes only 9 are running , and 251 are sleeping , what does the sleeping means, can we terminate them,

please suggest me,

Code:
top - 02:44:13 up 36 days, 16:37,  1 user,  load average: 8.57, 8.41, 8.08
Tasks: 260 total,   9 running, 251 sleeping,   0 stopped,   0 zombie
Cpu(s): 98.6%us,  1.3%sy,  0.0%ni,  0.1%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:     31983M total,    31533M used,      450M free,     1673M buffers
Swap:    32671M total,      111M used,    32560M free,    26532M cached

  PID USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+  COMMAND
29220 oraSLV    20   0 8990m 4.4g 4.4g R     53 14.2 793:38.88 oracle
13666 oraSLV    20   0 8984m 1.1g 1.1g R     45  3.6  16:44.64 oracle
29228 oraSLV    20   0 8988m 4.4g 4.4g R     44 14.1 756:33.95 oracle
29250 oraSLV    20   0 8997m 4.4g 4.4g R     44 14.1 718:29.60 oracle
30245 oraSLV    20   0 8998m 4.4g 4.4g R     43 14.2 789:12.81 oracle
29222 oraSLV    20   0 8987m 4.4g 4.4g R     42 14.2 740:11.18 oracle
29234 oraSLV    20   0 8990m 4.4g 4.4g R     42 14.2 708:55.32 oracle
29248 oraSLV    20   0 8983m 4.4g 4.4g R     39 14.2 799:41.92 oracle
20113 oraSLV    20   0 8982m 1.3g 1.3g S      6  4.1  32:00.02 oracle
29188 SLVadm    20   0 6587m 1.4g 1.3g S      3  4.3  21:29.63 SLV_00_DIA_W9
28351 root      20   0  108m  11m 4140 S      2  0.0   0:00.05 python
30243 SLVadm    20   0 6593m 1.4g 1.3g S      2  4.4  20:44.20 SLV_00_DIA_W8
29181 SLVadm    20   0 6574m 1.4g 1.3g S      1  4.4  20:40.80 SLV_00_DIA_W2
28346 root      20   0  105m  10m 8140 S      1  0.0   0:00.03 zypper
25646 oraSLV    -2   0 8974m  16m  14m S      1  0.1  19:56.46 oracle
25700 root      20   0 14780 5068 1228 S      1  0.0   0:00.47 bash
29180 SLVadm    20   0 6582m 1.4g 1.3g S      1  4.5  22:05.64 SLV_00_DIA_W1
 2039 root      20   0 73788 3848 3292 S      0  0.0  33:56.40 vmtoolsd
 3657 root      20   0  9120  552  432 S      0  0.0   4:55.67 irqbalance
29179 SLVadm    20   0 6578m 1.4g 1.3g S      0  4.5  22:56.82 SLV_00_DIA_W0
29182 SLVadm    20   0 6583m 1.4g 1.3g S      0  4.5  21:12.59 SLV_00_DIA_W3
29184 SLVadm    20   0 6575m 1.3g 1.3g S      0  4.3  21:20.59 SLV_00_DIA_W5
29230 oraSLV    20   0 8997m 4.4g 4.4g S      0 14.0 667:10.44 oracle
    1 root      20   0 10540  736  704 S      0  0.0   0:33.88 init
    2 root      20   0     0    0    0 S      0  0.0   0:00.66 kthreadd
    3 root      20   0     0    0    0 S      0  0.0   0:54.38 ksoftirqd/0
    6 root      RT   0     0    0    0 S      0  0.0   0:06.93 migration/0
    7 root      RT   0     0    0    0 S      0  0.0   0:14.85 watchdog/0
    8 root      RT   0     0    0    0 S      0  0.0   0:10.00 migration/1
   10 root      20   0     0    0    0 S      0  0.0   0:22.66 ksoftirqd/1
   12 root      RT   0     0    0    0 S      0  0.0   0:15.34 watchdog/1
   13 root      RT   0     0    0    0 S      0  0.0   0:07.64 migration/2

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How Can I Have Top Display The Top 20 Processes??

how can i do that in a script withough havin the script halt at the section where the top command is located. am writign a script that will send me the out put of unx commands if the load average of a machine goes beyond the recommended number. top -n 20 i want to save this output to a file... (1 Reply)
Discussion started by: TRUEST
1 Replies

2. Shell Programming and Scripting

perl: sleeping during a command

hello everyone, i am attempting to run the sleep function (i've also tried select) during the execution of a command to mimic a status. for example: # this is a terminal screen # here the process is executed # below this a status is displayed while the command executes like so:... (3 Replies)
Discussion started by: effigy
3 Replies

3. Shell Programming and Scripting

How to wakeup sleeping processes

Hi, Could someone please tell me how to wakeup sleeping processes? (i.e. change the process status from "S" to "R" when viewing in ps command). I ran a few programs in the background by "&" which went into "sleep" mode and I want them to run. Any help will be greatly appreciated. Steve (11 Replies)
Discussion started by: stevefox
11 Replies

4. AIX

Need a list of top 10 CPU using processes (also top 10 memory hogs, separately)

Okay, I am trying to come up with a multi-platform script to report top ten CPU and memory hog processes, which will be run by our enterprise monitoring application as an auto-action item when the CPU and Memory utilization gets reported as higher than a certain threshold I use top on other... (5 Replies)
Discussion started by: thenomad
5 Replies

5. UNIX for Dummies Questions & Answers

How To Scroll Processes In top?

I'm using top to view processes. But, I do not know how to scroll down the list to view what is not showed in the terminal window. Anyone know how to do this? (1 Reply)
Discussion started by: keenansnews
1 Replies

6. Shell Programming and Scripting

Print 10 most CPU-intensive processes (wo/ top)

ps -eo pid,comm,%cpu lists all processes (in increasing PID number). How to get only the top-10 most CPU intensive ones? I know about top: this is BASH exercise. I tried redirecting above code to cut ps -eo pid,comm,%cpu | cut -f2but ps' output isn't TAB delimited. How can I otherwise use... (5 Replies)
Discussion started by: courteous
5 Replies

7. Shell Programming and Scripting

Unix shell script to query linux top consuming processes

Hi All, O/S: Linux 86x64 Red Hat I have a sql script that queries top consuming processes of Linux using TOP commnd. Now I need to automate this task and pass the top processes i.e., PID to the sql script through unix shell script. Could anyone please let me know how to achieve this. ... (2 Replies)
Discussion started by: a1_win
2 Replies

8. UNIX for Dummies Questions & Answers

Sleep command not sleeping for specified time.

Hi, I have ascript with a recursive funtion below. I have mentioned to sleep for 60minutes but it doesnt doing so. Its keep on running until if /elif conditions satiesfies. Can you pls help what is wrong here. funcstatus () { if then echo "`date` - Current status... (2 Replies)
Discussion started by: gaddamja
2 Replies

9. UNIX for Advanced & Expert Users

Analyzing Linux's top command's result

RHEL 5.4 What are the first things you would look for when analyzing Linux's top command output? Below is a top output from one of our Linux machines; Do you see anything wrong? top - 15:56:01 up 133 days, 5:55, 5 users, load average: 2.94, 2.93, 6.58 Tasks: 178 total, 2 running,... (2 Replies)
Discussion started by: John K
2 Replies

10. Shell Programming and Scripting

Need a script to see top processes for every hour

Hi All, I am new to Scripting , please give me guidance to write the script to see top processes on the Linux operating system. I executed this script on my Virtual Server(Linux) DATE=`date +%Y%m%d%H%M%S` HOME=/home/xmp/testing/xmp_report RADIUS_PID=`xms -xmp sh pr | grep... (2 Replies)
Discussion started by: madala
2 Replies
KILL(2) 							System Calls Manual							   KILL(2)

NAME
kill - send signal to a process SYNOPSIS
kill(pid, sig); DESCRIPTION
Kill sends the signal sig to the process specified by the process number in r0. See signal(2) for a list of signals. The sending and receiving processes must have the same effective user ID, otherwise this call is restricted to the super-user. If the process number is 0, the signal is sent to all other processes in the sender's process group; see tty(4). If the process number is -1, and the user is the super-user, the signal is broadcast universally except to processes 0 and 1, the scheduler and initialization processes, see init(8). Processes may send signals to themselves. SEE ALSO
signal(2), kill(1) DIAGNOSTICS
Zero is returned if the process is killed; -1 is returned if the process does not have the same effective user ID and the user is not super-user, or if the process does not exist. ASSEMBLER
(kill = 37.) (process number in r0) sys kill; sig KILL(2)
All times are GMT -4. The time now is 06:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy