home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / aux / 4585 < prev    next >
Encoding:
Text File  |  1993-01-09  |  2.4 KB  |  48 lines

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