A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-February/143056.html below:

[Python-Dev] Opcode cache in ceval loop

[Python-Dev] Opcode cache in ceval loopYury Selivanov yselivanov.ml at gmail.com
Tue Feb 2 12:45:55 EST 2016
On 2016-02-02 12:41 PM, Serhiy Storchaka wrote:
> On 01.02.16 21:10, Yury Selivanov wrote:
>> To measure the max/average memory impact, I tuned my code to optimize
>> *every* code object on *first* run.  Then I ran the entire Python test
>> suite.  Python test suite + standard library both contain around 72395
>> code objects, which required 20Mb of memory for caches.  The test
>> process consumed around 400Mb of memory.  Thus, the absolute worst case
>> scenario, the overhead is about 5%.
>
> Test process consumes such much memory because few tests creates huge 
> objects. If exclude these tests (note that tests that requires more 
> than 1Gb are already excluded by default) and tests that creates a 
> number of threads (threads consume much memory too), the rest of tests 
> needs less than 100Mb of memory. Absolute required minimum is about 
> 25Mb. Thus, the absolute worst case scenario, the overhead is about 100%.
Can you give me the exact configuration of tests (command line to run) 
that would only consume 25mb?

Yury
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4