1

I'm using the kernel

uname -r
5.8.13-050813-generic

In latest version due to 'CPU HOTPLUG' 2 CPU's are online and other 2 are offline

nproc  2

lscpu
On-line CPU(s) list:             0,1
Off-line CPU(s) list:            2,3

I tried

sudo su
root: sudo echo 1 > /sys/devices/system/cpu/cpu3/online

But Im still getting this error

bash: echo: write error: Operation not permitted

could anyone help

Dharma B
  • 21
  • 9
  • /sys/devices/system/cpu/cpu3/online is a status file, you are not supposed to update it. – Philippe Nov 20 '20 at 16:49
  • As I searched online for updating the cpu's from offline state to online state I got this as an answer. Could you please suggest a way to make the other 2 cpu's online ? – Dharma B Nov 21 '20 at 17:09
  • 1
    Can you try `echo 0 | sudo tee /sys/devices/system/cpu/cpu3/online` ? – Philippe Nov 21 '20 at 18:00
  • That didn't worked `tee: /sys/devices/system/cpu/cpu3/online: Operation not permitted` – Dharma B Nov 23 '20 at 04:37

0 Answers0