in reply to Re: Perl Deep Recursion locks up modern linuxes?
in thread Perl Deep Recursion locks up modern linuxes?

Yes, your code example freezes machine same way. So you experience this all the time? My experience that it never freeze such way before (I used Ubuntu 12, 10, 9, 8 last 10 years after switching from Windows).
  • Comment on Re^2: Perl Deep Recursion locks up modern linuxes?

Replies are listed 'Best First'.
Re^3: Perl Deep Recursion locks up modern linuxes?
by dave_the_m (Monsignor) on Oct 09, 2016 at 21:08 UTC
    So you experience this all the time?
    It's been my general experience with Linux for many years. In olden times it used to be the OOM killer killing off random processes that made the machine unusable - I don't know whether they've improved it.

    The usual scanario is that I'm investigating a leak in the perl core, or have just introduced one (I'm a core developer), and if i don't spot that I have a problem, I find the UI going very slowly, at which point I madly try to bring the cursor into the right terminal window and ^C repeatedly. About half the time I end up having to reboot the machine.

    I use Fedora.

    Dave.

      ulimit is your friend...

      On Linux, there is also a Magic SysRq key (usually f) allowing one to invoke the OOM killer on demand.