<HTML>
<HEAD>
<TITLE>Re: unlink performance</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>On 8/16/07 7:10 AM, "Stephen Samuel" <darkonc@gmail.com> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>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>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
I’ll give that a shot and see what happens. Thanks!<BR>
<BR>
Cheers,<BR>
Ryan<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>