Schedutils

페이지 정보

작성자 조희승 댓글 0건 조회 8,544회 작성일 12-08-17 15:22

본문

CPU processor 할당
processor에 지정된 CPU 확인
root@csg116:/root> taskset -pc 2477
pid 2477's current affinity list: 0-7
CPU3에 특정 process 할당
root@csg116:/root> taskset -pc 3 2477
pid 2477's current affinity list: 0-7
pid 2477's new affinity list: 3
Using schedtool
http://linux.die.net/man/8/schedtool
schedtool -a 0x1 -e a.out
한가지 주의할 점은 cpu0는 mask가 0x1이다. 0부터 시작하지 않음
0x1 -> only run on CPU0
0x2 -> only run on CPU1
0x4 -> only run on CPU2
0x8 -> only run on CPU3
0x7 -> run on CPUs 0, 1, 2 but NOT on 4
0x3 -> run only on CPUs 0 and 1

댓글목록

등록된 댓글이 없습니다.