<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 13, 2013 at 2:46 PM, Tobias Oetiker <span dir="ltr"><<a href="mailto:tobi@oetiker.ch" target="_blank">tobi@oetiker.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Peter,<br>
<br>
Today Peter Tribble wrote:<br>
<br>
> On Wed, Nov 13, 2013 at 1:59 PM, Tobias Oetiker <<a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a>> wrote:<br>
><br>
> > We have this customer who loves to put tons of files into single<br>
> > directories.  The other day he found that removing a directory with<br>
> > 7k files from raidz2 pool (with ssd log device) took about 10<br>
> > minutes ...<br>
> ><br>
> > is this to be expected, or should this be faster on a properly<br>
> > configured system ?<br>
> ><br>
><br>
> That's a tiny number of files. Ought to be essentially instant.<br>
> I routinely have up to a million files in a directory. That can take<br>
> a few minutes to delete, but I don't have any SSDs at all on<br>
> those systems.<br>
><br>
> This isn't being done over NFS, is it? That can dramatically slow<br>
> operations like this, even with a log.<br>
<br>
nope it is local ...<br>
<br>
are you running this on raidz2 ?<br></blockquote><div><br></div><div>Yes. On old X4540s. Deletion of a directory with 7k files in it<br></div><div>takes about 0.3s<br></div><div> </div></div>-- <br>-Peter Tribble<br><a href="http://www.petertribble.co.uk/">http://www.petertribble.co.uk/</a> - <a href="http://ptribble.blogspot.com/">http://ptribble.blogspot.com/</a>
</div></div>