From: macnamar@pci.on.ca (Brian MacNamara)
Subject: Re: Alpha/OSF memory use
Date: Thu, 10 Feb 1994 01:01:51 GMT [thread overview]
Message-ID: <CKzHJ4.E6p@pci.on.ca> (raw)
In-Reply-To: 1994Feb8.191854.13495@numetrix.com
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 | |
+---------------------------------------------------------------------------+
next prev parent reply other threads:[~1994-02-10 1:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-02-08 19:18 Alpha/OSF memory use Chris Malicki
1994-02-10 1:01 ` Brian MacNamara [this message]
1994-02-10 1:55 ` Gail L. Grant
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox