[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ext3-users
Subject:    Re: unlink performance
From:       Ryan Dooley <rd () powerset ! com>
Date:       2007-08-20 15:11:20
Message-ID: C2EEFD28.F71E%rd () powerset ! com
[Download RAW message or body]

On 8/16/07 7:10 AM, "Stephen Samuel" <darkonc@gmail.com> wrote:

I think that the mv / mkdir is going to be your best move...
If you can't move the whole directory, try:


mkdir /tmp2
mv /tmp/{*,.??*} /tmp2
(restart the application)
rm -rf /tmp2/* /tmp2/.??*

(it depends, of course, on the two directories being on the same partition)=
.

That approach especially works if the bulk of your files are in sub-directo=
ries  You'll only be doing work on the inodes directly in the main director=
y, and then you can take your time deleting the subdirectories from /tmp2 w=
hile your app runs.

I'll give that a shot and see what happens.  Thanks!

Cheers,
Ryan


[Attachment #3 (text/html)]

<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, &quot;Stephen Samuel&quot; &lt;darkonc@gmail.com&gt; 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>
&nbsp;<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 \
&nbsp;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&#8217;ll give that a shot and see what happens. \
&nbsp;Thanks!<BR> <BR>
Cheers,<BR>
Ryan<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>



_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users
--===============1020049778==--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic