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

Chunking open_many calls to prevent open file bloat. #15

Merged
merged 1 commit into from
Jul 6, 2015

Conversation

maxhutch
Copy link

@maxhutch maxhutch commented Jul 6, 2015

When prefetching, the list of keys to load are chunked
up to prevent open_many from opening too many files
simultaneously.

On my system, the user file limit was 1024, so I set it to 512.

This should resolve #14.

When prefetching, the list of keys to load are chunked
up to prevent open_many from opening too many files
simultaneously.

On my system, the user file limit was 1024, so I set it to 512.
maxhutch added a commit that referenced this pull request Jul 6, 2015
Chunking open_many calls to prevent open file bloat.
@maxhutch maxhutch merged commit a113ca8 into blaze:master Jul 6, 2015
@@ -15,6 +15,7 @@
import hashlib

DEFAULT_AVAILABLE_MEMORY = 1e9
MAX_OPEN_FILES = 512
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mac OS-X may be more restrictive here. Suggest 100

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

Successfully merging this pull request may close these issues.

Prefetch opens too many files
2 participants