[comp.sys.apollo] Memory allocation on DN3000's

thompson@calgary.UUCP (06/08/87)

I've got a few questions which perhaps some folks out there know answers to.
They are:

	1. Using DOMAIN Pascal, if I allocate some storage with the new
	   function, then allocate some more with
	   RWS_$ALLOC_HEAP_POOL(RWS_$STD_POOL, <size>), do these calls
	   allocate the storage from the same area?

	2. Assuming I am running a process on a DN3000 with 20 megabytes free
	   on it's local disk, but the process I am running is allocating 40
	   megabytes of storage, where does the process do it's paging to?

	3. What's the size limit (if any) of the RWS_$GLOBAL_POOL?

Any help with these will be greatly appreciated.

	Thankx in advance,
	Bruce Thompson

------------------------------------------------------------------------------
Bruce Thompson				| Disclaimer? But...but... I didn't
University of Calgary,			| say anything....really! Well,
Computer Science Department		| nothing of any interest anyways,
(403)220-3538 or (403)22-5109 (office)	| and besides, I wasn't awake when I
					| didn't say them!

mishkin@apollo.UUCP.UUCP (06/15/87)

    
    I've got a few questions which perhaps some folks out there know answers to.
    They are:
    
    	1. Using DOMAIN Pascal, if I allocate some storage with the new
    	   function, then allocate some more with
    	   RWS_$ALLOC_HEAP_POOL(RWS_$STD_POOL, <size>), do these calls
    	   allocate the storage from the same area?
    
Sort of.  Pascal allocates chunks from the standard RWS pool and then
maintains a free list of its own.

    	2. Assuming I am running a process on a DN3000 with 20 megabytes free
    	   on it's local disk, but the process I am running is allocating 40
    	   megabytes of storage, where does the process do it's paging to?
    
If you actually touched all 40 megabytes of storage, you would get a disk
full exception.  Can't manufacture something out of nothing.  There is no
reserved "swap space".

    	3. What's the size limit (if any) of the RWS_$GLOBAL_POOL?
    
It depends on the size of the virtual address space on the machine your
running.  On the 3000 there's about 7 MB of user-space accessible global
address space.  The global libraries live there too.  I took a quick look
and it seems that on my 3000 I have about 3MB left in that area.

                -- Nat Mishkin
                   Apollo Computer Inc.
-------