home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / admin / 6064 < prev    next >
Encoding:
Text File  |  1992-09-02  |  2.2 KB  |  57 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!spsgate!mogate!newsgate!wdc!mario
  3. From: mario@wdc.sps.mot.com (Mario Nigrovic)
  4. Subject: Re: minimum swap space for SunOS 4.1.x?
  5. Message-ID: <1992Sep2.165425.8390@newsgate.sps.mot.com>
  6. Sender: mario@wdc (Mario Nigrovic)
  7. Nntp-Posting-Host: 223.199.55.4
  8. Organization: Motorola Western MCU Design Center, Chandler Arizona
  9. References:  <1992Sep1.211624.9653@nsisrv.gsfc.nasa.gov>
  10. Date: Wed, 2 Sep 1992 16:54:25 GMT
  11. Lines: 44
  12.  
  13. [synopsis: Why swap > physical?  What is swap? 48Mb swap OK for
  14. 64Mb RAM? Mkfile(8) swap = normal swap?]
  15.  
  16. Here's the scoop on swapspace, at least under 4.x of SunOS:
  17.  
  18. Total available virtual memory = swap space + program space
  19.  
  20. Every page of process virtual memory must have an assigned
  21. "swap page" on disk SOMEWHERE.  For read-only pages (eg program
  22. "text" space), this swap page is on the original disk where
  23. the program resides.  For read-write pages, this will almost
  24. always be swap (the exception is mmap()ed pages, if properly
  25. configured).
  26.  
  27. This means that if I have a job I want to run, in which the
  28. executable is, say, 1.5Mb and the requested data is 4Mb, I will
  29. end up using 4Mb of my swap space for the data.
  30.  
  31. Limiting your machine to 48Mb swap space means that there is a chance
  32. that you will underutilize your physical memory.
  33.  
  34. Swap files are equivalent to swap partitions, except that if they
  35. are fragmented, performance will be much worse.
  36.  
  37. Looking at it rationally, it seems to me that with the advent of
  38. 4.1, swap CAN be less than physical since programs are not swapped
  39. to swap partitions.  This means that if you know your applications,
  40. you can tweak the swap space to optimize disk utilization.
  41.  
  42. The bottom line is, until you see processes dying from lack of swap
  43. (usually malloc(3) failures or flat out cannot create process), your
  44. swap space is adequate.
  45.  
  46. Personally, I run with GOBS of swap and stuff /tmp there.
  47.  
  48.                             Mario
  49.  
  50. Mario Nigrovic <mario@wdc.sps.mot.com>        voice: (602) 821-4264
  51. Motorola Western MCU Design Center        fax:   (602) 821-4058
  52. *  -  -  -  -  -  -  -  -  -  -  -*-  -  -  -  -  -  -  -  -  -  -  *
  53. Collaboration, n.:
  54.     A literary partnership based on the false assumption that the
  55. other fellow can spell.
  56. *  -  -  -  -  -  -  -  -  -  -  -*-  -  -  -  -  -  -  -  -  -  -  *
  57.