Re: Restartable Sequences system call merged into Linux

From: Florian Weimer
Date: Fri Jun 15 2018 - 01:07:25 EST


On 06/14/2018 02:27 PM, Pavel Machek wrote:

Should we treat it the same way? Always allocate it for each new thread
and register it with the kernel?

That would be an efficient way to do it, indeed. There is very little
performance overhead to have rseq registered for all threads, whether or
not they intend to run rseq critical sections.

People with slow / low memory machines would prefer not to see
overhead they don't need...

I can try to get rid of the >500 byte per-thread area for the stub resolver. That should compensate for the overhead introduced.

Thanks,
Florian