CPU isolation

elurex

Active Member
Oct 28, 2015
204
15
38
Taiwan
I am looking into assign cpu affinity to a particular VM via /usr/sbin/taskset -cpa 0-3 [PID]

However, I notice that pve host itself has also other process will trying to use cpu core 0~3, how to I exclude other process from using core 0~3?

I tried add kernel parameter

Code:
GRUB_CMDLINE_LINUX="... isolcpus=0-3 nohz_full=0-3 rcu_nocbs=0-3 ..."

but it totally disabled those core and not able to assign those core via taskset.

How to achieve CPU isolation on PVE?
 
  • Like
Reactions: eedev