On 18 Jun 2009, at 13:09, Raymond Steigerwalt wrote:
Maybe he is asking HOW memcached allocates memory?
I'm no expert but from what I understand memcached will allocate
memory in "slabs" of a fixed length. If the data to be saved is
smaller then the slab, the entire slab will be used. Once a slab is
no longer used, memcached will still hold on to this allocation in
order to re-use it at a later point in time.
With the slab allocation you also prevent fragmentation of your
memory, increasing read/write times.
If that is what is being asked, I wrote up a longer explanation here:
http://dev.mysql.com/doc/refman/5.1/en/ha-memcached-using-memory.html
MC
--
Martin MC Brown, Technical Writer
MySQL and Infrastructure Group, Sun Microsystems
http://sun.com | http://mysql.com
Phone: x18435/+44 247 669 8435 Skype: mcmcslp