【正文】
The masks are typically given in hexadecimal. toCPUs physically on the system. Not all CPUs may exist on a given system buta mask may specify more CPUs than are present. CPUand as long as practical for performance reasons. same on to The Linux scheduler will honor the given CPU affinity and the process will not run on anyother CPUs. ofCPUs is used to set or retrieve the CPU affinity of a running process given its PID or to launch a new COMMAND with a given CPU affinity. 下面是taskset的MAN PAGE:從描述上來看的話,只要taskset返回結(jié)果了,那LINUX肯定是確保得到了你想要的結(jié)果??梢酝ㄟ^top p 6457 [f j]查看P列可以看到當前運行的核心號。也就是說會在03這幾個核心調(diào)度。 1 6457 所有在某種情況下可能會需要手工來設置進程使用CPU核的優(yōu)先級。首先我們來看看CPU中斷請求的統(tǒng)計:CentOS release (Final)從圖上看,CPU的使用基本上還是均勻的。 output version information and exit******************************************************************************************************************************現(xiàn) 在多核的CPU已經(jīng)相當普遍了,那么這種多核的服務器如何讓CPU得到充分利用,可以靠應用自己來定義,或者依賴操作系統(tǒng)來調(diào)度。 h, help For example, 0,5,7,911. and by