Thread View: comp.sys.hp.hpux
2 messages
2 total messages
Started by Patrick Coghlan
Fri, 22 Apr 1994 16:34
How is shared memory address range determined
Author: Patrick Coghlan
Date: Fri, 22 Apr 1994 16:34
Date: Fri, 22 Apr 1994 16:34
8 lines
1325 bytes
1325 bytes
I notice that under HP-UX, processes that attach a region of shared memory end up with it at the same virtual address. How does UNIX manage to do this? Does it preallocate virtual address space for (max # of shared regions) regions of size (maximum region size)? Then, use the key provided by the user to map him into a specific range of virtual addresses (i.e. all users with the same key map into the same address range)?
Re: How is shared memory address range determined
Author: Ken Green
Date: Sat, 23 Apr 1994 13:05
Date: Sat, 23 Apr 1994 13:05
24 lines
2121 bytes
2121 bytes
Patrick Coghlan (coghlan@bcarh5f8.bnr.ca) wrote: > I notice that under HP-UX, processes that attach a region of shared > memory end up with it at the same virtual address. > How does UNIX manage to do this? Does it preallocate virtual address > space for (max # of shared regions) regions of size (maximum region size)? > Then, use the key provided by the user to map him into a specific range > of virtual addresses (i.e. all users with the same key map into the same > address range)? No, HP-PA uses a 48bit or 64bit global virtual address map. A process is given 4 one GB quadrant from that, one is used for text, that is shared amgost all processes running the same program. The second of these quadrants is private data, the third is for shared libraries and the 4th is for shared memory. Both quadrants 3 and 4 are shared by all processes on the system. As the to process that are shareing a peice of shared memory are actualy sharing the same part of the global address map at this point, they have no choice but to see the shared memory segment at the same address. -- __________________email Ken.Green@kgcc.demon.co.uk _____________________ Ken Green Computer Consultancy Bodega, Jasmine Cres. Princes Risborough, Bucks. HP27 0AB, U.K.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads