Mail Archives: opendos/1997/04/18/18:09:19
On 18 Apr 97 at 21:56, Lorier wrote:
> >An extent based filer like VSTa uses or, I deduce, NTFS is (it uses
> >512 byte allocation units) can be more efficient, I think; disk
> >space is managed like malloc allocates blocks of RAM, in runs of
> >sectors. Unless it gets really fragmented, this is smaller than having
> >free-space bitmaps and indirection blocks and all that. And smaller
> >means faster, no? :-)
> Er, not always :) It's usually a trade off between Speed and Size, having to
> do it that way means you have to do mass calculations, and also trying to
> handle adding to to the end of a file is a problem if the next file is right
> at the end, thus leading to high fragmentation :)
To extend a file, just increment that extent's length counter until you reach
the next extent, then start with a fresh extent. Easy peasy?!?!?
Fragmentation can be solved by moving fragmented files (found when the filer
notes that accessing a certain file has entailed a lot of extent seeks)
into contiguous areas from time to time, a sort of background defrag that
works on individual files when it feels the need.
ABW
--
Alaric B. Williams (alaric AT abwillms DOT demon DOT co DOT uk)
---<## OpenDOS FAQ ##>---
Plain HTML: http://www.delorie.com/opendos/faq/
http://www.deltasoft.com/faq.html
Fancy HTML: http://www.deltasoft.com/faq0000.html
- Raw text -