Sponsored Content
Operating Systems AIX Need a list of top 10 CPU using processes (also top 10 memory hogs, separately) Post 302350005 by vbe on Wednesday 2nd of September 2009 01:25:21 PM
Old 09-02-2009
Forgot... the second code was for memory...

Last edited by vbe; 09-02-2009 at 02:30 PM..
 

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. UNIX for Advanced & Expert Users

top %CPU.

I am using the Red Hat Enterprise Linux AS release 3 (Taroon), 2.4.21-4.EL. When I see the output of the command 'top'. I am getting the following ************************************************************************************ 2 processes: 227 sleeping, 5 running, 0 zombie, 0 stopped... (3 Replies)
Discussion started by: praveen_b744
3 Replies

3. UNIX for Dummies Questions & Answers

how to get persistant cpu utilization values per process per cpu in linux (! top,ps)

hi, i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies

4. 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

5. Shell Programming and Scripting

Command to find the Memory and CPU utilization using 'top' command

Hi all, I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command. Thanks in advance. Thanks, Ananthi.U (2 Replies)
Discussion started by: ananthi_ku
2 Replies

6. Shell Programming and Scripting

Warning in Top 10 cpu consuming processes

I m using following command to find top 10 cpu consuming processes. However whenever i execute the command i get following warning. What can be done to avoid it? # ps -auxf | sort -nr -k 3 | head -10 Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ root ... (6 Replies)
Discussion started by: pinga123
6 Replies

7. UNIX for Dummies Questions & Answers

HOWTO - Total memory and CPU usage ... without top?

Hi all, Is it possible to get total memory usage and free memory usage without top? By Googling I found for total memory usage, use vmstat, for CPU, use mpstat, for disk I/O use iostat, is this correct? Will using sar gives the same result as ALL of these three (3) commands? What about if I... (2 Replies)
Discussion started by: newbie_01
2 Replies

8. 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

9. Shell Programming and Scripting

Discrepancy in finding the top memory consuming processes

When I run 'top' command,I see the following Memory: 32G real, 12G free, 96G swap free Though it shows as 12G free,I am not able to account for processes that consume the rest 20G. In my understanding some process should be consuming atleast 15-16 G but I am not able to find them. Is... (1 Reply)
Discussion started by: prasperl
1 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
top(1)							      General Commands Manual							    top(1)

NAME
top - display and update information about the top processes on the system SYNOPSIS
time] count] number] filename] pset_id] DESCRIPTION
displays the top processes on the system and periodically updates the information. Raw CPU percentage is used to rank the processes. Options recognizes the following command-line options: Set the delay between screen updates to time seconds. The default delay between updates is 5 seconds. Show only count displays, then exit. A display is considered to be one update of the screen. This option is used to select the number of displays to be shown before the program exits. This option runs the program at the same priority as if it is executed via a command so that it will execute faster (see nice(1)). This can be very useful in discovering any system problem when the system is very sluggish. This option is accessible only to users who have appropriate privileges. User ID (uid) numbers are displayed instead of usernames. This improves execution speed by eliminating the additional time required to map uid numbers to user names. Hides the individual CPU state information for systems having multiple processors. Only the average CPU status will be displayed. Show only number processes per screen. Note that, if number is greater than the maximum number of processes that can be displayed per screen, this option is ignored. But when used with option, there is no limit on the maximum number of processes that can be displayed. Output is appended to filename. When is used, defaults to 1 for and 16 for Show load averages and process state break down for system and processor set pset_id. Show only the processes running on the processor set pset_id. This option is supported only if the kernel supports processor sets functionality. Adds column PSET before column CPU for individual CPU information. Adds columns PSET before column CPU for each process informa- tion. This option is supported only if the kernel supports processor sets functionality. Show individual CPU information. By default, does not display any individual CPU information. The user can toggle between individual process information and individual CPU information by using the screen-control key. When used with the option, the option overrides the option. Screen-Control Commands When displaying multiple-screen data, recognizes the following keyboard screen-control commands: Display next screen if the current screen is not the last screen. Display previous screen if the current screen is not the first screen. Display the first (top) screen. Display individual CPU information in place of individual process information and vice versa. Program Termination To exit the program and resume normal user activities, type at any time. Display Description Three general classes of information are displayed by The first few lines at the top of the display show general information about the state of the system, including: o System name and current time. o Load averages in the last one, five, and fifteen minutes of all the active processors in the system. o Number of existing processes and the number of processes in each state (sleeping, waiting, running, starting, zombie, and stopped). o Percentage of time spent in each of the processor states (user, nice, system, idle, interrupt and swapper) per active processor on the system. o Average value for each of the active processor states (only on multi-processor systems). Reports virtual and real memory used by user processes (with the amount of memory considered "active" in parentheses) and the amount of free memory. Information about individual processes on the system. When process data cannot fit on a single screen, divides the data into two or more screens. To view multiple-screen data, use the and commands described previously. Note that the system- and memory-data displays are present in each screen of multiple- screen process data. Process data is displayed in a format similar to that used by Processor number on which the process is executing (only on multi-processor systems). Terminal interface used by the process. Process ID number. ID of the processor set to which the processor belongs. This is shown only when option is used. Name of the owner of the process. When the option is specified, the user ID (uid) is displayed instead of Current priority of the process. Nice value ranging from -20 to +20. Total virtual size of the process in kilobytes. This includes virtual sizes of text, data, stack, mmap regions, shared memory regions and IO mapped regions. This may also include virtual memory regions shared with other processes. Resident size of the process in kilobytes. It includes the sizes of all private regions in the process. The resident size information is, at best, an approximate value. Current state of the process. The various states are or Number of system and CPU seconds the process has consumed. Weighted CPU (central processing unit) percentage. Raw CPU percentage. This field is used to sort the top processes. Name of the command the process is currently running. EXAMPLES
can be executed with or without command-line options. To display five screens of data at two-second intervals then automatically exit, use: To display information about pset 2, use: To display individual CPU information in place of individual process information, use: and press the key. AUTHOR
was developed by HP and William LeFebvre of Rice University. top(1)
All times are GMT -4. The time now is 01:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy