[Tarantool-patches] [PATCH luajit 2/2] profilers: purge generation mechanism

Sergey Bronnikov sergeyb at tarantool.org
Fri Oct 6 17:45:22 MSK 2023


On 10/6/23 17:43, Sergey Bronnikov via Tarantool-patches wrote:
> Hi, Max
>
> On 9/18/23 12:18, Maxim Kokryashkin wrote:
>> Hi, Sergey!
>> Thanks for the comments!
>> Here is the new message:
>> =======
>> profilers: purge generation mechanism
>> Since both of the profiler parsers are now processing
>> the events in a stream-like fashion, the generation
>> mechanism is excessive and can be purged. This results
>> in a significant memory consumption drop, especially
>> for the AVL-tree part.
>> Consider this script:
>> | jit.off()
>> | misc.sysprof.start{mode = 'C', interval=10}
>> | for i = 1, 1e7 do tostring(i) end
>> | misc.sysprof.stop()
>> After executing it with LuaJIT, you can parse it like this:
>> | $ time -v luajit-parse-sysprof sysprof.bin
>> So, before the patch:
>> | Maximum resident set size (kbytes): 224928
>> And after the patch:
>> | Maximum resident set size (kbytes): 32780
>> That is the 85% reduction in memory consumption.
>> Follows up tarantool/tarantool#8700
>
>
> Seems you forgot force-push to the branch.
>
Please disregard.


More information about the Tarantool-patches mailing list