Memcached PHP Sessions

Steven Grimm sgrimm at facebook.com
Fri Feb 2 18:38:24 UTC 2007


Steven Grimm wrote:

> However, there is some interaction between the slab allocator and the 
> LRU logic that can alter that behavior somewhat -- basically there is 
> a separate storage "bucket" for each range of sizes of object, and the 
> expiration/LRU logic is only applied within a particular bucket. So, 
> for example, you might see a large object get LRUed out to make room 
> for a small object even though the small object has an expiration time 
> in the past, simply because there's no room left in the large-object 
> bucket. But you will only ever see that behavior when dealing with 
> objects of different size classes, never for objects of the same size.

Bah! That'll teach me to get distracted in the middle of writing a 
reply. I meant to say a large object could get LRUed out to make room 
for ANOTHER LARGE OBJECT even though a small object has an expiration 
time in the past. Sorry about that.

-Steve



More information about the memcached mailing list