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

Add rotational field to ocf_core struct #512

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ostrokrzew
Copy link
Contributor

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

@Ostrokrzew Ostrokrzew changed the title Add rotational field to ocf\_core struct Add rotational field to ocf_core struct Jun 9, 2021
Copy link
Member

@robertbaldyga robertbaldyga left a 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()

src/ocf_cache_priv.h Outdated Show resolved Hide resolved
src/ocf_cache.c Outdated Show resolved Hide resolved
src/ocf_core.c Outdated Show resolved Hide resolved
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
Copy link

codecov bot commented Jun 10, 2021

Codecov Report

Merging #512 (6480059) into master (1d97764) will decrease coverage by 0.18%.
The diff coverage is 75.00%.

❗ Current head 6480059 differs from pull request most recent head b856931. Consider uploading reports for the commit b856931 to get more accurate results

@@            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     
Impacted Files Coverage Δ
src/cleaning/alru.c 44.54% <0.00%> (ø)
src/mngt/ocf_mngt_flush.c 51.48% <66.66%> (-0.01%) ⬇️
src/eviction/lru.c 91.11% <100.00%> (+0.02%) ⬆️
src/mngt/ocf_mngt_cache.c 71.01% <100.00%> (+0.02%) ⬆️
src/utils/utils_cleaner.c 72.89% <100.00%> (-4.11%) ⬇️

@ArkadiuszNeumann
Copy link

retest this please

1 similar comment
@bkarpins
Copy link

bkarpins commented Apr 6, 2022

retest this please

@CAS-Linux-Jenkins
Copy link

Can one of the admins verify this patch?

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

Successfully merging this pull request may close these issues.

Disable sorting cache lines on flush for SSD cores
5 participants