Article

How to create Additional Segments with the EXTSHM Environment Variable on AIX

« Go Back

Information

 
EnvironmentIBM AIX
Question/Problem Description
How to create Additional Segments with the EXTSHM Environment Variable on AIX
Turns on the extended shared memory facility
EXTSHM setting additional segment shared memory
how to tune EXTSHM on IBM AIX 4.2.1 and later
Clarifying Information
Error Message
Defect/Enhancement Number
Cause
Resolution

values:

Default: Not set 
Possible Value: ON

Display:

  1. echo $EXTSHM
  2. To Change:
  3. EXTSHM=ON export EXTSHM
  4. Change takes effect immediately in this shell. Change is effective until logging out of this shell.
  5. Permanent change is made by adding EXTSHM=ON command to the /etc/environment file.

Workaround
Notes

AIX version 4.2.1 introduced the EXTSHM environment variable that allows a process to attach to more than 11 shared memory segments.  When this environment variable is set to "ON", it is possible to attach multiple shared memory segments within the same 256 MB region.  Rather than beginning on a region boundary, these shared memory segments begin on a (typically 4K) page boundary, which allows the creation of thousands of shared memory segments per region.  Only those programs that require access to more than 11 shared memory segments should set the EXTSHM variable, since this causes reduced performance for memory access.

64-bit processes do not need to set this variable since a very large number of segments is available

For more details on AIX memory addressing and the EXTSHM environment variable:
See the AIX shmat() man page
IBM manual:
General Programming Concepts, Writing and Debugging Programs (AIX documentation  can be found on IBM's Web site).

Attachment 
Feedback
 
Was this article helpful?

   

Your feedback is appreciated.

Please tell us how we can make this article more useful.



Characters Remaining: 255

 



Copyright © 1993-2014. Progress Software Corporation. All Rights Reserved.
Previous MonthNext Month
SunMonTueWedThuFriSat