<div dir="ltr">Yes, typically.<div><br></div><div>cpuset means which host thread will be pinned to vCPU thread.</div><div>And topology can set the deploy definition of these threads. Like you want to set these pinned threads as 6 cores, or want to set these as 6 sockets.</div><div>I suggest to set these threads as cores. </div><div><br></div><div>For example,</div><div><br></div><div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace"><cputune></span></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace">    <vcpupin vcpu='0' cpuset='2'/></span></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace">    <vcpupin vcpu='1' cpuset='3'/></span></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace">    <vcpupin vcpu='2' cpuset='4'/></span></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace">    <vcpupin vcpu='3' cpuset='5'/></span></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><div style="font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace">    <vcpupin vcpu='4' cpuset='6'/></span></div><div style="font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace">    <vcpupin vcpu='5' cpuset='7'/></span></div></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace"></cputune></span></div></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace"><br></span></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:arial,sans-serif;font-size:small;line-height:normal">And,</span><br></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:arial,sans-serif;font-size:small;line-height:normal"><br></span></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><div style="font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace"><cpu mode='host-passthrough'></span></div><div style="font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace">    <topology sockets='1' cores='6' threads='1'/></span></div><div style="font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace"></cpu></span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-28 13:55 GMT+08:00 thibaut noah <span dir="ltr"><<a href="mailto:thibaut.noah@gmail.com" target="_blank">thibaut.noah@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace">So is this the right emulation? If i understand correctly what i'm trying to get is a 3cores with 2threads per core ? (so 6cores pinned?)<br>I don't have that much knowledge in cpu so i'm kinda lost here.</span></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace"><br></span></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace"><cputune></span></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace">    <vcpupin vcpu='0' cpuset='1'/></span></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace">    <vcpupin vcpu='1' cpuset='2'/></span></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace">    <vcpupin vcpu='2' cpuset='3'/></span></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace">    <vcpupin vcpu='3' cpuset='5'/></span></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><div style="font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace">    <vcpupin vcpu='4' cpuset='6'/></span></div><div style="font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace">    <vcpupin vcpu='5' cpuset='7'/></span></div></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"></div><div style="font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13.2px;line-height:18.48px;clear:both"><span style="font-family:'Courier New',Courier,monospace">  </cputune></span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-12-26 18:53 GMT+01:00 Karsten Elfenbein <span dir="ltr"><<a href="mailto:karsten.elfenbein@gmail.com" target="_blank">karsten.elfenbein@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">check that the 2 cores for the host OS are on the same physical core<br>
and that the VM does not use those 2 processors with the same core id<br>
<br>
cat /proc/cpuinfo | grep -e processor -e 'core id'<br>
<br>
CPU 0-3 should be the core 0-3<br>
CPU 4-7 should be the core 0-3 again with HT<br>
<br>
so leaving out CPU 0 and 4 should keep core 0 idle and the host OS responsive<br>
<br>
taskset 1-3,5-7 startVM.sh<br>
<span><font color="#888888"><br>
Karsten<br>
</font></span><div><div><br>
2015-12-26 12:56 GMT+01:00 Eddie Yen <<a href="mailto:missile0407@gmail.com" target="_blank">missile0407@gmail.com</a>>:<br>
> Pining CPU can reduce the happening that host and guest using the same<br>
> thread at the same time.<br>
><br>
> And I don't know which program you're using on Fedora, so I don't have quite<br>
> answer that 2 threads is enough for host or not.<br>
> It's all depends on your usage case.<br>
><br>
> 2015-12-26 19:44 GMT+08:00 thibaut noah <<a href="mailto:thibaut.noah@gmail.com" target="_blank">thibaut.noah@gmail.com</a>>:<br>
>><br>
>> My cpu is a i7 4790k, is pinning the cpu usefull ? I'll try to derp a bit<br>
>> with the vcpu thing, just afraid 2 threads aren't enough for fedora :/<br>
>><br>
>> 2015-12-26 11:59 GMT+01:00 Eddie Yen <<a href="mailto:missile0407@gmail.com" target="_blank">missile0407@gmail.com</a>>:<br>
>>><br>
>>> I forgot your CPU type, so I don't know about your case.<br>
>>><br>
>>> But, as I'm using 4820K, I usually using 4 to 6 threads gave to VM, only<br>
>>> use 2 threads for Fedora host.<br>
>>> And most important is vCPU tweaks, especially CPU topology and Hyper-V.<br>
>>><br>
>>> For me, I usually set topology as "sockets=1 cores=6 threads=1" if using<br>
>>> 6 threads from host.<br>
>>> Then set cpuset= to let vCPU worked on pointed CPU threads.<br>
>>><br>
>>> IME, set all threads as vCPU cores can got better performance on Windows<br>
>>> 10.<br>
>>><br>
>>> 2015-12-26 18:00 GMT+08:00 thibaut noah <<a href="mailto:thibaut.noah@gmail.com" target="_blank">thibaut.noah@gmail.com</a>>:<br>
>>>><br>
>>>> Hello guys merry christmas ! o/<br>
>>>> My current issue is vm and host optimization, i use my windows 10 vm for<br>
>>>> gaming purposes only (like most of us i think), problem is, to keep my<br>
>>>> performances on windows high i drain too much ressources on my fedora host<br>
>>>> thus making it almost useless (also when leaving the vm i most of the time<br>
>>>> found myself unable to use fedora at all so i have to reboot...).<br>
>>>> So is it possible to improve performances to the max on the guest<br>
>>>> without almost killing the host ?<br>
>>>> Should i consider switching my gear for a bi-xeon? (to assign one fully<br>
>>>> to the host and one to the guest)<br>
>>>> I'm actually not sure about what happen here, does anyone ran into the<br>
>>>> same sort of issue?<br>
>>>> Have a good day<br>
>>>><br>
>>>> _______________________________________________<br>
>>>> vfio-users mailing list<br>
>>>> <a href="mailto:vfio-users@redhat.com" target="_blank">vfio-users@redhat.com</a><br>
>>>> <a href="https://www.redhat.com/mailman/listinfo/vfio-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a><br>
>>>><br>
>>><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> vfio-users mailing list<br>
> <a href="mailto:vfio-users@redhat.com" target="_blank">vfio-users@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/vfio-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a><br>
><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>