[Python-Dev] Opcode cache in ceval loop (original) (raw)
Serhiy Storchaka storchaka at gmail.com
Tue Feb 2 15:07:11 EST 2016
- Previous message (by thread): [Python-Dev] Opcode cache in ceval loop
- Next message (by thread): [Python-Dev] Opcode cache in ceval loop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 02.02.16 21:23, Yury Selivanov wrote:
Alright, I modified the code to optimize ALL code objects, and ran unit tests with the above tests excluded:
-- Max process mem (rumaxrss) = 131858432 -- Opcode cache number of objects = 42109 -- Opcode cache total extra mem = 10901106
Thank you for doing these tests. Now results are more convincing to me.
And asyncio tests:
-- Max process mem (rumaxrss) = 57081856 -- Opcode cache number of objects = 4656 -- Opcode cache total extra mem = 1766681
FWIW, here are stats for asyncio with only hot objects being optimized:
-- Max process mem (rumaxrss) = 54775808 -- Opcode cache number of objects = 121 -- Opcode cache total extra mem = 43521
Interesting, 57081856 - 54775808 = 2306048, but 1766681 - 43521 = 1723160. There are additional 0.5Mb lost during fragmentation.
- Previous message (by thread): [Python-Dev] Opcode cache in ceval loop
- Next message (by thread): [Python-Dev] Opcode cache in ceval loop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]