home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / next / sysadmin / 7590 < prev    next >
Encoding:
Text File  |  1993-01-23  |  2.0 KB  |  46 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: sparky!uunet!cs.utexas.edu!uwm.edu!linac!att!att!dptg!ulysses!allegra!princeton!nimaster.princeton.edu!cedman
  3. From: cedman@princeton.edu (Carl Edman)
  4. Subject: Re: NeXTs running 3.0 *probably* cannot swap to a raw partition
  5. In-Reply-To: barry@ictv.com's message of Thu, 21 Jan 1993 19:50:03 GMT
  6. To: barry@ictv.com (Barry Lustig)
  7. Message-ID: <CEDMAN.93Jan21153237@capitalist.princeton.edu>
  8. Originator: news@nimaster
  9. Sender: news@Princeton.EDU (USENET News System)
  10. Nntp-Posting-Host: capitalist.princeton.edu
  11. Organization: Princeton University
  12. References: <1993Jan21.195003.6023@ictv.com>
  13. Date: Thu, 21 Jan 1993 19:32:36 GMT
  14. Lines: 30
  15.  
  16. In article <1993Jan21.195003.6023@ictv.com> barry@ictv.com (Barry Lustig) writes:
  17.      There has been speculation recently about whether a NeXT can swap to
  18.    a raw partition or not.  I decided to do a little research on this
  19.    point and found out that you cannot.  The reason for this should be
  20.    clear from the following:
  21.  
  22.        Current directory is /
  23.        Reading symbol data from sdmach...
  24.        (no debugging symbols found)...done.
  25.        (gdb) disassemble swapon
  26.        Dump of assembler code for function swapon:
  27.        0x4068288 <swapon>:    rts
  28.        End of assembler dump.
  29.        (gdb) 
  30.  
  31.    NeXT removed the code for the swapon system call from the kernel.
  32.    They would have made life a lot easier for people if they also removed
  33.    the call from the system library.
  34.  
  35. Not quite so fast. All you found out that the BSD system call to
  36. enable swaping is a dummy call. From that one might conclude that the
  37. NeXT can not swap at all just as quickly as that it can not swap to a
  38. raw partition.  Fortunately that is not so as virtual memory is one of
  39. the system services which is provided by Mach through the mach_swapon
  40. system call and not BSD on a NeXT. And mach_swapon is _not_ a dummy
  41. call. Careful analysis of this call and its subroutines might reveal
  42. that indeed it is impossible to swap to a raw partition (as I believe
  43. it is). This analysis is left as an exercise to the reader.
  44.  
  45.         Carl Edman
  46.