Menu="CPUset:1" Title="CPU Pinning VM" Tag="icon-cpu" ---
"; $cpuset = implode(';',$cpus); function create() { // create the table header. Make multiple rows when CPU cores are many ;) global $total,$cpus; $loop = floor(($total-1)/32)+1; $text = []; for ($c = 0; $c < $loop; $c++) { $max = ($c==$loop-1 ? ($total%32?:32) : 32); for ($n = 0; $n < $max; $n++) { unset($cpu1,$cpu2); list($cpu1, $cpu2) = preg_split('/[,-]/',$cpus[$c*32+$n]); $text[$n] .="$cpu1
"; if ($cpu2) $text[$n] .= "$cpu2
"; } } $label = implode('
',array_fill(0,$loop,'CPU:'.($cpu2 ? '
HT:':''))); echo "$label".implode(array_map(function($t){return "$t";},$text)); } ?>
_(VM)_
_(No CPU pinning available. VM service must be started)_
:help1 > This page gives a total view of the current CPU pinning assignments for VMs.
> It also allows to modify these assignments. > > Running VMs are **stopped first** and restarted after the modification.
> Stopped VMs are instantly modified and new assignments become active when the VM is started. > > When ***Apply*** is pressed a scan is performed to find the changes, subsequently only VMs which have changes are modified in parallel. > > *Important: Please wait until all updates are finished before leaving this page*. :end