[PATCH] Add getcpu

H.J. Lu hjl.tools@gmail.com
Wed Dec 5 20:07:00 GMT 2018


On Wed, Dec 5, 2018 at 11:57 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> * H. J. Lu:
>
> > I updated the patch with a very simple test.
>
> The simple test has a race condition unfortunately.
>
> I think we could fold the test into the existing affinity tests.

Sure, I will do that.

> The main question is whether getcpu is fast enough.  It does not perform
> a system call, but in my tests a while back, it was still rather slow.

It is fast enough for NUMA spinlock.

> The new rseq-based getcpu does not support NUMA nodes, it seems.  Maybe
> it's still possible to fix that.

That will be great.  We can take advantage it when it is available.

-- 
H.J.



More information about the Libc-alpha mailing list