From: Ingo Molnar <mingo@elte.hu>
To: Ulrich Drepper <drepper@redhat.com>
Cc: Andrew Morton <akpm@osdl.org>,
inaky.perez-gonzalez@intel.com, linux-kernel@vger.kernel.org,
robustmutexes@lists.osdl.org, rusty@rustcorp.com.au,
jamie@shareable.org
Subject: Re: [RFC/PATCH] FUSYN Realtime & robust mutexes for Linux, v2.3.1
Date: Thu, 5 Aug 2004 12:42:00 +0200 [thread overview]
Message-ID: <20040805104200.GB20171@elte.hu> (raw)
In-Reply-To: <4111E3B5.1070608@redhat.com>
* Ulrich Drepper <drepper@redhat.com> wrote:
> Andrew Morton wrote:
>
> > How large is the slowdown, and on what workloads?
>
> The fast path for all locking primitives etc in nptl today is entirely
> at userlevel. Normally just a single atomic operation with a dozen
> other instructions. With the fusyn stuff each and every locking
> operation needs a system call to register/unregister the thread as it
> locks/unlocks mutex/rwlocks/etc. [...]
actually, the way i understand the patch it is not that bad: normally
(in non-KCO mode) the fastpath locks/unlocks (uncontended locks) are
userspace-only. Non-KCO mode still gives all the priority guarantees.
(There's also KCO mode for guaranteed-unlock-on-thread-death and for
broken architectures - but it doesnt have any real advantage other than
the slowdown.)
there's overhead in the wakeup handling and in the registration need for
non-KCO locks, but once things are up and running it should be quite
comparable to current futex costs - it's pure userspace.
so i think what would be nice is an extension of sys_futex() to
incorporate the fusyn primitives, and then a nice glibc patch to
introduce a robust mode for all the sync objects.
and if fusyn.c is fast enough then we could even try to do normal
futexes via fusyn.c - but not doing the registration/unregistration
(hence losing the priority guarantee, but still sharing much of the
codepath). This would be the most robust internal design i believe.
Ingo
next prev parent reply other threads:[~2004-08-05 14:15 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-04 9:13 Perez-Gonzalez, Inaky
2004-08-05 6:21 ` Andrew Morton
2004-08-05 7:06 ` Ulrich Drepper
2004-08-05 7:17 ` Andrew Morton
2004-08-05 7:37 ` Ulrich Drepper
2004-08-05 7:40 ` Andrew Morton
2004-08-05 8:22 ` Ulrich Drepper
2004-08-05 10:42 ` Ingo Molnar [this message]
2004-08-05 11:48 ` Rusty Russell
2004-08-05 13:23 ` Linh Dang
2004-08-05 13:26 ` Linh Dang
2004-08-05 14:02 ` Chris Friesen
2004-08-05 10:34 ` Ingo Molnar
2004-08-05 10:59 ` Ingo Molnar
2004-08-05 8:39 Eric Valette
2004-08-05 18:16 Perez-Gonzalez, Inaky
2004-08-05 18:16 Perez-Gonzalez, Inaky
2004-08-05 18:16 Perez-Gonzalez, Inaky
2004-08-05 18:22 Perez-Gonzalez, Inaky
2004-08-05 18:37 Perez-Gonzalez, Inaky
2004-08-05 18:39 Perez-Gonzalez, Inaky
2004-08-05 18:39 Perez-Gonzalez, Inaky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040805104200.GB20171@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@osdl.org \
--cc=drepper@redhat.com \
--cc=inaky.perez-gonzalez@intel.com \
--cc=jamie@shareable.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robustmutexes@lists.osdl.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®