What steps will reproduce the problem?
1. This patch seems to indicate that -k option works with -d:
http://consoleninja.net/gitweb/gitweb.cgi?p=memcached.git;a=commit;h=7391190f7ff
652e662a490d4ca0409dc33fba283
2. 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.
3. 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
What is the expected output? What do you see instead?
Expected: should give me "Cannot allocate memory" warning.
Instead: it runs normally.
What version of the product are you using? On what operating system?
1.4.15 on CentOS-6.3 with kernel 2.6.32-279.5.1.el6.x86_64
Please provide any additional information below.
Original issue reported on code.google.com by joh...@paperlesspost.com on 14 Nov 2012 at 11:37
Original issue reported on code.google.com by
joh...@paperlesspost.com
on 14 Nov 2012 at 11:37