[Openais] [PATCH] Allocate buffers for packet transmission in the network drivers

Russell Bryant russell at russellbryant.net
Fri Mar 11 05:09:29 PST 2011


On Thu, Mar 10, 2011 at 12:04 AM, Steven Dake <sdake at redhat.com> wrote:
> Another interesting idea that may be useful for a second patch is to
> keep a list of freed frames to avoid the malloc/free overhead for the
> common cases of totemsrp.  Surprisingly this is quite a significant
> amount of overhead (according to oprofile).

This is definitely good assuming only one thread is going to mess
around with the free list.  Is that the case here?  If you have to add
locking, it's even worse.  One thing I have done before in that case
is create a free list per-thread using thread local storage.

--
Russell Bryant


More information about the Openais mailing list