You are reading

XCache: No space left on device

Posted: June 5, 2009 | By: TJ | In Technology | One comment

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.

Comments for this entry

How do you know if its using memcache rather than files?

How do you know if its using memcache rather than files? When I set the session save path and the other part of it, it asks me to download the files. What’s wrong?

The easiest way is to tail the memcached.log. If you’ve set up verbose logging, you can watch the sessions being logged as they happen. Using something like:

$ tail -f /var/log/memecached.log

Karan

Thanks for the article, however, I get the following error when i try to run the make command: http://pastie.org/private/ndnoqi2defntxouhshtona

Any ideas? Thanks again :)

[...] is a rehash of this tutorial but for Debian [...]

[...] http://longvnit.com/blog/?p=627 http://constantshift.com/installing-apc-for-php-5-3/ CentOS 5 – PHP SSH2CentOS – soporte PHP FFMPEGCentOS 5 – Php Zend y Sql [...]

Leave your comment



Copyright © 2010. All rights reserved.

This blog is powered by WordPress and proudly hosted by (mt) Media Temple.