{"id":482,"date":"2021-05-03T19:58:49","date_gmt":"2021-05-03T17:58:49","guid":{"rendered":"https:\/\/anjo.pt\/keyword-oracle\/?p=482"},"modified":"2021-05-03T19:59:37","modified_gmt":"2021-05-03T17:59:37","slug":"cpu-pinning-overview-directly-from-physical-server-using-oraclevm-xen","status":"publish","type":"post","link":"https:\/\/anjo.pt\/keyword-oracle\/2021\/05\/03\/cpu-pinning-overview-directly-from-physical-server-using-oraclevm-xen\/","title":{"rendered":"CPU pinning overview directly from physical server using OracleVM \/ Xen"},"content":{"rendered":"\n<p>When using Oracle VM, there is the the possibility to use the &#8216;ovm_vmcontrol&#8217; tool to check and set the CPU Pinning. However the output is not the best for a overview picture.<\/p>\n\n\n\n<p>Today I just wrote a short script to print this overview, which can be run directly on the Physical Server which we are interested at:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@lxsrv0001 ~]# for vm in $(xm vcpu-list | egrep &#039;^000&#039; | cut -c1-32 | uniq); do \n  echo &quot;${vm} - $(grep OVM_simple_name \/OVS\/Repositories\/*\/VirtualMachines\/${vm}\/vm.cfg | cut -d&#039;=&#039; -f2) - $(xm vcpu-list | grep -c ${vm}) CPUs - Pin to $(xm vcpu-list | grep -m1 ${vm} | rev | cut -d&#039; &#039; -f1 | rev)&quot;; \ndone\n<\/pre><\/div>\n\n\n<p>The output will be something like<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n0004fb000006000031f0e14272fa90d1 - &#039;vmsrv01&#039; - 6 CPUs - Pin to 0-5\n0004fb0000060000b7fcb78fa7888d37 - &#039;vmsrv03&#039; - 6 CPUs - Pin to 0-5\n0004fb00000600004568a88b95d9ea3f - &#039;vmsrv05&#039; - 4 CPUs - Pin to 6-10\n0004fb00000600004ae9d1f0c8e4b8fb - &#039;vmsrv07&#039; - 2 CPUs - Pin to 11-12\n<\/pre><\/div>\n\n\n<p>This can always be useful when we need to fast check the CPU pinning for the whole Physical Server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using Oracle VM, there is the the possibility to use the &#8216;ovm_vmcontrol&#8217; tool to check and set the CPU Pinning. However the output is not the best for a overview picture. Today I just wrote a short script to print this overview, which can be run directly on the Physical Server which we are [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,64],"tags":[],"class_list":{"0":"post-482","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-oracle","7":"category-oraclevm","8":"czr-hentry"},"_links":{"self":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/comments?post=482"}],"version-history":[{"count":1,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/482\/revisions"}],"predecessor-version":[{"id":483,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/482\/revisions\/483"}],"wp:attachment":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/media?parent=482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/categories?post=482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/tags?post=482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}