On Thu, Dec 29, 2011 at 1:25 AM, Samuel Thibault
<samuel.thibault@gnu.org> wrote:
> [...], but I believe it's still a bit revealing: I had already noticed
> that ext2fs spends most of its time in the kernel (like 90%), and it
> here seems we're spending a lot of time just managing the ext2fs thread
> sleeps (no, there aren't many threads in that test, just two dozen).
Could thread migration [1] maybe help with this?
[1] http://www.brynosaurus.com/pub/os/thread-migrate.pdf
One reason we didn't worry about these context switches was because migrating threads was going to be in the mainline Mach RSN.
Thomas