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

Re^3: Postpone garbage collection during a child process run?

by sundialsvc4 (Abbot)
on Oct 06, 2010 at 15:46 UTC ( #863822=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Postpone garbage collection during a child process run?
in thread Postpone garbage collection during a child process run?

Bugs like this one ... ahem ... suck large.   But, “bugs they are,” and your application as-written will never work reliably in production.

Maddeningly, it will be “tantalizingly close.”   You’ll spend a lot of time trying to convince yourself that the existing design can be made to work.   But these flaws are structural.   “Patches and workarounds,” like disabling signals and whatever else you might now be doing, only (I am very sorry to pronounce...) prolong the inevitable.

“Because I have been there too, my son... And a more unpleasant place to be, might never be found on this world.”

Perhaps you can isolate the necessary disciplines into a few base-classes.   Or, maybe you can just change the routine that hands-off the work to the child threads.   (Ideally, the child would simply pull data off of one queue and put it back onto another.)   So, the code changes might not be as dramatic as you may fear.   But, until the changes are made, the code will continue to throw sporadic errors under production loads (and maybe nowhere else).

You definitely want to implement the solution so that it is “nearly invisible,” being encapsulated into a class such that every other part of the application can “just ignore it... It Just Works™.”   And I’d say that you can do that fairly easily.   Once it is done, the app will be rock-steady under any production load.

Comment on Re^3: Postpone garbage collection during a child process run?
Replies are listed 'Best First'.
Re^4: Postpone garbage collection during a child process run?
by zentara (Archbishop) on Oct 06, 2010 at 16:10 UTC
    Bugs like this one ... ahem ... suck large

    There is always the fallback to "caused by cosmic rays disrupting non-checked summed memory" :-)

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh

      Yep.   And in the days of magnetic core...

      (In the early 1980’s, I actually got to see such a computer once, running...)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://863822]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2016-02-14 06:46 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (458 votes), past polls