Thanks for the reply. I had thought that IO wait would initially be the limiting factor in a threaded rmtree operation, but some early (non-perl, but shell with multiple process(not-threaded)) experiments indicated that I may see some improvement over a recursive deletion.

I admit ignorance as to how Perl's rmtree is implemented, but I thought there may have been some loose parallels.

Unfortunately, after spending a couple of hours on a fine Sunday testing a (quick and dirty) threaded rmtree failed to yield the results I was looking to justify my initial query.

Namely, the single deltree operation that seemed to be taking over two hours according to logfiles, took only 158 seconds using a threaded model, but surprisingly enough; only 222 seconds using a single, top-level rmtree operation.

Suffice to say; I am both humbled and stumped. I've put some additional logging into the script to try to determine exactly where the bottle-neck is occurring (I'm thinking it may be due to my scarce logging practices and the compressions of said tree prior to removal). Hopefully, I'll have some better meditation fodder tomorrow.


In reply to Re^2: Threaded tree deletion by ltp
in thread Threaded tree deletion by ltp

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.