-
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
Add rotational field to ocf_core struct #512
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may also want to skip sorting cache lines for non-rotational drives in the longest sorting function in the entire OCF: ocf_cleaner_sort_flush_containers()
This property is necessary if we don't want to sort cache lines or flush containers when the backend device is not an HDD. Sorting cache lines or flush containers on non-HDDs is a waste of time. Add functions to work with rotational property. Make the cleaner's cache line sorting dependent on the core volume type. If any of the core volumes is HDD, sort cache lines, otherwise do not. Minor typos fix Signed-off-by: Slawomir Jankowski <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #512 +/- ##
==========================================
- Coverage 64.65% 64.47% -0.19%
==========================================
Files 84 84
Lines 9693 9697 +4
==========================================
- Hits 6267 6252 -15
- Misses 3426 3445 +19
|
retest this please |
1 similar comment
retest this please |
Can one of the admins verify this patch? |
This property is necessary if we don't want to sort cache lines
when the backend device is not an HDD.
Sorting cache lines on non-HDDs is a waste of time.
Add functions to work with rotational property.
Make the cleaner's cache line sorting dependent on the core volume type.
If any of the core volumes is HDD, sort cache lines, otherwise do not.
Minor typos fix
Signed-off-by: Slawomir Jankowski [email protected]
Fixes #368