Permission to Disable Cores?

868 views
Skip to first unread message

Neo Zhou

unread,
Aug 18, 2021, 11:32:19 AM8/18/21
to cloudlab-users
Hi, 

My research group is in the process of submitting an artifact for the SOSP conference. The server machines we used for our original specification used 4 cores, but the smallest number of cores for cloudlab hardware seems to be 8. We tried using XenVMs, to limit the number of cores used for the server machines, but my collaborators found severely reduced performance. Instead, we were hoping to manually disable cpu cores by editing the /sys directory via a command like echo 0 > /sys/devices/system/cpu/cpu0/online. I tried this and got a permission denied. Is there any way that we can enable this for ourselves, and our reviewers?

Thanks for your time,
Neo

mma...@wisc.edu

unread,
Aug 18, 2021, 12:36:05 PM8/18/21
to cloudlab-users
If you are on a bare-metal machine, you should be able to do that as root.

echo 0 | sudo tee /sys/devices/system/cpu/cpu0/online

You may get errors due to the kernel not being able to hot-unplug a core. In that case, you can look for more info in the dmesg log or else go look at the kernel code to see what the error might be.

Neo Zhou

unread,
Aug 18, 2021, 12:46:59 PM8/18/21
to cloudlab-users
Weird, when I run the command above on my experiment with bare metal machines (zhouaea-104241), I get a "permission denied" message. Attached is what I see. 
Screen Shot 2021-08-18 at 12.45.02 PM.png

Neo Zhou

unread,
Aug 18, 2021, 2:41:50 PM8/18/21
to cloudlab-users
I had to change my experiment to zhouaea-104274 for another reason, but I tried the command above again. I still got a permission denied message.

mma...@wisc.edu

unread,
Aug 18, 2021, 3:55:53 PM8/18/21
to cloudlab-users
Does it still happen if you try to disable other cores?

Also, is this a VM or bare metal?

Neo Zhou

unread,
Aug 18, 2021, 3:59:55 PM8/18/21
to cloudlab-users
Oh, I see. I tried to disable cpu1 and it worked correctly. It seems like cpu0 is off limits. All of my machines are bare metal. Thanks for your help!
Reply all
Reply to author
Forward
0 new messages