home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / bsd / 8483 < prev    next >
Encoding:
Text File  |  1992-11-06  |  7.5 KB  |  159 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!hamblin.math.byu.edu!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: 386BSD or LINUX?
  5. Message-ID: <1992Nov5.185438.29465@fcom.cc.utah.edu>
  6. Sender: news@fcom.cc.utah.edu
  7. Organization: Weber State University  (Ogden, UT)
  8. References: <1992Nov4.205620.8184@colorado.edu> <1992Nov5.060658.639@ntuix.ntu.ac.sg>
  9. Date: Thu, 5 Nov 92 18:54:38 GMT
  10. Lines: 147
  11.  
  12. In article <1992Nov5.060658.639@ntuix.ntu.ac.sg> eoahmad@ntuix.ntu.ac.sg (Othman Ahmad) writes:
  13. >Drew Eckhardt (drew@kinglear.cs.colorado.edu) wrote:
  14. >: 
  15. >: Linux +'s : 
  16. >: 
  17. >: Shared libraries.  This results in a significant disk space savings,
  18. >: especially in the case of 'X' applications that can shrink by 
  19. >: an order of magnitude when compiled with shared libraries.  
  20.  
  21. In all fairness, there are those of us who have shared libraries "working"
  22. on 386BSD using the AT&T 3B1 (UNIX PC)/Linux model, but are dissatisfied
  23. enough with the paradigm to never release the code since it would result
  24. in an effectively permanent limitation on program size that would keep us
  25. from running things like Postgress, NetWare for UNIX, FrameMaker, or other
  26. large commercial or commercial quality  applications.  There is also the
  27. problem of arbitrating entry point address ranges, and intrinsic size
  28. limits on items in a particular library (ie: libc can only get so big).
  29.  
  30. Those of us with the gcc 2.3.1 compiler can also see how much easier it
  31. is to impliment "real" (Sun/AIX style) shared libraries.
  32.  
  33. >: Modern VM, with a unified buffer cache and user memory pool.  
  34. >
  35. > I never believe in VM. Once we do not have enough RAM, might as well buy 
  36. >more RAM.
  37. >    Unified buffer cache? How much can we gain? CAn you tell us more
  38. >about its algorithm, especially how it decides to choose which is to give 
  39. >priority to, and how it handles the paged user memory?
  40.  
  41. Again, to be fair, a unified buffer cache is a significant advantage, in
  42. my opinion, since it allows swapping to files, among other things, with
  43. little effort (the VFS interface already supports linear block allocation
  44. with the VOP_ALLOCSTORE() operation, the major argument against swapping
  45. to files being the potential hassle of seeking all over the place).  In
  46. addition to this, a unified cache (assuming swap paged have priority)
  47. gives a built-in backoff hueristic to insure that context switches will
  48. occur, even under heavy system loading.  It also has the effect of reducing
  49. other disk I/O when the system is "swapper-bound", which provides a
  50. "scaling for hardware capability" effect.  The only control BSD has over
  51. this is the configuration of system buffers as a percentage of main
  52. memory, insufficient, in my opinion.
  53.  
  54. The "moden" VM, I'm assuming, is a reference to the fact that BSD has
  55. classically required as much swap space as there was virtual plus real
  56. memory, whereas System V VM has only required as much as there was virtual
  57. memory.
  58.  
  59. In theory, the BSD system is better because paging non-modifiable pages off
  60. of disk from the original files is slower than getting them from a unified
  61. swap partition.  It is more expensive in terms of the size of main memory
  62. worth of disk space is "wasted".  This actually should be a configuration
  63. option.  When the size of main memory exceeds the size of swap on a BSD
  64. system is when your machine crashes from running out of memory without giving
  65. an "insufficient memory" message instead.
  66.  
  67. >: Many kernel structures, such as pty's, are dynamically allocated.  This
  68. >: increases the amount of pageable memory that is available.
  69.  
  70. This is the AIX approach; where you get into trouble with this is when you
  71. "run out".  On AIX, this usually occurs when a copy-on-write page is
  72. written to, and there is insufficient memory for the copy to complete.  BSD
  73. protects you from this by requiring enough virtual+real memory for all
  74. images.  AIX simply terminates the largest image ungracefully.  I don't
  75. know what Linux does in this case, but I suspect it either does what AIX
  76. does or keeps a "page reserve" to know that it has enough memory for all
  77. processes currently in core so it can't run out.
  78.  
  79. The idea of paging from executables generally results in a slower run-time
  80. (on systems doing swapping) because the text pages for an executable are
  81. not necessarily in contiguous disk blocks; however, it *appears* more
  82. responsive because of it's ability to begin executing after loading a single
  83. page.
  84.  
  85.  
  86. As to kernel configuration, I believe we can learn a lot from SVR4 and Linux
  87. (although recompilation of every space.c per kernel rebuild seems like a waste
  88. to me, and I would be more sympathetic to a change that assembles files.i386
  89. from pieces to allow us to implement "drop in" drivers.
  90.  
  91. >How do we change its number? CAn we add pty indefinitely?
  92.  
  93. Actually, this is a simple change involving a cloning pty driver, even on
  94. BSD.
  95.  
  96. >: More "odd" hardware is supported in the stock distribution.  For 
  97. >: instance, SCSI support is there for Seagate, WD7000, Future Domain, 
  98. >: Ultrastor 14f, and Adaptec boards.
  99.  
  100. This, I truly envy.
  101.  
  102. >: There are more WhizzyFeatures (tm), such as /proc.
  103.  
  104. This is easy to write for 386BSD using VFS.  The fact that the current
  105. VFS allows the propagation of ioctl()'s through the syscall layer helps
  106. a *lot* here.  I actually wrote a simple /proc VFS for 0.0.
  107.  
  108. >: Linux supports the MSDOS file system, and can run vm86 tasks such
  109. >: as the DOS emulator, if you consider these +'s.
  110. >
  111. >Where is the source for this DOS emulator?
  112.  
  113. I would think a DOS emulator would be simply be an initialization state
  114. for the virtual 8086.  Mostly, it would be mapping the ROMs and maintaining
  115. the pre Linux (or 386BSD) boot state information.  This might require the
  116. use of 8086 ROM images, as in DOS/Merge or Merge/386.  The support for the
  117. DOS fs is arguably easy.  There are several 386BSD with working alpha code
  118. for this.  I have one myself; I'd prefer to get the boot reset translation
  119. problems out of the way so that the DOS partition table meant something to
  120. the mount before releasing it.
  121.  
  122. >: I'd say that if you want BSD, because it's BSD, or if you want 
  123. >: stable NFS NOW, and not in two weeks,  that it might be worthwhile.  
  124. >
  125. >Have you forgotten that it has the VFS(?), which is the Posix complient file
  126. >system. Or has linux used it already? What it does is to have long file names,
  127. >faster throughput because of large block sizes(4K),without much fragmentation
  128. >becaue it can go down to 1K block size as well,or am I mistaken?
  129.  
  130. Linux supports the VFS interface (which is not a very good developement
  131. system; read:
  132.  
  133. ftp.cs.ucla.edu:/pub/ficus/ucla_csd_910056.ps
  134.  
  135. which is John Heidemann's master's thesis, available via anonymous FTP
  136. for details).
  137.  
  138. VFS does not equate automatically with a POSIX file system; UFS as it is
  139. distributes in 386BSD is *mostly* POSIX compliant.  All of the UFS features
  140. mentioned are, however, good points in 386BSD's favor.
  141.  
  142. >How about performance comparisons? I've posted the results of iozone 1 to
  143. >comp.unix.bsd .
  144.  
  145. I'd be interested in this as well.
  146.  
  147.  
  148.                     Terry Lambert
  149.                     terry@icarus.weber.edu
  150.                     terry_lambert@novell.com
  151. ---
  152. Any opinions in this posting are my own and not those of my present
  153. or previous employers.
  154. -- 
  155. -------------------------------------------------------------------------------
  156.                                         "I have an 8 user poetic license" - me
  157.  Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
  158. -------------------------------------------------------------------------------
  159.