home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: vmsnet.internals
- Path: sparky!uunet!cs.utexas.edu!uwm.edu!caen!nic.umass.edu!amherst!amherst.edu!jwmanly
- From: jwmanly@amherst.edu
- Subject: RE: VMS Memory Management/PGFLQUOTA question
- Message-ID: <1992Jul23.153406.1@amherst.edu>
- Lines: 42
- Sender: usenet@amhux2.amherst.edu (USENET News System)
- Nntp-Posting-Host: amh.amherst.edu
- Organization: Amherst College, Amherst Mass.
- References: <51000F6F_00057EE8.0095DF402228FBE0$6_1@UK.AC.KCL.PH.IPG>
- Date: Thu, 23 Jul 1992 19:34:06 GMT
-
- >> What I would like to do is reserve a large (VERY large) segment of virtual
- >> address space for my exclusive use in an image. We're talking a quarter of a
- >> gigabyte or so here.
-
- > I don't really understand the rationale behind the details of the question.
- > Why is it desired to greate a quarter-Gbyte address space that is reserved
- > against use by system routines, but not associated with backing store? The
- > only thing I can think of is come sort of very sparsely populated matrix,
- > but there are better ways to code these as linked lists...
-
- You are basically correct. It's not actually a matrix but it is a large
- yet extremely sparse data structure. If you like, though, you can think
- of it as a huge matrix. HOWEVER, I don't have control over how the matrix
- cells are accessed. Think of me as a lowly library routine responsible only
- for creating this monstrosity.
-
- The matrix has to look to the user as if it really is all there, but my code
- fields the access violations on non-existent pages (using a condition handler
- in the secondary vector or something), do a $CRETVA on the pages as they are
- accessed, and continue.
-
- > Suggestion for DEC: It would be very nice indeed if a user could attach a
- > private pagefile to a process from DCL, which would then be used instead
- > of (or rather, in preference to) the system pagefile, until the process
- > is deleted. Would it be very hard to do? Certainly, it's a real hassle
- > when you buy binary code that needs lots of VM and know that if three or
- > so users happen to run it simultaneously, your pagefile will be full...
-
- This certainly would be a win, though I suspect that implementing it might be
- tough for the VMS folks. An easier way to get this functionality, though,
- would be to somehow intercept $EXPREG calls (Ehud Gavron's system vector
- patcher might be useful here) and convert them into $CRMPSC calls with the
- EXPREG bit set, but mapping the region to some portion of a user file (such as
- SYS$LOGIN:PAGEFILE.SYS) instead of the page file.
-
- Then all the image's $EXPREG calls (including all LIB$GET_VM calls) will return
- space mapped to an area of this file instead of chargeing your pagefile quota.
-
- Comments, anyone?
-
- - John W. Manly <JWMANLY@AMHERST.EDU> (System Manager -- Amherst College)
-
-