An application requests a given amount of contiguous shared memory from the OS.
The OS dictates how large of a shared memory segment it will allow with the kernel parameter SHMMAX(Shared Memory Maximum).
If the amount of shared memory requested by the application is greater than SHMMAX, the OS may be granted the shared memory in multiple segments.
Ideally, however, you want the amount requested by the application to be less than SHMMAX so that the application's request can be fulfilled with one shared memory segment.
So bottomline simply dba ur right .
Just found a metalink note 15566.1 (if that gives a boost to your ego and inflates it to infinity :-D)
Ah. The doc as really gave some enlightenment
Just one doubt
With mutliple segements there are two possiblities.The segments can be attached contiguously, so that it appears to one large shared memory segment, or non-contiguously, with gaps between the segments.The formaer wastes less space that could be used for the stack or heap, but depending on alignment requirements for the shared memory (defined by SHMLBA in the kernel), it may not be possible
What is meant by the statement (in italics)?
There are three kinds of lies: Lies, damned lies, and benchmarks...
Unix is user friendly. It's just very particular about who it's friends are.
Bookmarks