Re: Reducing virtual memory usage of memcached

2011-02-07 Thread letmewatch.TV
Hi Dormando, Thanks for your response. On 06/02/2011 23:44, dormando wrote: I've found (part of) the answer to my own question - the virtual memory comes from the thread stacks. Setting -t 1 reduces the virtual memory to around 20MB. I've read from other posts that it is no longer possible

Re: Reducing virtual memory usage of memcached

2011-02-07 Thread Rohit Karlupia
If it helps, you could reduce the stack size on linux using ulimit -s stackSizeInKB) thanks! rohitk On Mon, Feb 7, 2011 at 1:32 PM, letmewatch.TV pay.letmewatch...@gmail.comwrote: Hi Dormando, Thanks for your response. On 06/02/2011 23:44, dormando wrote: I've found (part of) the answer

Re: Reducing virtual memory usage of memcached

2011-02-07 Thread letmewatch.TV
Rohit, Thanks for your reply. That works very well, thanks - it's now reduced to just a few MB's virtual mem. I'll need to check what stack size is appropriate for the memcached threads, but I'm guessing it's probably not more than 64 or 128KB. I'll add an issue notice to the memcached

Reducing virtual memory usage of memcached

2011-02-06 Thread lmwtv
Hi, I would like to use memcached on my VPS, which uses OpenVZ. The only problem is that OpenVZ (at least the installation that my hosts have) doesn't differentiate between virtual memory and resident memory, so all virtual memory is included in my allocation. When I start up memcached, it is

Re: Reducing virtual memory usage of memcached

2011-02-06 Thread lmwtv
I've found (part of) the answer to my own question - the virtual memory comes from the thread stacks. Setting -t 1 reduces the virtual memory to around 20MB. I've read from other posts that it is no longer possible to have a non- threaded memcached version. It appears on my system that the

Re: Reducing virtual memory usage of memcached

2011-02-06 Thread lmwtv
Hi Roberto, Thanks for responding. On Feb 6, 10:50 pm, Roberto Spadim robe...@spadim.com.br wrote: maybe a memory leak? The memory usage is just after a memcached restart, so it's not a memory leak - I'm fairly sure it's the thread stack allocation (see other post). try change memcached

Re: Reducing virtual memory usage of memcached

2011-02-06 Thread Roberto Spadim
hu you are using a virtual linux os? or the host linux os? 2011/2/6 lmwtv pay.letmewatch...@gmail.com: Hi Roberto, Thanks for responding. On Feb 6, 10:50 pm, Roberto Spadim robe...@spadim.com.br wrote: maybe a memory leak? The memory usage is just after a memcached restart, so it's not

Re: Reducing virtual memory usage of memcached

2011-02-06 Thread lmwtv
I'm using OpenVZ, which does operating-system level virtualization. I'm not using it on my desktop - it's the software that runs the virtual private server I'm hosting my websites on. Dave Allen.

Re: Reducing virtual memory usage of memcached

2011-02-06 Thread dormando
I've found (part of) the answer to my own question - the virtual memory comes from the thread stacks. Setting -t 1 reduces the virtual memory to around 20MB. I've read from other posts that it is no longer possible to have a non- threaded memcached version. It appears on my system that the

Re: Reducing virtual memory usage of memcached

2011-02-06 Thread Roberto Spadim
memcache use fork or thread? 2011/2/6 dormando dorma...@rydia.net: I've found (part of) the answer to my own question - the virtual memory comes from the thread stacks.  Setting -t 1 reduces the virtual memory to around 20MB. I've read from other posts that it is no longer possible to have a