-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Memory hog for Linux documentation with -j1
#11124
Comments
I'm attaching CPU and memory graphs for and if I reverted the mentioned patch: So overall, the caching scheme speeds up the documentation build by 8%. However, I noticed that with |
As shown in sphinx-doc#11124, if the reading operation is using multiple processes, then the content of self.env._write_doc_doctree_cache is not synchronized with the main process. Thus use it only in serial mode. Related: sphinx-doc#11124
As shown in sphinx-doc#11124, if the reading operation is using multiple processes, then the content of self.env._write_doc_doctree_cache is not synchronized with the main process. Thus use it only in serial mode. For cpython documentation I get to the following numbers before this revision: -j1 + caching of _write_doc_doctree_cache: 95 s -j1 + not caching of _write_doc_doctree_cache: 86 s -j32 + caching of _write_doc_doctree_cache: 57 s -j32 + no caching of _write_doc_doctree_cache: 57 s Related: sphinx-doc#11124
As shown in sphinx-doc#11124, if the reading operation is using multiple processes, then the content of self.env._write_doc_doctree_cache is not synchronized with the main process. Thus use it only in serial mode. For cpython documentation I get to the following numbers before this revision: -j1 + caching of _write_doc_doctree_cache: 95 s -j1 + not caching of _write_doc_doctree_cache: 86 s -j32 + caching of _write_doc_doctree_cache: 57 s -j32 + no caching of _write_doc_doctree_cache: 48 s Related: sphinx-doc#11124
So the situation with my patch should be back to when multiple jobs are used. When it comes to |
@marxin out of interest, what did you use to make the graphs above? A |
Be my quest, it's my matplotlib-based script located here: |
Describe the bug
As shown here:
https://lore.kernel.org/all/bdd04f2e-64a4-e3ef-eb4c-3681c6f52c2f@gmail.com/
The Linux documentation build takes much more memory with
-j1
compared to5.3.0
release.I bisected that to 463a696 (one needs cherry-pick dcb4429)
How to Reproduce
make SPHINXOPTS="-q -j1" htmldocs
Environment Information
Sphinx extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: