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

Disabling cache without flushing data #50

Open
rezass opened this issue Jun 23, 2019 · 1 comment
Open

Disabling cache without flushing data #50

rezass opened this issue Jun 23, 2019 · 1 comment

Comments

@rezass
Copy link

rezass commented Jun 23, 2019

Is there anyway to disable the cache without flushing data?
I tried to change the function call to eio_ttc_deactivate by setting the second parameter to 1. The cache is disabled, but it is not removed from the list of caches.

The other option, which I've found is using fast_remove option. Can I delete the cache with this option and then enable it again later to use the data in the cache?

@CPT-GrayWolf
Copy link

Documentation is fuzzy at best, but I have found disable and enable options in the cli that allow you to temporarily stop or start a cache without removing it's configuration.

Weather or not this will result in the cache being flushed... Well, I dug through the code for a bit, and I'm still not sure. The "disable" command does call the delete function internally, but it remains to be seen exactly how it behaves in this context. The code is rather unclear in spots, and incomplete in others. On top of that, my understanding of kernel modules is minimal, at best (though improving recently, and most of it is still just C).

It's probably best to assume it's simply dropping the cache, the same way that calling delete would (flush and remove), just keeping the configuration so that you don't have to create it again. But you can test it out and see what happens.

I'll let you know if I can find anything else out.

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

2 participants