-
Notifications
You must be signed in to change notification settings - Fork 82
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
Write Back: Will the cache device reflush uncommitted data to core device after a system crash? #253
Comments
Thank you for your question. It depends on your configuration. First of all if you don't have your current config saved in If something would not be clear, please feel free to ask. |
hi, @mmichal10 I tried to flush manually ( -F ), but still encountered tiny data loss after that. Here is my test case:
Run this program, then Restart the cache and load dirty data by Flush dirty data, The count number inside metaFile * 4k should be equals to the size of dataFile. However the fact is that dataFile is slightly smaller (less than 1MB), that's why I assume data loss. |
Could you please tell, which version of open-cas-linux you are using? Is it 19.9? Or current master? Or any of older releases? |
@mmichal10 |
I wrote following code basing on pseudocode:
I am initializing CAS instance like below: However I am unable to reproduce your issue. Could you please take a closer look at my code and script? Are there any differences between my and your setup? |
@mmichal10 I can reproduce this issue even with your code.
My test environment:
Also tried v19.3, still able to reproduce. |
@beef9999 |
|
@beef9999 |
@beef9999 |
Fix in OCF: Open-CAS/ocf#342 |
Stats builder for ioclasses
Is there any possibility that we might lose data?
The text was updated successfully, but these errors were encountered: