This patch seems to indicate that -k option works with -d:
http://consoleninja.net/gitweb/gitweb.cgi?p=memcached.git;a=commit;h=7391190f7ff652e662a490d4ca0409dc33fba283


When I run without -d, I correctly get an error that I need to
increase my locked memory limit:

[root@memcache01 ~]# memcached -p 11211 -u memcached -m 1536 -c 1024 -k
warning: -k invalid, mlockall() failed: Cannot allocate memory
^CSIGINT handled.

But when I run the same command with -d, it seems to run fine, even
though I have not increased my locked memory limit:

[root@memcache01 ~]# memcached -d -p 11211 -u memcached -m 1536 -c 1024 -k
[root@memcache01 ~]# ps -ef | grep [m]emcached
496      19867     1  0 13:14 ?        00:00:00 memcached -d -p 11211
-u memcached -m 1536 -c 1024 -k

I'm running 1.4.15, and the above commit seems to be for 1.2.8. Is
there a regression?

johnny

Reply via email to