You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
The `tuned` package now deploys and verifies custom tuned profiles in
the directory the installed tuned version actually reads from:
- tuned >= 2.23.0: `/etc/tuned/profiles`
- older tuned: `/etc/tuned`
Before this change, profiles were written only to the legacy
`/etc/tuned/<profile>` location, which tuned >= 2.23.0 no longer
searches by default (the default `profile_dirs` became the `profiles/`
subdirectories in tuned 2.23.0). On distros shipping tuned >= 2.23.0
(RHEL 9.5+, newer Ubuntu/Debian) `tuned-adm profile` could not find the
profiles.
## Changes
- `skyhook_dir/utils.sh`: new `get_tuned_version` and
`resolve_tuned_profiles_dir` helpers (the latter sets
`TUNED_PROFILES_DIR` from the installed version); refactored
`check_tuned_version_for_multiple_profiles` to reuse `get_tuned_version`
(its 2.24 multi-profile boundary is unchanged).
- `skyhook_dir/apply_tuned_profile.sh`, `apply_tuned_profile_check.sh`,
`post_interrupt_tuned_check.sh`: deploy and verify custom profiles under
the resolved directory. `/etc/tuned/scripts` (the `_script` deploy dir)
is unchanged.
- `config.json`: `package_version` 1.0.0 -> 1.3.0 (minor bump; the
release aggregates unreleased `feat(tuned)` commits since
`tuned/1.2.0`).
- `RELEASE_NOTES.md`, `README.md`: document the version-aware directory.
## Notes
- This is Part 1 of 2. Part 2 updates the `nvidia-tuned` package (which
inherits this `utils.sh` from the `tuned` base image) and will follow
after `tuned/1.3.0` is tagged and its image is published.
- After merge, tag `tuned/1.3.0` to build and publish the image.
- The Docker-based integration suite and `make validate-standalone` were
not run locally; `shellcheck` (only pre-existing SC2002 style findings)
and `make license-check` pass.
---------
Signed-off-by: Alex Yuskauskas <ayuskauskas@nvidia.com>
Copy file name to clipboardExpand all lines: tuned/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ tuned/
66
66
-**Script**: `apply_tuned_profile.sh`
67
67
-**Purpose**: Deploys custom profiles and applies the specified tuned profile
68
68
-**Process**:
69
-
1. Creates custom profile directories in `/etc/tuned/`
69
+
1. Creates custom profile directories in the tuned profiles dir (`/etc/tuned/profiles` on tuned >= 2.23, else `/etc/tuned`)
70
70
2. Copies configmap files as `tuned.conf` for each custom profile
71
71
3. Reads the target profile from `tuned_profile` configmap file
72
72
4. Applies the specified profile using `tuned-adm profile`
@@ -151,7 +151,7 @@ The package expects configmaps to be available in `${SKYHOOK_DIR}/configmaps/`:
151
151
- **Custom profile files**: Any files in the configmaps directory (except `tuned_profile` and `*_script` files) will be treated as custom tuned profile configurations
152
152
- File name becomes the profile name
153
153
- File contents become the `tuned.conf` for that profile
154
-
- Files are deployed to `/etc/tuned/<profile_name>/tuned.conf`
154
+
- Files are deployed to `<profiles_dir>/<profile_name>/tuned.conf` (`<profiles_dir>` is `/etc/tuned/profiles` on tuned >= 2.23, else `/etc/tuned`)
155
155
156
156
- **Script files**: Any files ending with `_script` will be deployed as executable scripts to `/etc/tuned/scripts/`
157
157
- File name pattern: `<name>_script` (e.g., `setup_script`, `my_optimization_script`)
@@ -343,11 +343,11 @@ Use `tuned-adm list` to see all available profiles on your system or go to [tune
343
343
344
344
2. **Profile not found**
345
345
- List available profiles: `tuned-adm list`
346
-
- Check custom profile deployment in `/etc/tuned/`
346
+
- Check custom profile deployment in the tuned profiles dir (`/etc/tuned/profiles` on tuned >= 2.23, else `/etc/tuned`)
347
347
348
348
3. **Permission errors**
349
349
- Ensure scripts run with appropriate privileges
350
-
- Check `/etc/tuned/` directory permissions
350
+
- Check tuned profiles dir permissions (`/etc/tuned/profiles` on tuned >= 2.23, else `/etc/tuned`)
0 commit comments