Skip to content

rbd: update cgroup v2 QoS support for krbd#6343

Open
Madhu-1 wants to merge 4 commits into
ceph:develfrom
Madhu-1:qos-enh-1
Open

rbd: update cgroup v2 QoS support for krbd#6343
Madhu-1 wants to merge 4 commits into
ceph:develfrom
Madhu-1:qos-enh-1

Conversation

@Madhu-1

@Madhu-1 Madhu-1 commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator
  • Support both systemd and cgroupfs cgroup drivers by probing candidate paths across Guaranteed, Burstable, and BestEffort QoS classes
  • Use unix.Stat syscall to obtain device major:minor instead of parsing /proc/partitions
  • update the e2e to validate the io.max file content

Madhu-1 and others added 2 commits June 16, 2026 09:34
Replace /proc/partitions parsing with syscall
to obtain the device major:minor number.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
Replace the systemd-only cgroup path lookup
with a candidate-based approach that probes
both systemd and cgroupfs driver layouts. The
new podCgroupCandidates function generates
paths for all three QoS
classes under each driver, and f
indPodCgroupPath now checks for the
io.max file directly rather than
just the directory existence.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mergify mergify Bot added the component/rbd Issues related to RBD label Jun 16, 2026
@Madhu-1

Madhu-1 commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator Author

/test ci/centos/mini-e2e/k8s-1.35/rbd

Madhu-1 and others added 2 commits June 16, 2026 14:07
when the found mounter is ErrMounterUnknown
log the warning saying the qos will be
applied only when krbd is used to
mount the volume.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
Add validateIOMax helper that verifies the
io.max file on the node contains the correct
device ID and QoS values after cgroup QoS is
applied. The validation runs inside the
csi-rbdplugin daemonset pod which has
/sys host-mounted, probing both systemd
and cgroupfs cgroup
driver layouts. All three cgroup QoS
scenarios (RWO filesystem, RWO
block, RWOP) now validate io.max content
after the app pod is created.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
@Madhu-1

Madhu-1 commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator Author

/test ci/centos/mini-e2e/k8s-1.35/rbd

@Madhu-1 Madhu-1 requested a review from a team June 19, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/rbd Issues related to RBD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants