绑定进程到指定cpu运行

shell

# shell命令
# 查看某个进程在哪个cpu 上运行
ps -eLo ruser,pid,ppid,psr,args

# 查看cpu个数
cat /proc/cpuinfo |grep -c processor

# 调整进程所使用的CPU
taskset -cp 1  25718

 

posted @ 2021-12-22 14:26  LiShiChao  阅读(94)  评论(0编辑  收藏  举报