thanks for the answer.

Am 20.09.2007 um 07:36 schrieb dormando:

How big are your items? If they're huge...

the items are small.


Memcached doesn't return memory to the OS after an item expires. It's also a fancy LRU, so it'll deal with not having enough memory to cache all of your objects. Watch the evictions stat and your cache hits stats.

hmm, what is LRU?


If the former goes up and the latter goes down, trim your data or get more memcached's.

I see. Guess I´ll have to wait till memcache reaches the limit (which is 1 GB, in my case).

thanks,
patrick


-Dormando

patrickk wrote:
sorry if this is a stupid question, but I don´t have much experience using memcache. we launched a site 2 days ago where we use memcache with the django-framework.
we have about 10 pages in the cache.
now, the cache status is at:
# memory usage: 238.7 MB
# keys in cache: 5880 of 46353
# cache hits: 263048 of 288603: 91%
i´m a bit worried about the memory usage and the huge amount of keys in the cache. we have only 1GB for memcache altogether and about 3 days after launching the site,
240 MB are gone already.
do I have to worry about the stats or is this intended caching- behaviour?
thanks,
patrick


Reply via email to