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