This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
OOM when importing large directories #1736
Labels
exp/wizard
Extensive knowledge (implications, ramifications) required
kind/bug
A bug in existing code (including security flaws)
kind/resolved-in-helia
P2
Medium: Good to have, but can wait until someone steps up
status/blocked
Unable to be worked further until needs are met
status/deferred
Conscious decision to pause or backlog
This call to
get-folder-size
can cause OOMs on large directories as theget-folder-size
module keeps a list of all the files it's seen to make sure it doesn't double-count symlinked files (for example).We only calculate the directory size to show a progress indicator - I propose we switch to an indeterminate indicator if the number of files being imported is unreasonable (say, 10k).
What do you think?
The text was updated successfully, but these errors were encountered: