<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 5/22/19 12:15 PM, Tim Peters wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAExdVNmP=LHAXbXmhsecq=S9dAEVb6UYykDQ=xUcO1zJVh1Pfw@mail.gmail.com">
      <pre class="moz-quote-pre" wrap="">There's a Stackoverflow report[1] I suspect is worth looking into, but
it requires far more RAM (over 80GB) than I have). [...]
But, for a start, it would be good to know if anyone else can actually
reproduce the problem.

[1] <a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/56228799/python-hangs-indefinitely-trying-to-delete-deeply-recursive-object">https://stackoverflow.com/questions/56228799/python-hangs-indefinitely-trying-to-delete-deeply-recursive-object</a></pre>
    </blockquote>
    <p><br>
    </p>
    <p>I have a computer with two Xeon CPUs and 256GB of RAM.  So, even
      though it's NUMA, I still have 128GB of memory per CPU.  It's
      running a "spin" of Ubuntu 18.10.</p>
    <p>I compiled a fresh Python 3.7.3 --with-optimizations.  I copied
      the sample program straight off the StackOverflow page.  The
      program ran for about five and a half hours then exited normally.</p>
    <p>During the run it printed:</p>
    <blockquote>
      <p>This gets printed!<br>
        This doesn't get printed<br>
      </p>
    </blockquote>
    <p>Statistics reported by "time":</p>
    <blockquote>
      <p>19811.05s user 123.56s system 99% cpu 5:32:15.04 total<br>
      </p>
    </blockquote>
    <p>Checking in on it now and then, peak observed memory usage (as
      reported by "top") was just under 80GB.<br>
    </p>
    <p>I take it that the interesting part was confirming that "This
      doesn't get printed" gets printed when you have enough RAM for the
      program to run to completion.  So I guess there's no bug here? 
      Just an observation about CPython's garbage collector being kinda
      slow?  Or maybe CPython gc + swap = super bombad slow?<br>
    </p>
    <p><br>
    </p>
    <p><i>/arry</i><br>
    </p>
  </body>
</html>