I used valgrind and it complained about huge memory leaks somewhere in
the thread allocation, nothing in particular but it pointed on
Ns_CsInit function when used master lock. I could not figure out there
anything, it is just simple plain ns_calloc but still, when
zippy disabled it is running fine.
Zoran Vasiljevic wrote:
Am 06.04.2005 um 18:12 schrieb Zoran Vasiljevic:
Stephen, can you please try again, but be sure you're using
the 8.4.6 lib. In my setup, everything from 8.4.6 to 8.4.9
leaks on all platforms we have/use: Sun, Linux, MacOSX.
Hm. I tried 8.4.6. Same thing (leaks).
Now, I have looked into the thing and must admit that I'd
have to spend more time than I thought in order to understand
what is this beast doing *exactly* in order to pinpoint the
problem.
In the meantime, I wen't shopping for a better solution and
found basically Hoard and ptmalloc. The former is GPL or
requires commercial license, hence it is out of the question
for us/me at the moment. The ptmalloc seems to be implemented
in glibc as I understand it. Both of them are practically a
snap-in replacements for standard libc allocators. On Linux,
I believe, this whole "zippy" (whatever that is) stuff is
really not needed, since glibc based. For the rest, well,
Solaris has starting with 2.9 a goot mtmalloc implementation,
whereas Darwin just has none.
I will try seeing how the ptmalloc does the work on Solaris/Darwin
and check wether this could be an option for us. If yes, I will
have to recompile everything with USE_THREAD_ALLOC removed from
all makefiles and link against the ptmalloc library. I will keep
you informed what I got.
Bottom line is, all of this is really off-topic for Naviserver since
it does rely on the Tcl lib for its memory access. Since I do some
work there, I will try to see with the people in Tcl project and
with AS (I think Jim Davidson is responsible for this allocator)
what is really happening inside and if this can be fixed up in order
to keep Tcl itself stable.
Zoran
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
naviserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/naviserver-devel
--
Vlad Seryakov
571 262-8608 office
[EMAIL PROTECTED]
http://www.crystalballinc.com/vlad/