I object I answer the quesion and did not get a response.
CT
Main Topics
Browse All TopicsHi,
I'm trying to better understand how memcache's slabs work. Currently I'm storing thousands of very small items in memcache, and many are expiring way too soon. When I look at the stats, it shows memcache still has plenty of available memory.
So I'm wondering.. When memcache receives an item, and decides it should go into slab 7, does it evict items in slab 7 if that slab is full , even though memcache itself still has plenty of available memory? Or does it create a new slab, and store the item in there, leaving the existing items in slab 7 untouched?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
if the user used memcache command with -L or -f it would let the user the result the user is looking for.
You can tune the growth factor to reduce this effect by using the -f command line option. This will adapt the growth factor applied to make more effective use of the chunks and slabs allocated. For information on how to determine the current slab allocation statistics, see Section 14.5.4.2, memcached Slabs Statistics.
If your operating system supports it, you can also start memcached with the -L command line option. With this option enabled, it will preallocate all the memory during startup using large memory pages. This can improve performance by reducing the number of misses in the CPU memory cache.
CT
Business Accounts
Answer for Membership
by: ComputerTechiePosted on 2009-04-20 at 14:20:40ID: 24188834
here this should help:
http://dev.mysql.com/ doc/refman /5.1/en/ha -memcached -using-mem ory.html
CT