The behaviour of these functions is affected by settings in php.ini.
INI_SYSTEM
Here's a short explanation of the configuration directives.
sysvshm.init_mem