Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lloydatkinson
on Oct 28, 2021
|
parent
|
context
|
favorite
| on:
Raspberry Pi Zero 2 W
That's a big jump. Is there a way of getting Linux to disable a couple of cores?
rbanffy
on Oct 28, 2021
|
next
[–]
`echo 0 > /sys/devices/system/cpu/cpu[0-n]/online` should do what you want.
geerlingguy
on Oct 28, 2021
|
parent
|
next
[–]
Even as root, that gives `permission denied` on Pi OS on the Zero 2 W. I'm trying the kernel cmdline option too.
Edit: That works! See:
https://www.jeffgeerling.com/blog/2021/disabling-cores-reduc...
rbanffy
on Oct 28, 2021
|
root
|
parent
|
next
[–]
Well… I said it
should
, not that it would. ;-)
hulitu
on Oct 28, 2021
|
prev
[–]
On x86 there was an option, i think nr_cpus or something like that some time ago. There was also SMP_KERNEL kernel config option.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: