tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [RFC][PATCH] _UC_TLSBASE for all ports

On Sat, Aug 11, 2012 at 09:12:16AM +0200, Emmanuel Dreyfus wrote:
> A glusterfs contributor claims he tested a pure pthread implementation
> against swapcontext+pthread, and he reports the latter is 9 time faster.

Now you are talking about it being a performance optimisation? You are
aware that this doesn't exactly help your point since *context is
extremely inefficient for the purpose you want to use it for.
Coroutine switches on x86 can be implemented in something like 20
instructions without system calls. makecontext is several orders of
magnitude slower. Which begs the question why they (glusterfs) aren't
using something like libcoro in first place...


Home | Main Index | Thread Index | Old Index