Skip to content
Snippets Groups Projects
Commit 19948429 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

upgrade: no longer keep all revlogs in memory at any point

Keeping all object open is unsustainable, so we will open them on demand. This
mean opening them multiple times, but this is a lesser evil.

Each revlog consume a small amount of memory (index content, associated nodemap,
etc). While there are few "big" revlog, the sheer amount of small filelog can
become a significant issue memory wise, consuming multiple GB of memory.  If you
combines this extra usage with the use of multiprocessing, this usage can
quickly get out of control. This can effectively block the upgrade of larger
repository. This changeset fixes this issue.
parent 5f22c92d
No related branches found
No related tags found
2 merge requests!300branching: merge stable into default,!282fix repo-upgrade memory usage
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment