I have a Redhat Enterprise LAMP server, hosting a Magento site, where I recently set up tmpfs for the session directory to improve performance. The tmpfs partition is mounted with the following command:
mount -t tmpfs -o rw,noexec,nosuid,size=6144M,mode=1777,uid=48,gid=48 tmpfs /path/session
After mounting the session directory to tmpfs, the following warning is thrown in about 1% of all sessions:
Warning: session_start(): open(/path/session/sess_random_session_id, O_RDWR) failed: Protocol driver not attached (49) in /path/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 115**
I haven't been able to reproduce the error - but it occurs several times daily, according to logs.
I am running Apache v 2.2.3
and Magento v 1.4.0.1