From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,18020f7ae4c33348,start X-Google-Attributes: gid1164f8,public From: dtmoore Subject: More questions on swap space reservation Date: 1999/05/26 Message-ID: <7ihcme$4c8$1@nnrp1.deja.com>#1/1 X-Deja-AN: 482378553 X-Http-Proxy: 1.0 x40.deja.com:80 (Squid/1.1.22) for client 152.2.48.185 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Wed May 26 17:57:35 1999 GMT Newsgroups: comp.sys.dec X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Ok ... from eariler posts I know that there are two swap space reservation modes: lazy -- reserve space only as needed ... can be risky aggressive -- reserve max. amt. of swap space at start of process and keep it reserved until process terminates Now, I have a FORTRAN77 program which contains lots of fairly large statically allocated arrays. When I run it under the agressive swap mode it eats up about a third of my swap space (101 MB), but its resident memory size is only ~6MB. My question is: Why are the resident size and swap size so different? As I understood it, the aggressive mode reserved enough space so that the entire memory image of a process could be swapped out. Well, in this case, the memory image appears to be 6.4 MB, yet it reserves about 16 times that in swap space. What exactly is it that I am confused about here? If I understand that, maybe I can modify the program so that it isn't such a swap hog. All comments/suggestions are appreciated. -- Dave Moore -- Chemistry Dept. -- UNC Chapel Hill Ford: "... eddys in the space-time continuum ..." Arthur: "So this is his sofa then, is it?" --== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.---