Fixed memory allocation for shared memory.