From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,7b16db79222b3589,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-06-09 03:17:54 PST Path: sparky!uunet!gatech!pitt.edu!unix.cis.pitt.edu!jgh1 From: jgh1+@pmax1.cis.pitt.edu (John G Hardie) Newsgroups: comp.sys.dec Subject: VMS 5.x global sections Message-ID: <207413@unix.cis.pitt.edu> Date: 9 Jun 92 15:53:03 GMT Sender: news@unix.cis.pitt.edu Organization: University of Pittsburgh Originator: jgh1@pmax1.cis.pitt.edu Hi again. Does anyone have a nice clear simple example of creating a system global section under VMS? I would prefer that it be in C, but I'll take anything. The App: We have several people tracking particles through magnetic fields. Most of them are analyzing the same experiment and hence use the same field map. Now, this map is 3 Meg in size (reduced from 4.5 Meg originally by some sneaky tricks). In the current setup, every person doing tracking loads the map into their own address space. Our microvax has 16 Meg of ram, the tracking/analysis application takes about 2-3 meg on it's own (without the map) depending on what's being done. So, a full analyzer requires about 5-6 Meg to run. Usually, there are 2 or 3 people running this program at the same time which amounts to 10-18 Meg required for them alone. In addition, there are usually 4 or so other users running stuff. Needless to say, things swap a bit. I would like to put the magnet map in a system wide global section which each tracer can map to. This should reduce our memory requirements from 10-18 to 7-12 meg, which should also increase our throughput since we won't have to go to disk as often. --------------- Anyway, I've got the MACRO fragments from the DEC docs, and two examples of creating sections (one in FORTRAN, one in C) but all are more or less impenetrable (particularly the C which seems to have been intended for the Obfuscated C Contest ;-), none creates a system global section, and all create a new (i.e. empty) section rather than mapping to an existing file. HEEELLLLPPPP! I've been fooling around with this for a couple (ok, 1.5 on and off) days but I don't really have the time right now to figure it out myself. Thanks, John -- jgh1@vm1.cis.pitt.edu Give me chastity and continency, but do not give them yet.