Tcmalloc (Thread-Caching memory allocation)- https://code.google.com/p/gperftools/
- ±¸±ÛÀÌ ¸¸µç ¼º´É µµ±¸¿¡ Æ÷ÇԵǾîÀÖ´Â Èü ¸Þ¸ð¸® ÇÒ´çÀڷμ Å©·Ò ¹× ¸¹Àº ÇÁ·ÎÁ§Æ®¿¡ »ç¿ë
- ±âÁ¸ÀÇ mallocÀ¸·Î ´ëÇ¥µÇ´Â ÇÒ´çÀÚÀÇ °æ¿ì ¸ÖƼ¾²·¹µåÀÇ ÃÖÀûÈ°¡ °í·ÁµÇÁö ¾ÊÀº »óȲÀÇ ±¸ÇöüÀ̱⠶§¹®¿¡, Thread°¡ ³¹«ÇÏ´Â Çö½Ç ¼¼°è¿¡¼´Â ¸¹Àº ¼º´É ÀúÇÏ°¡ ÀÖ´Ù
- ±âº» ÇÒ´ç±â¿¡ ºñÇØ ºñ¾àÀûÀÎ ¼º´É Çâ»ó
# apt-get install libtcmalloc-minimal4
Jemalloc
- Jason Evans °¡ ¸¸µé¾ú°í ÆäÀ̽ººÏÀ̳ª ÆÄÀ̾îÆø½º¿¡¼ »ç¿ë
- ¼º´ÉÀº Tcmalloc º¸´Ù ¾à°£ ÁÁ´Ù´Â...
# apt-get install libjemalloc-dev
# lsof |grep ceph-osd |grep mall
ceph-osd 6025 ceph mem REG 8,17 294776 1060687 /usr/lib/libtcmalloc.so.4.2.6
ceph-osd 6025 6032 ceph mem REG 8,17 294776 1060687 /usr/lib/libtcmalloc.so.4.2.6
ceph-osd 6025 6042 ceph mem REG 8,17 294776 1060687 /usr/lib/libtcmalloc.so.4.2.6