Questions and Answers : Macintosh : Fixing Error Code 6: Could not create shared memory region
You may notice that some Macs have been crashing models with an Error Code 6 \"Could not create shared memory region\" error (as in the following example):
Over Outcome Client error Client state Computing Exit status 6 (0x6) CPU time 0 stderr out <core_client_version>5.8.17</core_client_version> <![CDATA[ <message> process exited with code 6 (0x6) </message> <stderr_txt> shmget: No such file or directory shmget: Cannot allocate memory Could not create shared memory region 175095, 655060 Error in creating shared memory region! </stderr_txt> ]]>
The problem is that by default the Mac allocates only a small amount of shared memory segments. Each Boinc task requires one, and it is easy to run out. It is most likely to happen on high-end Mac Pro systems (with 4 or 8 cores), simply because they will be running more Boinc tasks.
It is easy to increase the amount of shared memory, which will resolve the problem.
The following is a quote from SPYHILL : Configuring Shared Memory on Mac OS X
Shared memory is a form of Inter-Process Communication (IPC). Separate programs running on the same computer are able to communicate with each other by reading from and writing to a commonly allocated memory block.
adempster has kindly experimented with this solution on his Mac, and it resolved the problem of climate models crashing.
This problem has been discussed elsewhere, see these threads for further reading:
BoincDev forum: Mac OS X: Can\'t destroy/create shared memory
BoincDev forum: Intel Mac shared memory issue
FinkProject: Shared Memory Regions on Darwin
|ID: 29271 ·|
\"Charlie Fenton\" wrote:
I'm a volunteer and my views are my own.
News and Announcements and FAQ
|ID: 29388 ·|
Questions and Answers :
Fixing Error Code 6: Could not create shared memory region