I think that the mv / mkdir is going to be your best move...<br>If you can't move the whole directory, try:<br><br><br>mkdir /tmp2<br>mv /tmp/{*,.??*} /tmp2<br>(restart the application)<br>rm -rf /tmp2/* /tmp2/.??* <br>
 <br>(it depends, of course, on the two directories being on the same partition).<br><br>That approach especially works if the bulk of your files are in sub-directories  You'll only be doing work on the inodes directly in the main directory, and then you can take your time deleting the subdirectories from /tmp2 while your app runs.
<br><br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">I'm looking for clues about speeding up unlink performance.  I have
an ext3 file system (well, across several machines) that have a temp
directory.  The application needs to clean up the temp directory before
the next run of the application begins and the engineers want to clean
out this temp directory  "quickly".<br></blockquote><br>-- <br>Stephen Samuel <a href="http://www.bcgreen.com">http://www.bcgreen.com</a><br>778-861-7641<br>