Hello,

I'm fairly new to memcached and have been reading up on it for the last
couple of weeks or so, while trying to upgrade my company's current version
of memcached (1.1.12) to 1.2.5. One thing I was asked to check was to make
sure the memory is actually getting locked down when using the "-k" option.
I check this using pmap.

When I run memcached like this:

*$* sudo memcached -k -u memcache -p 11233 -vv

Running "*pmap -xas [memcached pid]*" shows numbers under the "Locked"
column, like this: http://pastebin.org/41197

However, when I run memcached in daemon mode, like this:

*$* sudo memcached-debug -k -u memcache -p 11233 -d -P
/tmp/.pid.dev.memcached125

I don't see any numbers under the Locked column, only "-", like this:
http://pastebin.org/41198

So, my question is -- why is it that running memcached in daemon mode does
not show any locked memory? I do make sure memcached is actually storing
something (setting data through the client), so it's not like the cache is
just freshly restarted and empty.

This is what uname -a tells me:

SunOS [servername] 5.10 Generic_125101-10 i86pc i386 i86pc

Also, if it helps any, I am using libevent-1.4.4 (64bit) and memcached-1.2.5
(64bit).

Thanks for your time & consideration!

Reply via email to