Thanks Brian. It seems to be working well with -L. -Weijun
-----Original Message----- From: Brian Moon [mailto:br...@moonspot.net] Sent: Wednesday, April 07, 2010 1:01 PM To: memcached@googlegroups.com Cc: Weijun Li Subject: Re: Does -k lock more memory that what I specified in -m ? The -m value is the amount of space memcached will use for key/value storage. So, there is overhead for the daemon and connections. Brian. -------- http://brian.moonspot.net/ On 4/7/10 1:32 AM, Weijun Li wrote: > Hello everyone, > > I started memcached with: > > memcached -u root -k -d -m 4000 -v>>m.log 2>&1 > > and after I inserted tens of millions of keys, the "top" command shows > that the "RES" memory of memcached is about 5.5GB which is much more > than what I specified with "-m". I think "RES" is the amount of what > memcached has locked because this number kept increasing when I was > inserting keys. So is this desired behavior of memcached? Should > memcached obey to the "-m" memory limit when you turned on memory > lock? > > Thanks, > > -Weijun > > -- To unsubscribe, reply using "remove me" as the subject.