2012-07-01
Blog moved to Wordpress
I have moved all my posts to Wordpress.com. The new home is
http://sunh11373.wordpress.com/
2012-04-25
Python multiprocessing configuration fix on Centos
The OS I am running is 2.6.27-chistyakov.1 #1 SMP Tue Dec 29 10:26:29 PST 2009 x86_64 x86_64 x86_64 GNU/Linux.  The Python multiprocessing module reported follow errors
File "/usr/lib/python2.6/multiprocessing/synchronize.py", line 49, in __init__
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 38] Function not implemented
File "/usr/lib/python2.6/multiprocessing/synchronize.py", line 49, in __init__
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 38] Function not implemented
Turned out that we need to enable the SHM on the box.  To do that, find the file /etc/fstab, add a new line
   none    /dev/shm        tmpfs   rw,nosuid,nodev,noexec  0       0
Restart the box and the SHM should be enabled now. 
Subscribe to:
Comments (Atom)
