[Bug 281471] ASLR: jemalloc RES memory keeps on increasing until process cores

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 13 Sep 2024 18:19:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281471

Rupesh Pilania <rupeshpilania@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|Unspecified                 |13.3-RELEASE

--- Comment #8 from Rupesh Pilania <rupeshpilania@gmail.com> ---
Issue exists on 13.3 as well.
Will test on 13.4 and update

FreeBSD rpilania 13.3-RELEASE FreeBSD 13.3-RELEASE
releng/13.3-n257428-80d2b634ddf0 GENERIC amd64
root@rpilania:/home/rpilania # setenv MALLOC_CONF
"xmalloc:true,dirty_decay_ms:0,retain:false"
root@rpilania:/home/rpilania # ./mem-frag
Hello!  This program will fragment its process heap.  Run top -p 810 to follow
along!
Press Enter to continue...
  PID USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
  810 root          1  20    0    10M  2128K ttyin    2   0:00   0.00% mem-frag


500k 5KB chunks were just provisioned
Press Enter to continue...
  PID USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
  810 root          1  27    0  4898M  3033M ttyin    1   0:01   0.00% mem-frag

500k 5KB chunks were just provisioned
Press Enter to continue...

  PID USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
  810 root          1  25    0  9816M  5260M ttyin    3   0:02   0.00% mem-frag

The first allocations were just free()'d.
Press Enter to continue...


  PID USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
  810 root          1  31    0  7266M  3540M ttyin    3   0:02   0.00% mem-frag

The 2nd allocations were just free()'d.
Press Enter to continue...


  PID USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
  810 root          1  23    0  4716M  1018M ttyin    3   0:02   0.00% mem-frag

-- 
You are receiving this mail because:
You are the assignee for the bug.