Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. /proc/[pid]/stat
  2. (39) processor %d (since Linux 2.2.8)
  3. CPU number last executed on.
  4.  
  5. $ cat /proc/1185/task/1283/stat | awk '{print $39}'
  6. -1
  7.  
  8. $ cat /proc/1283/stat | awk '{print $39}'
  9. -1
  10.  
  11. $ cat /proc/1800/stat | awk '{print $39}'
  12. 17
  13. $ cat /sys/devices/system/cpu/online
  14. 0-15
  15. $ ps -eLo pid,psr | grep 1800
  16. 1800 14
  17.  
  18. comm %s
  19. The filename of the executable, in parentheses. This is visible whether or
  20. not the executable is swapped out.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement