Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Massive memory usage by CTracer #147

Closed
nedbat opened this issue Sep 8, 2011 · 3 comments
Closed

Massive memory usage by CTracer #147

nedbat opened this issue Sep 8, 2011 · 3 comments
Labels
bug Something isn't working run

Comments

@nedbat
Copy link
Owner

nedbat commented Sep 8, 2011

Originally reported by Brett Cannon (Bitbucket: brettcannon, GitHub: brettcannon)


When I run coverage over Python's stdlib (this is directly, not using allcoverage since I forgot to use the script), I end up w/ nearly 34 GB of disk space used. Now I really doubt that the .coverage file is using that much space as it was not that big at the end of the run.

So my hunch is that there is a fundamental memory leak that is leading to a massive amount of swap being put on disk. This happens on both OS X Lion and OS X Snow Leopard. When I run the coverage again using the pure Python code then it never seems to trigger a use of disk (other than writing to .coverage).


@nedbat
Copy link
Owner Author

nedbat commented Sep 8, 2011

Can you see where the disk space is going? There have been memory leaks in CTracer in the past, but not for a while, and others aren't reporting a problem. Perhaps fullcoverage torques it in some unusual way?

@nedbat
Copy link
Owner Author

nedbat commented Sep 8, 2011

Original comment by Brett Cannon (Bitbucket: brettcannon, GitHub: brettcannon)


I'll see what I can do, but FYI fullcoverage was not used to trigger this; ./python.exe -m coverage --pylib Lib/test/regrtest.py.

And just to get as much info recorded as possible, the memory hit starts with test_argparse which (I think) is the first pure Python module to be tested. And this is against CPython default so it could be a bug in CPython itself. I also wonder if this might be Python 3 related as I assume hardly anyone uses coverage.py against Python 3 quite yet.

@nedbat
Copy link
Owner Author

nedbat commented Sep 26, 2012

Fixed in <<changeset 7b050ee1103d (bb)>>.

@nedbat nedbat closed this as completed Sep 26, 2012
@nedbat nedbat added major bug Something isn't working run labels Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working run
Projects
None yet
Development

No branches or pull requests

1 participant