Home
Cloud
Big Data
CI
Install
Samples
Java
Ubuntu
Maven
Archive
Linux-Ubuntu
|
System info
System info
How to disable/enable a CPU core?
System info
CPU info:
$ cat /proc/cpuinfo $ cat /proc/cpuinfo | grep processor
OS info:
$ cat /proc/version
Memory info:
$ vmstat -s $ vmstat -s | grep memory
How to disable/enable a CPU core?
Available CPU cores:
$ cat /proc/cpuinfo | grep processor $ ls -al /sys/devices/system/cpu/
To disable a CPU core:
$ echo 0 | sudo tee /sys/devices/system/cpu/cpu1/online
To enable a CPU core:
$ echo 1 | sudo tee /sys/devices/system/cpu/cpu1/online
© 2010-2022
mti
tek