home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / software / 2913 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  2.7 KB

  1. Xref: sparky comp.software-eng:2913 comp.arch.storage:524 comp.unix.internals:1579
  2. Newsgroups: comp.software-eng,comp.arch.storage,comp.unix.internals
  3. Path: sparky!uunet!munnari.oz.au!uniwa!DIALix!metapro!bernie
  4. From: bernie@metapro.DIALix.oz.au (Bernd Felsche)
  5. Subject: Extent-based Filesystems (was: Large Application data sets )
  6. Message-ID: <1992Jul21.113652.4898@metapro.DIALix.oz.au>
  7. Organization: MetaPro Systems, Perth, Western Australia
  8. References: <1992Jul13.090423.20408@metapro.DIALix.oz.au <33120@cbmvax.commodore.com>
  9. Date: Tue, 21 Jul 92 11:36:52 GMT
  10. Lines: 48
  11.  
  12. In <33120@cbmvax.commodore.com>
  13.    jesup@cbmvax.commodore.com (Randell Jesup) writes:
  14.  
  15. >    "extent-based" means that instead of storing lists of blocks, you
  16. >store lists of block ranges (extents).  For example, if you have a contiguous
  17. >file 10MB long, it's stored as starting block and number of contiguous
  18. >blocks (or starting and ending).  As you can see, this is great for storing
  19. >(and seeking) in fairly unfragged files.  It doesn't get worse than lists
  20. >of blocks unless it's average number of contiguous blocks is less than 2.
  21.  
  22. Understood. The main saving is that each block use doesn't
  23. have to be explicitly named, unless it's at an extent end.
  24. That would save I/O overhead.
  25.  
  26. >>Does it still allow sparse file?
  27.  
  28. >    You could design it to do so.  Normally I don't care much about
  29. >sparse files - I think you'll find they don't actually save much on the
  30. >average Unix installation - and some of the uses could be easily replaced.
  31.  
  32. Ever have a look at core dumps on a Sun? Badly maintained
  33. machines have dozens of 8MB core dumps, though each
  34. fortunately, consumes only a few disk blocks, but they are
  35. fun to backup. (This is admittedly a sick excuse for sparse
  36. files!)
  37.  
  38. The only rational existence I can think of for sparse files
  39. is with memory-mapped (or similar) data files.
  40.  
  41. >> Could one still seek to the end of a 256MB file with only 4 block reads? 
  42.  
  43. > You could do it in 0 (on the assumption that the current position's
  44. >file-list block is cached), if the file is reasonably contiguous.  You can
  45. >also combine extents and heirarchical indirection blocks.
  46.  
  47. If it's cached, UNIX doesn't have to read it either ... but anyway:
  48.  
  49. Who implements extent-based filesystems commercially? How
  50. does it compare with the alternatives?
  51.  
  52. I've still to scrape together the money to buy a UNIX
  53. machine where I can write my own brain-damaged filesystem.
  54. Everybody else seems to have done so ;-)
  55. -- 
  56. +-----+ Bernd Felsche                     _--_|\  #include <std/disclaimer.h>
  57. | | | | MetaPro Systems Pty Ltd          /      \ bernie@metapro.DIALix.oz.au
  58. | | | | 328 Albany Highway,              X_.--._/         Fax: +61 9 472 3337
  59. |m|p|s| Victoria Park, Western Australia 6100  v        Phone: +61 9 362 9355
  60.