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?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. AIX
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
3. Programming
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
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
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
6. Solaris
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
7. Shell Programming and Scripting
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
8. Programming
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
9. UNIX Desktop Questions & Answers
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
10. UNIX for Advanced & Expert Users
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
LEARN ABOUT OSF1
pset_info
pset_info(1) General Commands Manual pset_info(1)
NAME
pset_info - Displays processor set information
SYNOPSIS
/usr/sbin/pset_info
DESCRIPTION
The pset_info command displays information about processor sets and the processors that are assigned to each set. Note that a stopped pro-
cessor is not a member of any processor set, and its processor set identification number is specified as -1. Also, depending on the machine
architecture, processors may not be numbered consecutively. That is, a four-processor system may not have a processor with the number 3.
NOTES
If a processor or processor set is queried while it is in transition (for example, processor set destruction or processor assignment), an
error may be returned from the kernel. Running the command a second time will result in normal behavior.
EXAMPLES
The following is an example of the output of the pset_info command:
number of processor sets on system = 2
pset_id # cpus # pids # threads load_av created
0 1 26 63 0.90 09/21/1994 17:48:42
6 1 1 4 0.21 09/21/1994 23:33:37
total number of processors on system = 3
cpu # running boot_cpu pset_id assigned_to_pset
0 1 1 0 09/21/1994 17:48:42
1 1 0 6 09/21/1994 23:34:06
2 0 0 -1 09/21/1994 17:48:42
SEE ALSO
Commands: pset_assign_cpu(1), pset_assign_pid(1), pset_create(1), psradm(8)
Files: processor_sets(4)
pset_info(1)