Question on top command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Question on top command
# 1  
Old 08-05-2005
Question on top command

Hello All

1) The top command gives the CPU usage , together with other details but it does not list out the memory usage for each process ...I know it gives us the aggregate memory used , but I'd like to know the memory used by each process .Is there a way to get this ?


load averages: 2.52, 2.76, 2.42 12:04:08
272 processes: 268 sleeping, 4 on cpu
CPU states: 52.3% idle, 32.1% user, 15.6% kernel, 0.0% iowait, 0.0% swap
Memory: 16G real, 6333M free, 8371M swap in use, 20G swap free

PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
21940 oracle 17 10 0 0K 0K cpu/2 55.9H 24.15% oracle
23282 oracle 1 31 0 0K 0K cpu/3 2:17 7.77% oracle
10847 oracle 12 59 0 0K 0K sleep 38:44 1.89% oracle


2) When I execute a top command , the value of STATE for some of the processes are listed as cpu/2 or cpu/3 . Does it mean that that process uses the 2'nd CPU or 3rd CPU , respectively ?

3) The STATE value for some of the processes are "sleep" . I know that these processes are ACTIVE and doing smoething but I'm not sure why they have a STATE value of "sleep" .


Thanks for your time ...
# 2  
Old 08-05-2005
Question on top command

BTW , I'm using SunOS 5.9

Thanks...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Top command

Hi All, i am using the below command and once get the output and i need to keep the first batch only.in this case how to do this one. please help me on thistop -b -n 5 >top.txt Thanks, (3 Replies)
Discussion started by: bmk
3 Replies

2. UNIX for Dummies Questions & Answers

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... (2 Replies)
Discussion started by: kraljic
2 Replies

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

4. AIX

Top command in AIX 4.2 (no topas, no nmon, no top)?

Is there a 'top' command equivalent in AIX 4.2 ? I already checked and I do not see the following ones anywhere: top nmon topas (1 Reply)
Discussion started by: Browser_ice
1 Replies

5. Solaris

top command

Hi, How to install software package top in solaris, (4 Replies)
Discussion started by: manoj.solaris
4 Replies

6. UNIX for Dummies Questions & Answers

N00b question on CPU % in top

I have a process in my TOP output that is consistantly at 97% usage. I have 16 CPUs on my box. So is the 97% the cumalative usage of all the CPUs or just one? (3 Replies)
Discussion started by: kskywr
3 Replies

7. UNIX for Dummies Questions & Answers

The value in TOP command

https://www.unix.com/showpost.php?p=98416&postcount=8 Referring to the post above... what is the unit that is measured in the TOP command under LOAD? (1 Reply)
Discussion started by: nickk
1 Replies

8. SCO

HP-UX top command

Is there a command in SCO Unix that does the same as the top command in HPUX. The command displays the jobs using the most system resources. Thanks You (0 Replies)
Discussion started by: joestrosser
0 Replies

9. Solaris

top command

Hi I want to know how can I enable the command top in Solaris plataform. Thanks (1 Reply)
Discussion started by: llopez_hernande
1 Replies

10. UNIX for Dummies Questions & Answers

top command

hi guys, i am having a dual cpu xeon machine. i came to know that i can view the performance by giving top command. but top command shows only the usage of one cpu in percentage while the process are using more than 100% usage in the list . can i know separately the usage of cpus. can you... (5 Replies)
Discussion started by: bijuhpd
5 Replies
Login or Register to Ask a Question