• vote
    2
    0 starshbhanoo | Shared With: Everyone - Jul 11 2008
    Kevin Minnick: Understanding memcached memory management

    this is dumb. caches should 'just work'. I think the default behavior should be to evict - even if that requires moving slabs around.

    the 'cache' contract is simple; puts should never fail, and no data persistence is guaranteed.

    Too many people try to use memcache as an out-of-process hashtable and not as a cache.

    Quoted: But, if we attempt to insert an item of say 15B, we will get an "out of memory" error because class 6 (the class would be of size 64B) has no items, and thus no pages have been assigned. But, all pages are currently being used, and memcached cannot allocate a 1MB page to class 6.

    You must be Hemant's friend before you can comment on this Fave.
    Send Hemant a friend request or a personal message instead.

Related Faves from hbhanoo