Messages in this thread | | | Subject | Re: Long `rm` times. | Date | Mon, 24 May 1999 09:41:39 +0200 (MEST) | From | (Rogier Wolff) |
| |
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/
| |