home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / programm / 4258 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  2.9 KB

  1. Xref: sparky comp.unix.programmer:4258 comp.unix.internals:1682 comp.sys.hp:9210
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!swrinde!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!fcom.cc.utah.edu!gateway.univel.com!gateway.novell.com!thisbe!terry
  3. From: terry@thisbe.npd.Novell.COM (Terry Lambert)
  4. Newsgroups: comp.unix.programmer,comp.unix.internals,comp.sys.hp
  5. Subject: Re: inode to filename
  6. Message-ID: <1992Aug12.181707.23506@gateway.novell.com>
  7. Date: 12 Aug 92 18:17:07 GMT
  8. References: <1992Aug06.172513.4063@CS.ORST.EDU> <1992Aug07.131925.10902@bnr.uk> <1992Aug11.164753.13726@ssd.ukpoit.co.uk> <1992Aug12.144032.6417@bwdls61.bnr.ca>
  9. Sender: terry@thisbe (Terry Lambert)
  10. Organization: Novell NPD -- Sandy, UT
  11. Lines: 46
  12. Nntp-Posting-Host: thisbe.eng.sandy.novell.com
  13.  
  14. In article <1992Aug12.144032.6417@bwdls61.bnr.ca>, mleech@bnr.ca (Marcus Leech) writes:
  15. |> In article <1992Aug11.164753.13726@ssd.ukpoit.co.uk>, alan@ssd.ukpoit.co.uk (Alan Barclay) writes:
  16. |> |> I don't see it as a weakness, if there was a one to one relationship
  17. |> |> 
  18. |> |>  [MS-DOS references delated].
  19. |> |> I don't see the need to refer to a file from a inode number anyway,
  20. |> |> the most common you can get a inode number is though stat or fstat,
  21. |> |> and presumably you knew the filename in the past.
  22. |> A common reason for wanting to do this is to determine what's going on in
  23. |>   your system.  Which processes have which files open, etc.  This *is*
  24. |>   useful, and UNIX has traditionally (and continues to be) weak in the areas
  25. |>   of effective system management mechanisms.
  26. |> 
  27. |> The traditional argument for not storing such information in the kernel
  28. |>   has been "too much space".  Memory is now quite cheap, and with clever
  29. |>   data structures, you don't pay that much for keeping filename<--->process
  30. |>   mappings around.  If, for example, you recognize that there is a very
  31. |>   high degree of shared name space, you can take advantage of that fact to
  32. |>   dramatically reduce the storage requirements.
  33. |> 
  34. |> In this *particular area*, VMS is better.
  35.  
  36. Then again, VMS is extent based, and uses a single allocation pointer.  This
  37. means you not only serialize on the use of this pointer, multiple writers tend
  38. to interleave extents, pretty much killing any benefits from extenting in the
  39. first place.
  40.  
  41. VMS also has the ability to support hard links, which once again introduces the
  42. parent/ancestor identification problem... which equivalent path to the file (and
  43. which name for the file) did the user use when it was opened?
  44.  
  45. VMS also has a system-wide limit of 1024 channels, which aren't only used by the
  46. file system.
  47.  
  48. VMS also does not have caching, per se.
  49.  
  50. The traditional argument for not storing the information in the kernel has been
  51. reverse lookup overhead.
  52.  
  53.                     Terry Lambert
  54.                     terry_lambert@gateway.novell.com
  55.                     terry@icarus.weber.edu
  56.  
  57. ---
  58. Disclaimer:  Any opinions in this posting are my own and not those of
  59. my present or previous employers.
  60.