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

Adopted LRU from https://github.com/cluck, tested, fixed some issues (fix of issue#20) #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wwwenca
Copy link

@wwwenca wwwenca commented Sep 30, 2017

Hi I have adopted LRU idea from https://github.com/cluck, tested, fixed some issues, especially multithreading access to LRU which caused fails. This should fix issue#20. (I have been able to copy like 100G+ with this version on my Synology NAS, so I believe it works)

… especially multithreading access to LRU which caused fails
@wwwenca wwwenca changed the title Adopted LRU from https://github.com/cluck, tested, fixed some issues,… Adopted LRU from https://github.com/cluck, tested, fixed some issues (fix of issue#20) Sep 30, 2017
@torarnv
Copy link
Owner

torarnv commented May 7, 2018

How did you test multi-threading? As in, do you have a simple testcase/usage that will result in fuse using more than one thread?

@wwwenca
Copy link
Author

wwwenca commented May 7, 2018

It has been a while, so i am not sure of the exact steps. Anyway, as far as I remember.... It was something like it was running ok in the foreground, but when I run it in the background it failed almost immediately. I started with debugging and found out that it behaved like same LRU item was used twice which I supposed to be a multithreading issue. Adding the critical sections solved the problem and stabilised the run. Then I used it for copying some large backups from the sparsebundles. They were ok, as i did compare them to the original files. Since than i had no more chance to test it.

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.

2 participants