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