From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,84546e60053e2a56 X-Google-Attributes: gidfa528,public From: waco_johnny_d@my-deja.com Subject: Re: forrtl error 41: insufficient virtual memory Date: 2000/10/05 Message-ID: <8ri0aj$1qd$1@nnrp1.deja.com>#1/1 X-Deja-AN: 677867631 References: <39DAEB8E.EC2BA0ED@fz-juelich.de> <8rf5o6$mr8$1@nnrp1.deja.com> <39DB3021.1A221B49@fz-juelich.de> <8rhkkk$oss$1@nnrp1.deja.com> <39DC7377.77E7D4CB@fz-juelich.de> X-Http-Proxy: 1.0 gateway.zk3.dec.com:8080 (Squid/2.2.STABLE5), 1.0 x65.deja.com:80 (Squid/1.1.22) for client 16.140.48.103, 206.152.163.42 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Oct 05 13:39:32 2000 GMT X-MyDeja-Info: XMYDJUIDwaco_johnny_d Newsgroups: comp.unix.tru64 X-Http-User-Agent: Mozilla/4.61 [en] (X11; U; Linux 2.2.5 i586) > 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.