[comp.unix.questions] SHARED MEMORY - HOW DOES IT WORK?

michiel@bv8c02.UUCP (Michiel Wories) (10/26/90)

We are encounting the following behaviour of shmat(X, 0, 0):

The first segment the kernel gives you lies at, let's say:
0xc00000. The size of the segment is 0x80000. The NEXT segment the
kernel gives you is at 0x1000000. It leaves an unused gap between both
segments. The interleaves between all next segments will be 0x400000.

Why does our kernel behave like this? 

I can imagine it has something to do with efficient (???) memory management.

Can I tune the kernel to give me interleaves as big as the largest segment
size?

Has the tuneable parameter SHMBRK influence on this problem (I can't find 
this in any of myfm's!) ?

Thanks in advance,

 ------------------------------------------------------
| Michiel Wories @ Baan International, The Netherlands |
 ------------------------------------------------------