欢迎来到天天文库
浏览记录
ID:39771877
大小:372.93 KB
页数:12页
时间:2019-07-11
《Libvirt-Host-Guest-cpu-isolation》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、KVMHost/GuestCPUIsolationHongminghongmingzhang@126.com2012.10.191KVMHost/GuestCPUisolation●Host/Guestcpupinningisolation●Bug822064-[FEATRHEL6.4]:libvirt:KVMhost/guestcpuisolation●Host/Guestcpucappingisolation●Bug822090-[FEATRHEL6.4]:libvirt:KVMhost/guestcpucappingisolation2Host/G
2、uestCPUpinningisolation●Featuredescription●Allowtopinemulatorthreadstospecifiedphysicalcpus.●RHEL6.3onlyallowstopinguest'svcpustospecifiedphysicalcpus●Whyisthefeatureneeded?●Performancetuning/forecast,Candoinotherhypervisor(Xen,VMware...)3QEMU/KVMProcess●KVMusesaslightlymodifiedQ
3、EMUprogramtoinstantiatethevirtualmachine.Oncerunning,avirtualmachineisjustaregularprocess.●Use`top,kill,taskset`andsimilartoolstomanagevirtualmachines.4QEMU/KVMThreads5QEMU/KVMThreads●Onethreadper-VCPU●executeguestcodeVCPU0VCPU1●OneI/OthreadThreadThreadI/O●runsaselect(2)loopThrea
4、dtohandleevents.VCPU2VCPU...ThreadThread●Oneemulatorthread●mainthread●createandmanageProcessEmulatorThreadotherworkerthreads6LibvirtSupport-EmulatorThreadPinning●emulatorpindomain[cpulist][[--live][--config]
5、[--current]]●Queryorchangethepinningofdomain’semulatorthreadstohostphysi
6、calCPUs.●●2●emulatorpinisnotallowedifattributeplacementofelementvcpuis"auto".●Ifthisisomitted,andattributecpuseto
7、felementvcpuisnotspecified,emulatorthreadispinnedtoallthephysicalCPUsbydefault.7LibvirtSupport-EmulatorThreadPinning8Host/GuestCPUcappingisolation●Featuredescription●Allowtocappingguestvcpusindependentlyfromemulatorcpuusage.●RHEL6.2and6.3allowstocapguestcpuusage(process=vcpu+emul
8、ator)viavcpu_period/vcpu_quota●Whyisthefeatureneeded?●Performancetuning/forecast●EmulatorusesmuchcpusbecauseofI/O,migration,etc.guestvcpuscputimewillbereducedbecauseemulatorusemorecpu.●Candoinotherhypervisor(Xen,VMware...)9LibvirtSupport-EmulatorThreadPinning●schedinfo[--setparam
9、eter=value]domain[[--config][--live]
10、[--
此文档下载收益归作者所有
点击更多查看相关文章~~