Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: waco_johnny_d@my-deja.com
Subject: Re: forrtl error 41: insufficient virtual memory
Date: 2000/10/05	[thread overview]
Message-ID: <8ri0aj$1qd$1@nnrp1.deja.com> (raw)
In-Reply-To: 39DC7377.77E7D4CB@fz-juelich.de


> I had thought (naively) that the entire idea behind swap space was to
> allow the aggregate of memory required by running processes to exceed
> the amount of physical memory.  By physical memory, I mean RAM - or am
> I incorrectly using terminology?  I had assumed this meant
> my programs, as well as the system and other user processes.

Right, but note the plurals which you have used correctly, as you have
done below:

> I'm now inferring from what you wrote above that I should perhaps
> encourage (require?) my programs to use physical memory (RAM?) and let
> the other processes worry using swap space to augment whatever
> physical memory space was left.  Is this a correct inferrence?

Right again.  *EACH* program (I believe) should be required, at the very
least for performance reasons, NOT to consume more than AVAILABLE (use
vmstat) physical memory.  Let's assume you have 10 programs and they're
going to run concurrently on a box with 100MB of available memory as
determined from vmstat.  EACH program could eat 95MB (you have to leave
a little so as not to trigger the "swap predictor" for one program
instance) for a total of just shy of 1GB, but I would feel very
uncomfortable if just ONE program ate up more than 95MB.  If that were
the case, the program itself would get swapped out, most certainly NOT a
good thing.  Even if you got it to work, it's very bad programming/admin
practice and I can guarantee you no I.S. manager would allow it on a
production system.

Understand that with 10 of those 95MB programs, the system would slow to
a turtle's pace because of the swapping overhead, but each program at
any given time would not be consuming more than its size in physical
memory.

Anyway, yeah, try limiting your use of physical memory to what vmstat
says you have on the system, less 5-10MB.  I believe that's the key.


Sent via Deja.com http://www.deja.com/
Before you buy.



  reply	other threads:[~2000-10-05  4:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-04  4:00 forrtl error 41: insufficient virtual memory Henry LeRoy Miller, Jr.
2000-10-04  4:00 ` waco_johnny_d
2000-10-04  4:00   ` Henry LeRoy Miller, Jr.
2000-10-04  4:00     ` Stefan Moeding
2000-10-04  4:00   ` Henry LeRoy Miller, Jr.
2000-10-05  4:00     ` waco_johnny_d
2000-10-05  4:00       ` Henry LeRoy Miller, Jr.
2000-10-05  4:00         ` waco_johnny_d [this message]
2000-10-05  4:00       ` Henry LeRoy Miller, Jr.
2000-10-05  4:00       ` Gerhard Schneider
2000-10-05  4:00         ` waco_johnny_d
2000-10-05  4:00 ` Gerhard Schneider
2000-10-06  4:00   ` Henry LeRoy Miller, Jr.
2000-10-11  4:00 ` Henry LeRoy Miller, Jr.
2000-10-11  4:00   ` waco_johnny_d
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