Comment #5 on issue 162 by [email protected]: Starting memcached from cron
or sudo eats 1.5GB Virtual Memory
http://code.google.com/p/memcached/issues/detail?id=162
I'm not able to repro this on my set-up either:
# uname -a
Linux alex-studio 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC
2011 i686 GNU/Linux
# ./memcached -d -p 11211 -u nobody -m 2048 -c 65535 -P
/var/run/memcached/memcached.pid
# ps waux | grep mem
nobody 20429 0.0 0.0 45932 932 ? Ssl 13:09
0:00 ./memcached -d -p 11211 -u nobody -m 2048 -c 65535 -P
/var/run/memcached/memcached.pid
# killall memcached
# sudo ./memcached -d -p 11211 -u nobody -m 2048 -c 65535 -P
/var/run/memcached/memcached.pid
# ps waux | grep mem
nobody 20440 0.0 0.0 45048 928 ? Ssl 13:10
0:00 ./memcached -d -p 11211 -u nobody -m 2048 -c 65535 -P
/var/run/memcached/memcached.pid
#
In fact, the memory utilization appears to be lower when memcached is
started with sudo.