[Openais] Re: ipc rewrite

Steven Dake sdake at redhat.com
Tue Apr 25 16:16:16 PDT 2006

The events dropped might be because of priority inversion of the
subscription and publish tests.  They should be set to sched-rr:1.  Look
at evsbench.  Eventually this will be resolved in a later patch so that
priorities are automatically determined.  Let me know what tests you are
running to get the "lockup" and I'll see what is wrong with the ipc.

evsbench seems to work properly which is the only way I tested this..

What was the test case for the double free?

With the new code, it will be difficult to run aisexec within gdb
because the ipc code will often call pthread_kill to interrupt the poll
when the outbound kernel queue is full (this interrupts gdb too sigh).
I'd recommend ulimit -c unlimited to create core files and then use
gdb ./aisexec corefile

you can use thread 1, thread 2, etc to get to different threads and get

I realize this adds extra complication for the developers but it should
pay off in the end.

On Tue, 2006-04-25 at 15:07 -0700, Mark Haverkamp wrote:
> On Tue, 2006-04-25 at 13:45 -0700, Steven Dake wrote:
> > Here is an IPC rewrite I've been working on for awhile.  It offers
> > 20-40% performance improvement on my systems.  It will someday allow
> > realtime support without priority inversions that other sa forum
> > implementations suffer.  Please try it out.  This should also fix the
> > double free mess with the current code.
> > 
> > Mark H you will need to call hdb_create/hdb_destroy on your esi_hdb data
> > structure somewhere.  I wasn't sure where it was appropriate to call it.
> > Could you take a look and add that code?
> I applied the patch and put the create/destroy where I thought that it
> should go in the event code.  I put the create in the lib_init_fn and
> the destroy in the lib_exit_fn.
> I have attached a patch for the event changes.  
> I am not having much luck with it though.  I get events dropped fairly
> quickly in the subscription program and for some reason, I'm not seeing
> them re-start again.  If I kill the subscription test and re-start it I
> see events.  oops, while I was typing, one of the aisexec programs got a
> glibc double free corruption abort.
> > 
> > Thanks
> > -steve

More information about the Openais mailing list