[Tarantool-patches] [PATCH luajit v3 0/4] memprof: group allocations on traces by trace number
Mikhail Shishatskiy
m.shishatskiy at tarantool.org
Fri Aug 20 10:05:41 MSK 2021
New patch series with Sergey's comments in mind.
Changes in v3:
- Changed comments as per review;
- Added trace address dump to avoid collisions;
- Added humanize.describe_location function (see commit
message);
- Separated memprof test into subtests to be able to skip
JIT-related tests on FreeBSD;
- Adjusted memprof test payload to lock in the behavior
(see patch message).
Benchmark update:
| ---------------------------------------------------------- |
| JIT-off, memprof-on |
| ---------------------------------------------------------- |
| BEFORE | AFTER, v2 | AFTER, v3 |
| ------------------ | ----------------- | ----------------- |
| 4.8196 (0.0194) | +0.0170 (0.0291) | -0.0801 (0.0350) |
| ---------------------------------------------------------- |
| JIT-on, memprof-on |
| ---------------------------------------------------------- |
| BEFORE | AFTER, v2 | AFTER, v3 |
| ------------------ | ----------------- | ----------------- |
| 3.1243 (0.0770) | +0.1470 (0.0320) | +0.1976 (0.0341) |
| -----------------------------------------------------------|
Issue: https://github.com/tarantool/tarantool/issues/5814
Luajit branch: https://github.com/tarantool/luajit/tree/shishqa/gh-5814-group-allocations-on-trace-by-trace-number
tarantool branch: https://github.com/tarantool/tarantool/tree/shishqa/gh-5814-group-allocations-on-trace-by-trace-number
src/Makefile.dep.original | 2 +-
src/lj_debug.c | 2 +-
src/lj_debug.h | 2 +-
src/lj_memprof.c | 75 +++++-
src/lj_memprof.h | 22 +-
.../misclib-memprof-lapi.test.lua | 252 ++++++++++++------
tools/memprof/humanize.lua | 21 +-
tools/memprof/parse.lua | 22 +-
tools/memprof/process.lua | 6 +-
tools/utils/symtab.lua | 45 +++-
10 files changed, 331 insertions(+), 118 deletions(-)
--
2.32.0
More information about the Tarantool-patches
mailing list