nnnnnng
Enthusiast
Enthusiast

Can I know VM use which physical core at ESXi host ?

Jump to solution

Hi Everyone,

In Linux environment I can use ps -o psr to find process use which core (cpu) at the time.

for example, the output below, I known PID 3067 use core 3 (cpu 3) and PID 3091 use core 2 (cpu 2)

EXAMPLE

[root@linux ~]# ps

   PID TTY          TIME CMD

  3067 pts/0    00:00:00 bash

  3086 pts/0    00:00:00 ps

[root@linux ~]# ps -o pid,tty,time,cmd,psr

   PID TT           TIME CMD                         PSR

  3067 pts/0    00:00:00 bash                          3

  3091 pts/0    00:00:00 ps -o pid,tty,time,cmd,psr    2

[root@linux ~]#

How can I do this at ESXi? Is it possible?

Thanks for your reading.

Any advice is welcome.

1 Solution

Accepted Solutions
bansne
Enthusiast
Enthusiast

To generate output for certain processes and maintain a title row, run the command:


run $ ps


then


$ps -Tcjstv  | egrep "WID|{proc-name}"



or try

$ps

$ps -Tcjstv


or use $esxtop to get cpu , pcpu details

View solution in original post

1 Reply
bansne
Enthusiast
Enthusiast

To generate output for certain processes and maintain a title row, run the command:


run $ ps


then


$ps -Tcjstv  | egrep "WID|{proc-name}"



or try

$ps

$ps -Tcjstv


or use $esxtop to get cpu , pcpu details

View solution in original post