On 2018-09-06 10:56 p.m., Axel Davy wrote: > Yeah by pinning to cores, I meant to group of cores. > > I think a reasonable policy would be for the kernel to put all threads > of a given process on the same L3 > as long as the number of threads is lower than the L3 group size. > When there is more threads I guess it'd need heuristics to pick which > threads to put together.
Maybe what's needed is a way for userspace to tell the kernel which threads need to be close to each other in CPU topology. > I fear if we begin to do the work manually, there won't be interest to > do that in the kernel, > and thus all applications will need to include such core pinning code to > have good performance when > multithreaded. I'm also a bit worried that this solution could result in multiple processes contending for the same set of CPU cores, while other cores might be underused, which could result in worse overall system performance. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev