there a way to check how much ram us being used for caching?  Vs
overall. Were using ruby's memcache-client.  MemCache#stats gives some
stats but it seems to be the same as what ps aux tells us.

On Mar 18, 10:50 am, Dustin <[email protected]> wrote:
> On Mar 18, 10:39 am, Perrin Harkins <[email protected]> wrote:
>
> > On Wed, Mar 18, 2009 at 1:26 PM, Dustin <[email protected]> wrote:
> > >  It doesn't try very hard to reuse memory when it hasn't allocated as
> > > much as you've given it.
>
> > Sure, and I'm guessing it's not religious about making sure don't go
> > over the limit even a fraction, but there should be no significant
> > growth past the limit you set, right?  And if you store more data at
> > that point, it should drop old data to make room for it rather than
> > growing.
>
>   The memory limits you give it are specifically how much memory it's
> allowed to use for cache.  It will use additional memory for
> connections (in my tree on my system, that's 300 bytes each) and
> miscellaneous buffers (e.g. when you do stats, the response is
> buffered in a new allocation.
>
>   Some of that can actually reuse slab memory, but it doesn't
> currently.

Reply via email to