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

Parallelize store action #35

Open
krichter722 opened this issue Nov 2, 2015 · 3 comments
Open

Parallelize store action #35

krichter722 opened this issue Nov 2, 2015 · 3 comments

Comments

@krichter722
Copy link

Judging from system monitor metastore -s only uses one thread. I'm naively assuming that at some point it has to walk down a file and directory tree and visit it's nodes recursively or iteratively. I propose to put file paths in a directory in groups of <= 100 into queues from which n threads can poll and create the file output which can then be written into a large buffer (in order to avoid an I/O bottleneck). In case it's necessary the output needs to be ordered all threads need a sequence number and others must not proceed until the lowest has finished (all threads have to do nothing, but stat calls which should cause quite equal load on each thread).

@przemoc
Copy link
Owner

przemoc commented Nov 2, 2015

Good idea. It's not something for upcoming v1.1, though, which is mostly meant to constitute what metastore was so far - no behavioral or bigger changes, only simple fixes.

@przemoc przemoc changed the title Parallelize metastore -s Parallelize store action Nov 2, 2015
@krichter722
Copy link
Author

Thanks for the feedback. Can you document nested for loops in mentries_tofile, please?

@przemoc
Copy link
Owner

przemoc commented Jan 19, 2016

Yes, but only after releasing v1.1.0. There won't be any documentation improvements earlier, unless someone will provide decent pull request with it.

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

No branches or pull requests

2 participants