Re: LRU mechanism question

2010-07-07 Thread Jakub Łopuszański
-Original Message- From: Brian Moon [mailto:br...@moonspot.net] Sent: Tuesday, July 06, 2010 8:36 PM To: memcached@googlegroups.com Cc: siroga Subject: Re: LRU mechanism question Just to pile on, test data that is all the same size like that is probably a very bad test of memcached

Re: LRU mechanism question

2010-07-07 Thread Adam Lee
: Re: LRU mechanism question Just to pile on, test data that is all the same size like that is probably a very bad test of memcached. Most likely, all your data is not the exact same size. Brian. http://brian.moonspot.net/ On 7/6/10 5:36 PM, siroga wrote: Hi, I just started

LRU mechanism question

2010-07-06 Thread siroga
Hi, I just started playing with memcached. While doing very basic stuff I found one thing that confused me a lot. I have memcached running with default settings - 64M of memory for caching. 1. Called flushALL to clean the cache. 2. insert 100 of byte arrays 512K each - this should consume about

Re: LRU mechanism question

2010-07-06 Thread Matt Ingenthron
Hi Sergei, For various reasons (performance, avoiding memory fragmentation), memcached uses a memory allocation approach called slab allocation. The memcached flavor of it can be found here: http://code.google.com/p/memcached/wiki/MemcachedSlabAllocator Chances are, your items didn't fit

Re: LRU mechanism question

2010-07-06 Thread dormando
Here's a more succinct and to the point page: http://code.google.com/p/memcached/wiki/NewUserInternals ^ If your question isn't answered here ask for clarification and I'll update the page. Your problem is about the slab preallocation I guess. On Tue, 6 Jul 2010, Matt Ingenthron wrote: Hi

Re: LRU mechanism question

2010-07-06 Thread Marc Bollinger
Sergei, One more tidbit would be that doesn't appear in either of those links (though I'm not sure it'd necessarily be super-appropriate in either) that may throw off new users is that `flush`-based commands are only invalidating objects, _not_ clearing the data store. The above links should be

Re: LRU mechanism question

2010-07-06 Thread Brian Moon
Just to pile on, test data that is all the same size like that is probably a very bad test of memcached. Most likely, all your data is not the exact same size. Brian. http://brian.moonspot.net/ On 7/6/10 5:36 PM, siroga wrote: Hi, I just started playing with memcached. While doing

RE: LRU mechanism question

2010-07-06 Thread Sergei Bobovich
-Original Message- From: Brian Moon [mailto:br...@moonspot.net] Sent: Tuesday, July 06, 2010 8:36 PM To: memcached@googlegroups.com Cc: siroga Subject: Re: LRU mechanism question Just to pile on, test data that is all the same size like that is probably a very bad test of memcached. Most likely

Re: LRU mechanism question

2010-07-06 Thread Guille -bisho-
@googlegroups.com Cc: siroga Subject: Re: LRU mechanism question Just to pile on, test data that is all the same size like that is probably a very bad test of memcached. Most likely, all your data is not the exact same size. Brian. http://brian.moonspot.net/ On 7/6/10 5:36 PM, siroga