Enable/disable a system’s CPUs. More information: https://manned.org/chcpu.
chcpu -d 1,3
chcpu -e 1-3,5-7