Comments (2)
Eviction of clean data is by design pretty cheap (and there are also eviction performance improvements coming in the next major release), so the feature you are looking for is manual cache flushing, which is currently available to some extent with casadm -F
command. It's not currently possible to choose how much data is to be flushed (flushing is done till 100% of data is clean, but the operation can be manually interrupted at any moment). So there definitely is a room for improvement, and we are currently considering adding such feature. Thanks for your insight!
from ocf.
Hi @tconrado,
our cli utility provides commands which may be suitable for your use case. casadm --script --purge-cache --cache-id <cache-id>
invalidates all the data from a particular cache and casadm --script --purge-cache --cache-id <cache-id> --core-id <core-id>
invalidates all the data from one core from the cache instance.
We suggest a command to evict up a cache percentage defined by while casting the command
Implementing such a command would require a lot of effort, however we can extend the existing one so user would have a possibility to specify ioclass id which should be invalidated. Let us know if you find such a scenario useful.
from ocf.
Related Issues (20)
- [ocf env] The completion order is not correct. HOT 1
- Crash during failover standby initialization: BUG_ON() in metadata_raw.c:276
- [Enhancement] Need for larger cache-line size
- [Feature requirement] Support extra read on core to warm cache HOT 9
- ocf_io_set_data() does not accept offset != 0
- Make it possible to configure promotion policy separately for reads and writes HOT 1
- Memory Leak for seq cutoff initialization HOT 3
- Sporadically pyocf Queue will raise RuntimeException in test HOT 1
- Cache exported object returns error from submit_flush() if no data set in io
- Provide API to query metadata hit
- Add support for bigger cache line sizes
- Add inteligent cache prefetch
- BUG() in cleaning_policy_acp_init_common() during activate (acp.c:288)
- inaccuracies in sequential cutoff promotion logic
- Cannot copy large file into VM when using OCF in SPDK
- OCF hangs after a very specific I/O pattern
- OCF crashes on big flush requests
- OCF doesn't properly identify sequential IO and splits cache requests HOT 1
- If eviction failed, clean data from any partition
- Is open cas ocf continuously maintained and updated? Or has open cas ocf become an abandoned project? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocf.