lkml.org 
[lkml]   [1999]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Long `rm` times.
Date
From
Mark Lord wrote:
> "Nicholas J. Leon" wrote:
> ..
> > Try rebooting and then deleting the file. I did so and it took around
> > 30seconds to delete a 1GB file..... if I delete it IMMEDIATELY after
> > creating it (including "sync") it takes (as youve shown) around 5 seconds or
> > so.
>
> Is the "file" in the root directory?
>
> Maybe this delay is just ext2 running around updating
> all of the superblock backups or something (WAG) ???

No. I don't think so.

I think that Nicholas has enough RAM to buffer all the indirect blocks
after he creates the file. So deleting the file involves writing all
the block bitmaps. Whereas, a cold delete of the file involves reading
all the indirect blocks....

Roger.

--
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
------ Microsoft SELLS you Windows, Linux GIVES you the whole house ------


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.835 / U:0.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site