[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

9833.0. "mapping to virtual address space" by BLAZER::MIKELIS (Software Partner's Eng. MR01-3/F26) Thu May 15 1997 10:49

How does one find out the starting address of virutal address space as
well as the ending address? DUNIX can address up to 4TB of virtual mem, 
correct? I have an ISV who is developing an app that will attempt to 
reserve a portion of the user address space.  They want
to determine the valid ranges of user address spaces, eg, 
where does user free space begin and where does it end?
/james
T.RTitleUserPersonal
Name
DateLines
9833.1sbrk?CADSYS::BOGDANOVThu May 15 1997 11:072
How about just using 'sbrk' to reserve memory starting at a currently available
lower virtual address boundary?
9833.2Let the OS do it...WTFN::SCALESDespair is appropriate and inevitable.Thu May 15 1997 20:216
Or, how about using mmap(2) and create an MAP_ANONYMOUS|MAP_VARIABLE|MAP_PRIVATE
region.  If you don't specify the starting address, the OS will place the region
for you.


				Webb
9833.3Assembly Language Programmer's Guide GIDDAY::STRAUSStalking through my binocularsThu May 15 1997 21:478
    If it's any use to you, the Assembly Language Programmer's Guide has a
    memory map diagram showing which address regions aree used for what.
    
    Look around section 6.5    Memory Allocation
    
    Hope this helps
    
    	leon
9833.4SMURF::DENHAMDigital UNIX KernelFri May 16 1997 10:433
    There's an example of how to use the Mach vm_region call (undocumented
    and unsupported, I might add) in here somewhere. Could be helpful
    depending on what the real goal of all this is....