Memcache is not cacheing

So you are using memcached to speed up your system. Than suddenly at some point you notice memcache is not helping anymore but is does not cache the part that has the worst impact on your system.

That´s what just has happened to me. Why is Memcache not cacheing I asked myself. Well, the default and highly recommend slabs size is 1 MB. Anything above just is not cached. Setting that limit higher with -I Xm (X being an integer) results in a warning which sounds really bad:

Starting memcached WARNING: Setting item max size above 1MB is not recommended!
Raising this limit increases the minimum memory requirements and will decrease your memory efficiency.

Hmm, not so good. Luckily I was able to downsize that particular item so that memcache stores it again.

I am still wondering if serving content from harddisk instead of RAM via memcached could be a good idea. I gotta try it one of these days. What do you think?


Leave a Reply