Re: [PATCH] Priority Lists for the RT mutex

From: Steven Rostedt
Date: Mon May 09 2005 - 14:23:35 EST


On Mon, 2005-05-09 at 11:13 -0700, Daniel Walker wrote:
> On Mon, 2005-05-09 at 02:11, Ingo Molnar wrote:
>
> > What would be nice to achieve are [low-cost] reductions of the size of
> > struct rt_mutex (in include/linux/rt_lock.h), upon which all other
> > PI-aware locking objects are based. Right now it's 9 words, of which
> > struct plist is 5 words. Would be nice to trim this to 8 words - which
> > would give a nice round size of 32 bytes on 32-bit.
>
> Why not make rt_mutex->wait_lock a pointer ? Set it to NULL and handle
> it in rt.c .

That may make the rt_mutex structure smaller but this increases the size
of the kernel by the size of that pointer (times every rt_mutex in the
kernel!). You still need to allocate the size of the raw spin lock,
although now you just point to it. Is rounding worth that much overhead?

-- Steve

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/