How to use ps to display processor number


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to use ps to display processor number
# 1  
Old 04-03-2007
How to use ps to display processor number

I'm on a Unix 5.2 server and I want to be able to see my processes to verify they are active and which processor they are running on.

ps -l will show me the status of process (active/stopped/idle)

but to see which processor the process is assigned to I don't know how.

Manpages show -o and seems to infer that this would show me the processor, but I do not know how to correctly invoke it.

When I enter ps -elof I get an invalid message and it shows the correct usage of -o as "[-o specifier[=header],...]"

I have no idea what it wants. Any ideas?
# 2  
Old 04-04-2007
This would hep you,

ps -ef -o user,pid,pcpu,s,stime,pmem,comm,psr,pset

Please read the man page of ps to know in detail about the arguments.

Thanks
Nagarajan Ganesan,
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to check number of threads running per processor in Linux machine?

I have a machine which has 32 processor but i am really not sure how many threads are running. It has hyperthreading enabled. Is there a way i can find that all 32 processors are being used and how many threads are there in my linux box. Its a 64 bit processor. I am having very high load average... (3 Replies)
Discussion started by: Moon1234
3 Replies

2. UNIX Desktop Questions & Answers

How to display only the lines from a file which do not contain a given number

a. How do I display the content of the file containing what Ive merged using a filter which would display only the lines of the file which don't contain number, for example 3 or 6. (3 Replies)
Discussion started by: herberwz
3 Replies

3. Programming

From Processor To Display

What is the programming side of the keyboard's PrintScreen? When I hit this button, what is the computer doing to give me the image that my monitor is displaying? In the same arena, how does the computer tell the monitor what to display visually? I move the mouse and the cursor appears to be... (2 Replies)
Discussion started by: ciNG
2 Replies

4. Shell Programming and Scripting

display unique number

Hi, how i can display all the unique number from my random number script below; #!/usr/bin/perl use strict; my @alphanum = ( 'A' .. 'Z', 'a' .. 'z', 0 .. 9); my $random = join('', map($alphanum,(1..5))); print "$random\n"; Thank You. (1 Reply)
Discussion started by: malaysoul
1 Replies

5. Solaris

Display Serial Number

Hello, I am running Solaris 9 and I need to display the serial number of my machine. How can I do this? Here is my machine info: SunOS birch 5.9 Generic_118558-09 sun4u sparc SUNW,Sun-Fire-V240 Thank you, David (5 Replies)
Discussion started by: dkranes
5 Replies

6. Shell Programming and Scripting

print or display certain number of file

Hi, I am sure this is possible in awk or sed or a combination of the two. Can someone help me determine the best way to display or print certain section of a file, ie only certain number of lines. Example: File1 1 has 20 lines. I need to be able to print from line 5 to line 10 of this file.... (2 Replies)
Discussion started by: jerardfjay
2 Replies

7. Shell Programming and Scripting

display number of subdirectories

Can anyone tell me what command would display the number of subdirectories in the current or given location? (2 Replies)
Discussion started by: jjamd64
2 Replies

8. Programming

how i display number in words

helo i want to implement the following concept in my project write a c/c++ algorithm for : accept a number from the user not greater than 6 digits and display the number in words i.e. if the input from the user is 18265 then the output should be Eighteen Thousand Two Hundred Sixty Five. if the... (3 Replies)
Discussion started by: amitpansuria
3 Replies

9. AIX

LPAR processor/virtual processor settings

Question is on setting of Physical and Virtual processors for LPARs to make proper use of virtualization capabilities. Environment is a 8-way p570 with 4 LPARs. lparVIO1 and lparVIO2: AIX 5300-04-01 Mode/Type= Shared-SMT/Capped Minimum Processors= 0.10 Desired Processors= 0.50 Maximum... (1 Reply)
Discussion started by: guttew
1 Replies

10. UNIX for Dummies Questions & Answers

display lines after a particular line number

I have a file that has 1k lines and i want to print all the lines after 900th line. an 2)I want to move files f1 ,f2,f3,f4 to p1,p2,p3,p4 Please give me the commands. Thanx in adv. (6 Replies)
Discussion started by: rajashekar.y
6 Replies
Login or Register to Ask a Question