To get list of processes runing under a particular processor
Hi,
In my system I have 4 processors, namely 0-4. If I want to know what are the processes which are running under a particular processors at a particular time frame(say processor 3)....what command I should use? I am in a bit hurry...fast responses will be highly appreciable -kd |
Not sure if that's possible under my 2.6.18.1 kernel processes are constantly migrating from cpu to cpu as the system sees fit.
|
Thats true...and thats wht I want the various processes running at a particular time frame on a particular processor....
How u are checking the CPU to CPU migration of processes? Even knowing the PID of the processes under one particular CPU will also serve my purpose. |
Quote:
Plus, on my system, if you go into top, you can see that there is a seperate "migration" thread running all the time. Quote:
Maybe you can check out the "top" binary or gnutools where top is located (I think) - my older "top" on FC6 used to show, at the top, a summary for each "cpu" (hyperthread, in my case) and if I remember right there was a way to, for example, show all processes on a certain "cpu" (hyperthread). This might help you partway... but I've got no idea (programming wise) how top did this (i. e. select processes-per-cpu). |
Thanks....any other suggestions???
|
The best I can think of is to post on a Linux kernel specific forum / group or site... You seem to need some input from somebody who intimately know the kernel and the way it switches userspace tasks around from CPU to CPU. I'm pretty sure there's a way to do what you want, but it requires some really low-level and specialised knowledge of the Linux kernel.
|
From your (now closed) duplicate thread ...
Quote:
|
Quote:
But I need this thing because I need to confirm which process (leaving the one which is taking 110%) are chewing up the CPU..So I need it to know the process runing for a CPU in a particular time frame..if it change also it doesn't matter to me...as I will be motinering the all CPUs which will be having 100%.. Quote:
Let me say that assume process A is taking 110% CPU...when 'on' the thread option (Typing H)...I can see the threds names as also 'A'..I mean after 'H' the process A is divided among 6-7 'A' showing different usage...But I am not able to see the exact names...maybe I need to do something while building the process... And after typing 'H' it shows the output for 2-3 secs..how can I make it in interactive mode.. -kd |
htop?
Ever looked at htop ?
|
All times are GMT -5. The time now is 08:17 AM. |