*** (0.28) *** Re: [Linux-HA] Info: CRM Memory Leaks

Alan Robertson alanr at unix.sh
Mon Feb 26 20:27:03 MST 2007


Andrew Beekhof wrote:
> On 2/24/07, Carson Gaspar <carson at taltos.org> wrote:
>> Andrew Beekhof wrote:
>>
>> > When running tools like Valgrind, please remember that there are
>> results
>> > that I cannot do anything about. Eg:
>> > * library functions that leak every time they're called
>> > * library functions that create "global" data and offer no way to clean
>> > it up^
>>
>> A bit late, but I'm curious which functions you're talking about. In
> 
> set_msg_callback() from heartbeat's messaging layer and (i think)
> g_main_loop_run() are two off the top of my head.
> 
>> general, I try to always use the newer thread-safe versions of the old
> 
> there aren't any (or at least very few) threads in heartbeat

There are no threads.  Our life has been SOO much more pleasant as a result.

Curiously enough, in every platform except Linux threads are much slower
than processes.  On recent versions of Linux they're only slightly slower.

-- 
    Alan Robertson <alanr at unix.sh>

"Openness is the foundation and preservative of friendship...  Let me
claim from you at all times your undisguised opinions." - William
Wilberforce


More information about the Linux-HA mailing list