Skip to content

Reclassify data after loading IO class configuration - #1648

Merged
robertbaldyga merged 9 commits into
Open-CAS:masterfrom
Deixx:ioclass-repart
Oct 21, 2026
Merged

robertbaldyga merged 9 commits into
Open-CAS:masterfrom
Deixx:ioclass-repart

Conversation

@Deixx

@Deixx Deixx commented Apr 16, 2025

Copy link
Copy Markdown
Contributor

Requires Open-CAS/ocf#881

@Deixx
Deixx force-pushed the ioclass-repart branch 3 times, most recently from 0502b9a to 63eda37 Compare April 16, 2025 13:55
@Deixx
Deixx force-pushed the ioclass-repart branch from 63eda37 to b78d7e3 Compare June 4, 2025 10:07
@robertbaldyga
robertbaldyga force-pushed the ioclass-repart branch 2 times, most recently from f2ea902 to 3ae50b2 Compare October 21, 2026 15:19
dmadej-hw and others added 8 commits October 21, 2026 20:46
Update OCF and request repartitioning of all the IO classes when loading
IO class configuration, so that data cached under the old classification
rules is moved to the unclassified IO class and gets classified again
according to the new rules on next access. It applies also to the IO
classes that are removed from the configuration.

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
By default reclassify data from all IO classes to default.
With `--keep-classification` flag reclassify data only from
removed IO classes.

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Leave each non-default slot empty with 50% probability, so that the
generated configurations also exercise sparse IO class tables.

Make ioclass stats sections tests check only configured ioclasses.

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
@robertbaldyga
robertbaldyga merged commit 5744048 into Open-CAS:master Oct 21, 2026
5 checks passed
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.

3 participants