0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

アプリケーションに割り当てられている論理コアを確認したいときのコマンド

Last updated at Posted at 2025-01-31

アプリケーション(プロセス)に割り当てられている論理コアを確認したいときのコマンド

コマンド

psコマンドでpsrのオプションを指定する

ubuntu@ubuntu:~$ man ps |grep "psr "
       psr         PSR       processor that process last executed on.
ubuntu@ubuntu:~$

実行例

ubuntu@ubuntu:~$ ps -eo psr,pid,comm --sort=psr
PSR     PID COMMAND
  0       1 systemd
  0       2 kthreadd
  0       3 pool_workqueue_release
...<snip>...
  0     818 login
  0     901 dockerd
  0    1329 ps
  1      21 cpuhp/1
  1      22 idle_inject/1
  1      23 migration/1
...<snip>...
  1     717 dbus-daemon
  1    1236 kworker/R-tls-s
  1    1301 sshd
  2      17 rcu_preempt
  2      27 cpuhp/2
  2      28 idle_inject/2
 ...<snip>...
  2    1244 sshd
  2    1245 sshd
  2    1312 kworker/u11:3-events_power_efficient
  3      33 cpuhp/3
  3      34 idle_inject/3
  3      35 migration/3
 ...<snip>...
  3    1190 bash
  3    1302 bash
  3    1319 kworker/u12:4-flush-252:0
ubuntu@ubuntu:~$
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?