Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

The OS this is happening on would be helpful, but first impression is that you're not helping by explicitly trying to explicitly undef or otherwise zero out your data structures. On most OSen it's not possible to return memory from a running process (Windows and I believe several flavours of *BSD can) short of the process terminating. If anything you're probably making the underlying malloc/free machinery do extra work putting all that memory back into its free lists for nothing (since you're already exiting it's not going to be reused by the current process).

A utility like strace/truss/ktrace might be of use to see what sort of system calls are being made during the period after you've started exiting (if any, which may shed light on what's going on and leaving you hung).

Update: Expanded with parenthetical in second paragraph.

The cake is a lie.
The cake is a lie.
The cake is a lie.

In reply to Re: High RAM script takes forever to terminate by Fletch
in thread High RAM script takes forever to terminate by Anonymous Monk

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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-05-21 01:35 GMT
Find Nodes?
    Voting Booth?

    No recent polls found