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

Cache FileSystem layout and iterate over it #91

Open
gavin-norman-sociomantic opened this issue Apr 23, 2019 · 0 comments
Open

Cache FileSystem layout and iterate over it #91

gavin-norman-sociomantic opened this issue Apr 23, 2019 · 0 comments

Comments

@gavin-norman-sociomantic
Copy link

gavin-norman-sociomantic commented Apr 23, 2019

A PR from July 2017 has been lurking unmerged in the old private dlsnode repo. Here's Nemanja's description of it:


This is a WIP patch, with lots of work still to be done in terms of tidying up code/fixing up commits (I want to start having a CI support for the final touches), so it's not yet ready for the general review.

The patch itself introduces four main things:

  • B-Tree data structure, managed on the glibc's heap and the auxiliary tools for making that possible
  • FileSystemCache used to build the initial view and track the changes of the file system. It uses the B-Tree for storing the fs' data
  • FileSystemLayout which uses the range primitives and iterates over the files in the cache, for the given range.
  • StorageEngine/StorageEngineStepIterator which now builds and uses the cache to do the iteration, instead of old directory iteration/stat method.

I downloaded the patch of the PR and tried to apply it to this repo, but it failed:

git apply 288.patch
error: patch failed: src/dlsnode/storage/BufferedBucketOutput.d:337
error: src/dlsnode/storage/BufferedBucketOutput.d: patch does not apply
error: patch failed: src/dlsnode/storage/StorageEngine.d:197
error: src/dlsnode/storage/StorageEngine.d: patch does not apply
error: patch failed: src/dlsnode/storage/BucketFile.d:18
error: src/dlsnode/storage/BucketFile.d: patch does not apply
error: patch failed: src/dlsnode/storage/iterator/StorageEngineStepIterator.d:41
error: src/dlsnode/storage/iterator/StorageEngineStepIterator.d: patch does not apply

I don't have time now to look into applying this properly, so will just upload the patch here for posterity:
288.patch.txt

Nemanja said that this is a useful PR that was tested but wasn't merged because we planned to install the DLS nodes on servers with SSDs (an alternative way of speeding up file access). He also mentioned that the BTree implementation in the patch was merged to ocean: sociomantic-tsunami/ocean#210.

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