Re: ceph-mon cpu usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 23, 2015 at 8:39 AM, Luis Periquito <periquito@xxxxxxxxx> wrote:
> The ceph-mon is already taking a lot of memory, and I ran a heap stats
> ------------------------------------------------
> MALLOC:       32391696 (   30.9 MiB) Bytes in use by application
> MALLOC: +  27597135872 (26318.7 MiB) Bytes in page heap freelist
> MALLOC: +     16598552 (   15.8 MiB) Bytes in central cache freelist
> MALLOC: +     14693536 (   14.0 MiB) Bytes in transfer cache freelist
> MALLOC: +     17441592 (   16.6 MiB) Bytes in thread cache freelists
> MALLOC: +    116387992 (  111.0 MiB) Bytes in malloc metadata
> MALLOC:   ------------
> MALLOC: =  27794649240 (26507.0 MiB) Actual memory used (physical + swap)
> MALLOC: +     26116096 (   24.9 MiB) Bytes released to OS (aka unmapped)
> MALLOC:   ------------
> MALLOC: =  27820765336 (26531.9 MiB) Virtual address space used
> MALLOC:
> MALLOC:           5683              Spans in use
> MALLOC:             21              Thread heaps in use
> MALLOC:           8192              Tcmalloc page size
> ------------------------------------------------
>
> after that I ran the heap release and it went back to normal.
> ------------------------------------------------
> MALLOC:       22919616 (   21.9 MiB) Bytes in use by application
> MALLOC: +      4792320 (    4.6 MiB) Bytes in page heap freelist
> MALLOC: +     18743448 (   17.9 MiB) Bytes in central cache freelist
> MALLOC: +     20645776 (   19.7 MiB) Bytes in transfer cache freelist
> MALLOC: +     18456088 (   17.6 MiB) Bytes in thread cache freelists
> MALLOC: +    116387992 (  111.0 MiB) Bytes in malloc metadata
> MALLOC:   ------------
> MALLOC: =    201945240 (  192.6 MiB) Actual memory used (physical + swap)
> MALLOC: +  27618820096 (26339.4 MiB) Bytes released to OS (aka unmapped)
> MALLOC:   ------------
> MALLOC: =  27820765336 (26531.9 MiB) Virtual address space used
> MALLOC:
> MALLOC:           5639              Spans in use
> MALLOC:             29              Thread heaps in use
> MALLOC:           8192              Tcmalloc page size
> ------------------------------------------------
>
> So it just seems the monitor is not returning unused memory into the OS or
> reusing already allocated memory it deems as free...

Yep. This is a bug (best we can tell) in some versions of tcmalloc
combined with certain distribution stacks, although I don't think
we've seen it reported on Trusty (nor on a tcmalloc distribution that
new) before. Alternatively some folks are seeing tcmalloc use up lots
of CPU in other scenarios involving memory return and it may manifest
like this, but I'm not sure. You could look through the mailing list
for information on it.
-Greg
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux