Re: [PATCH 6/6] rteval: Add --housekeeping option to reserve isolated CPUs

Tomas Glozar
2026-04-20T09:33:22Z

pá 17. 4. 2026 v 21:51 odesílatel John Kacur <jkacur@redhat.com> napsal:
>
> Add a new --housekeeping option that allows users to specify isolated CPUs
> that should be reserved for system housekeeping tasks and not used by
> rteval's measurement or load modules.
>
> Key features:
> - Validates that housekeeping CPUs are in the isolated CPU list (isolcpus)
> - Detects conflicts with explicitly specified --measurement-cpulist or
> --loads-cpulist options and exits with a clear error message
> - Filters housekeeping CPUs from both measurement and load CPU lists
> - Correctly excludes housekeeping CPUs from inverted CPU lists when only
> one of measurement/loads is specified
>
> Example usage:
> rteval --housekeeping 0-3 --measurement-run-on-isolcpus
> Reserves isolcpus 0-3 for system tasks, runs measurements on
> remaining isolated CPUs (4+) plus non-isolated CPUs
>
> Implementation:
> - systopology.py: Add validate_housekeeping_cpus() function to validate
> that housekeeping CPUs are in isolcpus
> - rteval-cmd: Add --housekeeping argument, conflict checking, filtering,
> and fix inversion logic to exclude housekeeping CPUs
>

This might be a good opportunity to additionally pin the rteval
process to the housekeeping CPUs, as well as pass them to rtla's -H
option.

Tomas