home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aux
- Path: sparky!uunet!gatech!destroyer!ncar!noao!noao.edu!tody
- From: tody@noao.edu (Doug Tody)
- Subject: Re: SWAP size for 20MB IIci?
- Message-ID: <1993Jan9.225116.18441@noao.edu>
- Sender: news@noao.edu
- Nntp-Posting-Host: lepus.tuc.noao.edu
- Reply-To: tody@noao.edu
- Organization: National Optical Astronomy Observatories
- References: <1356@jagubox.gsfc.nasa.gov> <C0Jtzq.ELv@Novell.COM> <1993Jan9.173034.12446@noao.edu> <1367@jagubox.gsfc.nasa.gov> <1368@jagubox.gsfc.nasa.gov>
- Date: Sat, 9 Jan 1993 22:51:16 GMT
- Lines: 34
-
- In article <1368@jagubox.gsfc.nasa.gov>, jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes:
- > I ramble:
- >
- > >tody@noao.edu (Doug Tody) writes:
- >
- > >>This is what I thought too, but swap appears to work differently under A/UX
- > >>than most UNIX systems. On most UNIX systems I have seen swap space is
- > >>allocated when virtual memory is allocated to a process; every time you run
- > >>a process or do a malloc in the process you see the available swap space
- > >>decrease. On A/UX however, if you can believe swap -l, NO swap space is
- > >>used until the total virtual memory usage exceeds the physical memory
- > >>available. Hence if you have vast amounts of physical memory, little or no
- > >>swap is used.
- >
- > >One must recall that A/UX (as well as other "newer" :) Unices) perform both
- > >swapping and paging...
-
- Well, of course. I was referring mainly to differences in how these systems
- handle paging of virtual memory. UNIX systems use the swap area for paging
- as well as swap; for a virtual memory system swapping and paging are closely
- related. Most UNIX systems preallocate space in the swap area for paging
- when memory is *allocated* by a process - whether or not the process has any
- writable pages paged out. On a busy system this guarantees that the space
- will be there when if and when it is needed. A/UX is unusual in that it
- appears to wait until physical memory is exhausted, i.e., until it actually
- has to page something out, before allocating space in the swap area. On
- most UNIX systems, as someone said earlier, one typically allocates
- something like 2 times the physical memory for swap, e.g., 40-80 Mb or even
- more on some systems. A/UX appears to be able to make do with much less
- swap space and swap usage tends to decrease as the physical memory increases.
-
- --
- Doug Tody National Optical Astronomy Observatories
- tody@noao.edu P.O. Box 26732, Tucson, Arizona, 85726
-