Skip to content

Dev branch # of CPU detection error when using CPU binding #808

@tanghaodong25

Description

@tanghaodong25

Test platform

ubuntu 16.10
gcc/g++ 6.2.0
numactl 2.0.11
jemalloc commit id: 5c56603

Background

We're trying to run benchmark for ceph, a distributed objectstore, and hit some issues with jemalloc if using "numactl" to bind prcocess to specified numa node. After deep analysis, we suspected it was jemalloc problem. So we tried jemalloc "run_test.sh" with prefix "numactl --membind=0 --cpunodebind=0", it ran into error on ubuntu 16.10. We also tried ubuntu 14.04, there was no error.

Issue

=== test/unit/bitmap ===
test_bitmap_initializer (non-reentrant): pass
test_bitmap_initializer (libc-reentrant): pass
test_bitmap_initializer (arena_new-reentrant): pass
test_bitmap_size (non-reentrant): pass
test_bitmap_size (libc-reentrant): pass
test_bitmap_size (arena_new-reentrant): pass
<jemalloc>: src/jemalloc.c:402: Failed assertion: "ind <= narenas_total_get()"
Aborted
Test harness error: test/unit/bitmap w/ MALLOC_CONF=""
Use prefix to debug, e.g. JEMALLOC_TEST_PREFIX="gdb --args" sh test/test.sh test/unit/bitmap
Makefile:439: recipe for target 'check_unit' failed
make: *** [check_unit] Error 1
test_alignment_and_size (non-reentrant): pass
test_alignment_and_size (libc-reentrant): pass
test_alignment_and_size (arena_new-reentrant): pass
--- pass: 9/9, skip: 0/9, fail: 0/9 ---

=== test/integration/allocated ===
<jemalloc>: src/jemalloc.c:402: Failed assertion: "ind <= narenas_total_get()"
Aborted

Thanks,
Haodong

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions