Project

General

Profile

Bug #17869

notmalloc package links tcmalloc

Added by Sage Weil about 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

    1  wget https://1.chacra.ceph.com/r/ceph/wip-sage-testing/164de97dfdce69d5387624fc19d64e8b219fdeed/centos/7/flavors/notcmalloc/x86_64/ceph-osd-11.0.2-1428.g164de97.el7.x86_64.rpm
    6  rpm2cpio ceph-osd-11.0.2-1428.g164de97.el7.x86_64.rpm | cpio -idmv
    7  ldd usr/bin/ceph-osd 
        linux-vdso.so.1 =>  (0x00007fff229dd000)
        libblkid.so.1 => /lib64/libblkid.so.1 (0x00007f4dc1f10000)
        libfuse.so.2 => /lib64/libfuse.so.2 (0x00007f4dc1cd3000)
        libtcmalloc.so.4 => /lib64/libtcmalloc.so.4 (0x00007f4dc1a5f000)
...

build is
2016-11-11T16:54:02.439 DEBUG:teuthology.packaging:Querying https://shaman.ceph.com/api/search?status=ready&project=ceph&flavor=notcmalloc&distros=centos%2F7%2Fx86_64&sha1=164de97dfdce69d5387624fc19d64e8b219fdeed
2016-11-11T16:54:02.628 INFO:teuthology.task.install.rpm:Pulling from https://1.chacra.ceph.com/r/ceph/wip-sage-testing/164de97dfdce69d5387624fc19d64e8b219fdeed/centos/7/flavors/notcmalloc/

from job /a/sage-2016-11-11_15:15:48-rados-wip-sage-testing---basic-smithi/540860

History

#1 Updated by Sage Weil about 6 years ago

same appears to be true for other notcmalloc packages

#2 Updated by Sage Weil about 6 years ago

debs too

#3 Updated by Nathan Cutler about 6 years ago

Though ceph is built with "notcmalloc", we have seen before that tcmalloc can get linked in via dependencies. For example, see http://tracker.ceph.com/issues/15117

#4 Updated by Sage Weil about 6 years ago

I'm pretty sure this is not cmake's fault:

 1005  mkdir build2
 1006  cd build2/
 1007  less ../debian/rules 
 1008  cmake -DALLOCATOR=libc ..
 1009  make ceph-osd
 1010  ldd bin/ceph-osd

does not link tcmalloc on my local box. My guess is that the jenkins build script isn't adding -DALLOCATOR=libc for the tcmalloc build?

#5 Updated by Sage Weil about 6 years ago

That is, I think it should be setting CEPH_EXTRA_CMAKE_ARGS="-DALLOCATOR=libc"

#6 Updated by Kefu Chai about 6 years ago

yeah, cmake prefers tcmalloc if available, then jemalloc, then falls back to the plain libc allocator if neither of them is found.

#7 Updated by Sage Weil about 6 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF