计算节点上,OpenStack的部分业务进程会在物理机运行过程中占用较高CPU。将该部分进程绑核可以稳定虚拟机性能。
1
|
ps -ef | grep -E "nova-compute|cinder-volume|ovs-vswitchd|libvirtd" | grep -v grep| awk '{print $2}' | xargs -i taskset -pc 0-3 {} |
目前推荐绑核的进程:nova-compute相关,cinder-volume相关,ovs-vswitchd相关,libvirtd相关进程,绑到CPU0-3上,用户可以根据自己需求酌情增减进程,指定绑定物理核。