Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
common/MemoryModel: Bump int to long and drop mallinfo #13453
mallinfo(3) doesnt have 64bit compatible version so when
Also bump up all int to long to prevent overflow oneday we
Signed-off-by: Xiaoxi Chen email@example.com
@jcsp l take another look, seems the "heap" calculation (L63-L96) is also problematic.
1. the memory allocated by TCmalloc( probably also jemalloc) are NOT taken into account, as the segment marked as "P" instead of "rw-p", in /proc//map.
tcmalloc: large alloc 1073741824 bytes == 0x2928000 @ 0x7f1457405c4c 0x7f1457424040 0x40073f 0x7f145704ff45 0x400669 (nil)
root@xiaoxi-ceph-dev-1095533:~# cat /proc/4472/maps | grep rw
2. Stack segments are taken into account and are majority contributor of this number .
root@lvs02-mds-3-1257633:~# cat /proc/16822/maps | grep stack