XCache: No space left on device
Posted: June 5, 2009 | By: TJ | In Technology | No comments yet
Recently, I’ve been trying to implement XCache on this server though I’ve run into a problem when trying to raise the xcache.size size in the php.ini file. On my previous server, I had this variable set to 64MB and had no problem. On this installation, I am unable to raise this above 16MB. If I do, I receive the following error:
$ php-cgi -v /dev/zero: No space left on device Failed creating file mappping PHP Fatal error: Failed creating file mappping in Unknown on line 0 PHP Fatal error: XCache: Cannot create shm in Unknown on line 0 PHP 5.2.6-3ubuntu4.1 with Suhosin-Patch 0.9.6.2 (cgi-fcgi) (built: Apr 23 2009 14:30:49) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with XCache v1.2.2, Copyright (c) 2005-2007, by mOo Segmentation fault
My current xcache.count is set to 8; this is defined by the output from:
$ cat /proc/cpuinfo | grep -c processor
I am also using the 64-bit version of PHP when I call the zend extension — I have used both 32 and 64-bit versions with no luck:
zend_extension = /usr/lib64/php5/20060613/xcache.so
I am still able to use XCache at the moment with the current xcache.size however I am concerned this will break at some point. If I don’t find an obvious answer, I’ll likely end up using APC for op-code caching.
Update: After setting the xcache.mmap_path = “/tmp/xcache”, the output from php-cgi -v looked much better.





