[Python-Dev] Re: radix tree arena map for obmalloc

2019年6月18日 12:05:33 -0700

On 2019年6月17日 13:44:29 -0500
Tim Peters <[email protected]> wrote:
> 
> To illustrate, I reverted that change in my PR and ran exactly same
> thing. Wow - _then_ the 1M-arena-16K-pool PR reclaimed 1135(!) arenas
> instead of none. Almost all worse than uselessly. The only one that
> "paid" was the last: the run ended with 3361 arenas still in use
> instead of 3362. Because with the change, one entirely empty arena
> remained on the usable_arenas list.
> 
> So, word to the wise: when looking at _debugmallocstats() output, like:
> 
> # arenas allocated total = 4,496
> # arenas reclaimed = 1,135
> # arenas highwater mark = 3,362
> # arenas allocated current = 3,361
> 3361 arenas * 1048576 bytes/arena = 3,524,263,936
> 
> the number "reclaimed" isn't really telling us much: before 3.9, it
> may be telling us only how many times obmalloc wasted time on useless
> arena thrashing.
That's a very nice improvement :-)
Regards
Antoine.
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/BS4XUDVOVTB7CECA6UHWWXCUFECGAWAV/

Reply via email to