develooper Front page | perl.perl5.porters | Postings from October 2003

RE: [perl #24255] shared hash ref memory leak in 5.8.1

Thread Previous | Thread Next
Elizabeth Mattijsen
October 22, 2003 13:16
RE: [perl #24255] shared hash ref memory leak in 5.8.1
Message ID:
At 15:33 -0400 10/22/03, Jack Steadman wrote:
>  > I don't know how performance bound you are, but both programs work ok
>>  when you used  (using an unchanged program, by specifying
>>  "-Mforks -Mforks::shared" on the command line).  So this might be a
>>  temporary alternative that would allow you to keep your source
>>  unchanged and not have to worry about having to restart because it is
>  > eating memory.
>performance is important but i'm running on some pretty big boxes.  i'm
>about to launch a very large threaded application in a week and half or so,
>and am hesitant to make a change that large no matter how compatible they
>are.  also, forks::shared doesn't support the :shared attribute, right?
>that's a lot of (minor) code changes.

No, _does_ support the shared attribute since September 27 
(version  0.06 then, at 0.08 now).  So you wouldn't need to change 
any code at all to try it...  At least it shouldn't  ;-)

>i was banking on the claim that 5.8.1 would solve the memory leaks with
>shared vars.  a bit idealistic i'm sure, but at least the memory problem is
>somewhat manageable now.  i should be able to run for about a day before
>restarting, though the ideal case would obviously be to never be *forced* to

Well, maybe someone can figure out what is going on here and maybe 
we'll get a fix for 5.8.2?


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About