home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / bsd / 10458 < prev    next >
Encoding:
Text File  |  1992-12-21  |  2.2 KB  |  46 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!fcom.cc.utah.edu!cs.weber.edu!terry
  3. From: terry@cs.weber.edu (A Wizard of Earth C)
  4. Subject: Re: Dumb Question: Why 512 byte block?
  5. Message-ID: <1992Dec20.030146.279@fcom.cc.utah.edu>
  6. Sender: news@fcom.cc.utah.edu
  7. Organization: University of Utah Computer Center
  8. References: <1992Dec18.030833.7395@fcom.cc.utah.edu> <1gt736INNjje@menudo.uh.edu> <1992Dec18.235623.27538@fcom.cc.utah.edu> <BzIEv1.G7G@pix.com>
  9. Date: Sun, 20 Dec 92 03:01:46 GMT
  10. Lines: 34
  11.  
  12. In article <BzIEv1.G7G@pix.com>, stripes@pix.com (Josh Osborne) writes:
  13. |> In article <1992Dec18.235623.27538@fcom.cc.utah.edu> terry@cs.weber.edu (A Wizard of Earth C) writes:
  14. |> [...]
  15. |> >>If you have 6 1.5K files using 1K blocks,
  16. |> >>   6 1k blocks will take each 1K from each file, and 
  17. |> >>   3 1k blocks will take 0.5k from each file.
  18. |> >>This was my understading from the famous FUFS paper.
  19. |> >
  20. |> >You can't split blocks between files.  A block is, by definition, the
  21. |> >smallest possible allocation unit.  Thin about the case where you have
  22. |> 
  23. |> Under the FFS the fragment is the smallest allocation unit, and fragments are
  24. |> only allocated at the end of a file.  The rest of the file is in blocks.
  25. [ ... ]
  26. |> I think the BSD FFS is normally configured with 8K blocks, and 1K fragments,
  27. |> or 4K blocks and 512b fragments.  So the figures for 1.6K files you gave
  28. |> are correct for the 4K/512b system, and low for the 8K/1K system.  However
  29. |> I don't think anything prevents you from having a 1K/128b filesystem (except
  30. |> the block device drivers for disks, and mabie the buffer cache).
  31.  
  32. Yup.  I mixed up frags and blocks.  The "df" command (original poster's topic)
  33. reports in "512-blks" ... the source of my confusion.
  34.  
  35.  
  36.                     Terry Lambert
  37.                     terry@icarus.weber.edu
  38.                     terry_lambert@novell.com
  39. ---
  40. Any opinions in this posting are my own and not those of my present
  41. or previous employers.
  42. -------------------------------------------------------------------------------
  43.                                         "I have an 8 user poetic license" - me
  44.  Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
  45. -------------------------------------------------------------------------------
  46.