From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a8c96cb143ad6743 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-02-09 17:01:51 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!howland.reston.ans.net!torn!news2.uunet.ca!ionews.io.org!pci!macnamar From: macnamar@pci.on.ca (Brian MacNamara) Subject: Re: Alpha/OSF memory use Message-ID: Organization: PCI Inc. References: <1994Feb8.191854.13495@numetrix.com> Date: Thu, 10 Feb 1994 01:01:51 GMT In article <1994Feb8.191854.13495@numetrix.com> chrism@numetrix.com (Chris Malicki) writes: ... stuff deleted ... >I was wondering if anyone else has experienced, what appears to be, memory >use problems on an Alpha running OSF/1.3. The Alpha has 96MB of physical >memory of which 85MB is 'available'. The swap space is 256MB. >The application in question runs out out memory with about 25% of swap ... stuff deleted ... I'm sure the answer to this is written up in the FAQ, but with all the questions about it lately it probably warrants an answer being posted. I realize my answer below is rather a laymans way of putting it but it should get the message across. I'll leave it to the manual memorizers to put it in more acute terms. There are two ways of having virtual memory on under OSF/1: (1) the nice safe, 'over eager' method which ensures that all the memory a program might want is pre-allocated out of the swap space. The way OSF does this seems (at least to me) to get a bit carried away. The result is exactly what you see happening to you. Needless to say, this happens to be the default. (2) the second way does not even check if there is enough space to page to before allocating virtual memory to the program. For our purposes (we do imaging applications that eat memory like crazy) this way is the only reasonable approach (short of dedicating a 2Gb drive for swap space). This method does have its pitfalls -- if you allocate more virtuall memory then you have, and actually need to use it, you are likely to receive a friendly kernel panic for your trouble, so be warned. But if you are like most people, you'll either never come close, or would have suffered many times more trouble not being able to even run under the other scheme. How do you switch between them? Easy just rename the following symbolic link (to anything will do) and reboot your system: # mv /sbin/swap_default /sbin/was_swap_default Good luck.../Brian MacNamara +---------------------------------------------------------------------------+ |@@@@@@@@@@ @@@| Brian MacNamara | Email: macnamara@pci.on.ca | |@@@@@@ *** @| Sr. Tech. Manager | Tel: (905) 764-0614 | |@@@ ******* @| | Fax: (905) 764-9604 | |@@ ********* @@| PCI Inc. | | |@ ******* @@@| 50 West Wilmot St. | Committed to | |@ *** @@@@@@| Richmond Hill, Ont. | Remote Sensing | |@@@ @@@@@@@@@@| Canada L4B 1M5 | | +---------------------------------------------------------------------------+