jemalloc / jemalloc/jemalloc

Heap profile dump showing zeroes.

Open
#2,334 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11.2k
Forks
1.6k
Avg merge
4d 8h
Merged PRs (30d)
13

Description

I am trying to get the heap profile dump but I am seeing zeros throughout.

I built jemalloc with the following configuration
./configure --enable-prof --disable-fill --disable-cache-oblivious --enable-prof-libgcc --with-malloc-conf=prof:true,prof_active:true,lg_prof_interval:30,lg_prof_sample:20,narenas:default,narenas_ratio:0.5,tcache_max:4096,tcache_nslots_small_max:2000,tcache_nslots_large:512,background_thread:true,metadata_thp:auto,mutex_max_spin:1000,dirty_decay_ms:5000,muzzy_decay_ms:0

and am setting environment variable - MALLOC_CONF as follows
MALLOC_CONF=prof_active:true,prof:true,lg_prof_interval:30,lg_prof_sample:20

This is the heap profile sample.

7f6fd71d6000-7f6fdc5d6000 rw-p 00000000 00:00 0
7f6fdc5d6000-7f6fdc5d7000 ---p 00000000 00:00 0
7f6fdc5d7000-7f6fdcdd7000 rw-p 00000000 00:00 0
7f6fdcdd7000-7f6fdfe57000 rw-p 00000000 00:00 0
7f6fdfe57000-7f6fdfe58000 ---p 00000000 00:00 0
7f6fdfe58000-7f6fe0658000 rw-p 00000000 00:00 0
7f6fe0658000-7f6fe0659000 ---p 00000000 00:00 0
7f6fe0659000-7f6fe0e59000 rw-p 00000000 00:00 0
7f6fe0e59000-7f6fe1e59000 rw-p 00000000 00:00 0
7f6fe1e59000-7f6fe1e5a000 ---p 00000000 00:00 0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the heap profile with the reported jemalloc configure options and MALLOC_CONF values. Compare the generated output with the supplied memory-map sample and investigate the profiling configuration and dump path. Done means identifying why the profile contains only zeroes and documenting or fixing the behavior with a verified non-zero dump.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.