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

Large/sparse file support #2

Open
hashbrowncipher opened this issue Nov 13, 2016 · 0 comments
Open

Large/sparse file support #2

hashbrowncipher opened this issue Nov 13, 2016 · 0 comments

Comments

@hashbrowncipher
Copy link
Owner

Right now we use 1/4096 of a file's size in RAM. For a 64GB file, this is 16MB. For an 8TB file, this is 2GB of RAM.

We can bound the amount of RAM used by calling mincore on parts of the file at a time. Perhaps do no more than 64GB? This would still use up to 16MB per thread, so perhaps also a global semaphore should guard overall memory usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant