CentOS将核心分配给流程

时间:2016-02-25 03:28:20

标签: linux

我有两个nodejs进程在同一台机器上运行。我尝试为每个进程分配核心。我安装了schedutil / 2 /。我收到错误消息为/ 1 /。我该怎么办?

/ 1 /

[root@localhost node]# ps aux | grep node
DIP_USER  3186  0.0  0.0 143692  3636 pts/3    S+   10:44   0:00 vim node_binding.js
root      3351  0.0  0.1 722324 24044 pts/5    Sl   11:13   0:00 node index3.js
root      3416  0.0  0.0 103248   848 pts/5    S+   11:20   0:00 grep node
[root@localhost node]# taskset 0x00000001 -p 3351
execvp: No such file or directory
failed to execute -p

/ 2 /

[root@localhost node]# yum install schedutils
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.pubyun.com
 * epel: mirrors.hustunique.com
 * extras: mirrors.pubyun.com
 * updates: mirrors.pubyun.com
Package util-linux-ng-2.17.2-12.18.el6.x86_64 already installed and latest version
Nothing to do

0 个答案:

没有答案