acd_cli icon indicating copy to clipboard operation
acd_cli copied to clipboard

Prefetch in FUSE fs

Open Njcki opened this issue 9 years ago • 7 comments

Hi, I wondered if you can add a sort of prefetching feature. I mean if a program asks for a file starting from xxx byte then acd_cli may automatically pre-download (and store locally) from xxx to xxx+50MB, and so on...

What do you think?

Thanks

Njcki avatar Jul 23 '16 09:07 Njcki

I am curious if changing the FUSE option for readahead would help you here

msh100 avatar Jul 23 '16 14:07 msh100

Well, I've gone down a rabbit hole! I found this directory while searching around: https://tahoe-lafs.org/~warner/tahoe-reliability/contrib/fuse/impl_b/pyfuse/ -- Looks to be under the GPLv2 as well.. mirrorfs.py is almost what we are looking for, there are other bindings in there as well that was VERY interesting. maybe Ill make a mod and see how it rolls

cyberbalsa avatar Jul 26 '16 19:07 cyberbalsa

Oh and this is a thing: https://github.com/cconstantine/CacheFS

I'm 50/50 if it has any kind of expire and it needs disk checking badly to make sure it doesn't overload a disk,

cyberbalsa avatar Jul 26 '16 19:07 cyberbalsa

Or I dunno, use the proper old school tool that does everything: http://linux.die.net/man/8/cachefilesd

(Found in most repos, very easy to use and has been working well for me in the last 24 hours

cyberbalsa avatar Jul 26 '16 19:07 cyberbalsa

Cachefiled looks interesting, but I'm trying to figure out how to make ACDCLI use it. I mount ACDCLI via a screen command (to keep it in the FG) so not sure how to call it from the command line. Any Suggestions?

zenjabba avatar Jul 27 '16 21:07 zenjabba

I did a loopback NFS but I noticed that it was having issues with talking FUSE, so I scraped the idea

cyberbalsa avatar Jul 28 '16 02:07 cyberbalsa

understood. scratch that idea then ;)

zenjabba avatar Jul 28 '16 02:07 zenjabba