From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,a212396af64a16bb X-Google-Attributes: gidfee84,public From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: Reserved Swap Memory Date: 1998/02/24 Message-ID: <6cvi3o$iqt@nntpd2.cxo.dec.com>#1/1 X-Deja-AN: 328314971 References: <34EDE899.CB280828@greenville.edu> Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Distribution: world Organization: Digital Equipment Corporation Newsgroups: comp.unix.osf.osf1 In article <34EDE899.CB280828@greenville.edu>, John Matthews writes: >When I do a swapon -s I get the following > > [ Irrelevant part delete... ] > >Total swap allocation: > Allocated space: 61262 pages (478MB) > Reserved space: 57792 pages ( 94%) > In-use space: 3007 pages ( 4%) > Available space: 3470 pages ( 5%) > >That reserved space is killing me! how do I adjust it, 1. By using a large page/swap device. 2. Using more page/swap devices. 3. Switching to lazy reservation mode. This could have serious drawbacks, which I'll note later. >and where is it going? Digital UNIX offers two modes page/swap reservation. The default mode reserves a page of page/swap space for every page of virtual memory created. This ensures that if the page needs to be written out, there will be space for it. The disadvantage of this method is that the system virtual memory is limited to the amount of page/swap space. The other mode doesn't reserve space and thus makes no assurance that there will be space should it be needed. The advantage of this method is that it allows the system virtual memory to be the sum of available memory and page/swap space. The disadvantage of this method is that when there is no page/swap space left to be allocated to a page that wants to be written out, the kernel looks for idle processes to kill to free up space. Neither method allocates space until a page needs to be written out. This is reflected in the difference between "In-use space" and "Reserved space".� Neither method has any particular performance advantage over the other, though "lazy" may allow more virtual memory to be used, and thus allow more paging and worse overall performance. The system selects the mode depending on whether the symbolic link /sbin/swapdefault exists and if the device it points also exists. To switch to lazy, remove the link and reboot. >Please help Some of this should be documented in the System Management documentation. -- Alan Rollow alan@nabeth.cxo.dec.com