<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 7, 2018, 4:34 AM Michel Dänzer <<a href="mailto:michel@daenzer.net">michel@daenzer.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2018-09-06 10:56 p.m., Axel Davy wrote:<br>
> Yeah by pinning to cores, I meant to group of cores.<br>
> <br>
> I think a reasonable policy would be for the kernel to put all threads<br>
> of a given process on the same L3<br>
> as long as the number of threads is lower than the L3 group size.<br>
> When there is more threads I guess it'd need heuristics to pick which<br>
> threads to put together.<br>
<br>
Maybe what's needed is a way for userspace to tell the kernel which<br>
threads need to be close to each other in CPU topology.<br>
<br>
<br>
> I fear if we begin to do the work manually, there won't be interest to<br>
> do that in the kernel,<br>
> and thus all applications will need to include such core pinning code to<br>
> have good performance when<br>
> multithreaded.<br>
<br>
I'm also a bit worried that this solution could result in multiple<br>
processes contending for the same set of CPU cores, while other cores<br>
might be underused, which could result in worse overall system performance.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Any suggestion how to choose the ccx such that processes end up on a different one?</div><div dir="auto"><br></div><div dir="auto">I don't think the performance can be worse than it is right now.</div><div dir="auto"><br></div><div dir="auto">Marek</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
-- <br>
Earthling Michel Dänzer               |               <a href="http://www.amd.com" rel="noreferrer noreferrer" target="_blank">http://www.amd.com</a><br>
Libre software enthusiast             |             Mesa and X developer<br>
</blockquote></div></div></div>