Fix update cpuset on single processor box

Fixes: #1050

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
Qiang Huang 2016-09-18 10:44:46 +08:00
parent 7ec24c513f
commit c5d33b1ac7
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ function check_cgroup_value() {
# update cpuset if supported (i.e. we're running on a multicore cpu)
cpu_count=$(grep '^processor' /proc/cpuinfo | wc -l)
if [ $cpu_count -ge 1 ]; then
if [ $cpu_count -gt 1 ]; then
runc update test_update --cpuset-cpus "1"
[ "$status" -eq 0 ]
check_cgroup_value $CGROUP_CPUSET "cpuset.cpus" 1