Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I disabled the second core of my system for some testing, but there are still leaks.

I just wrote a new script, which has the lowest memory growth I was able to produce.

What really surprises me is the erratic growth of resident memory consumption.(the second cell)
I just submitted a bugreport.
use threads; while( 1 ) { my $t = threads->create( sub{ undef @_;undef;} ); my $f = $t->join(); undef $t; undef $f; threads->yield(); select undef,undef,undef,0.2; }
micha@laptop /proc $ perl -e 'while(1){system("cat $ARGV[0]/statm");sl +eep 1;}' 24857 20376 11566 394 289 0 19667 0 20376 11566 394 289 0 19667 0 20376 11566 394 289 0 19667 0 20376 11566 394 289 0 19667 0 53160 11582 394 289 0 52451 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 77748 11596 394 289 0 77039 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 20376 11568 394 289 0 19667 0 133071 11623 394 289 0 132362 0 21161 12359 394 289 0 20452 0 21161 12359 394 289 0 20452 0 21161 12359 394 289 0 20452 0 21161 12359 394 289 0 20452 0 21161 12359 394 289 0 20452 0 21150 12354 394 289 0 20441 0 21150 12354 394 289 0 20441 0 21150 12354 394 289 0 20441 0 21150 12354 394 289 0 20441 0 21150 12354 394 289 0 20441 0 21150 12354 394 289 0 20441 0 21150 12354 394 289 0 20441 0 21150 12354 394 289 0 20441 0 21150 12354 394 289 0 20441 0 21150 12354 394 289 0 20441 0 45738 12366 394 289 0 45029 0

In reply to Re^10: memory leaks with threads (race of 1) by misc
in thread memory leaks with threads by misc

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-19 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found