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 tuned to ucore image #234

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

francoism90
Copy link
Contributor

@francoism90 francoism90 commented Feb 1, 2025

See #229 for more details.

I didn't found any post-install-ucore.sh file, is it okay to add the disable command into install-ucore.sh?

The following additional packages can be found on the Fedora repo:

 tuned-profiles-cpu-partitioning.noarch: Additional tuned profile(s) optimized for CPU partitioning
 tuned-profiles-mssql.noarch: Additional tuned profile(s) for MS SQL Server
 tuned-profiles-nfv.noarch: Additional tuned profile(s) targeted to Network Function Virtualization (NFV)
 tuned-profiles-nfv-guest.noarch: Additional tuned profile(s) targeted to Network Function Virtualization (NFV) guest
 tuned-profiles-nfv-host.noarch: Additional tuned profile(s) targeted to Network Function Virtualization (NFV) host
 tuned-profiles-nfv-host-bin.x86_64: Binaries that are needed for the NFV host Tuned profile
 tuned-profiles-openshift.noarch: Additional TuneD profile(s) optimized for OpenShift
 tuned-profiles-oracle.noarch: Additional tuned profile(s) targeted to Oracle loads
 tuned-profiles-postgresql.noarch: Additional tuned profile(s) targeted to PostgreSQL server loads
 tuned-profiles-realtime.noarch: Additional tuned profile(s) targeted to realtime
 tuned-profiles-sap.noarch: Additional tuned profile(s) targeted to SAP NetWeaver loads
 tuned-profiles-sap-hana.noarch: Additional tuned profile(s) targeted to SAP HANA loads
 tuned-profiles-spectrumscale.noarch: Additional tuned profile(s) optimized for IBM Spectrum Scale
 tuned-ppd.noarch: PPD compatibility daemon
 tuned-utils-systemtap.noarch: Disk and net statistic monitoring systemtap scripts

I do understand overlay package support will be removed at some point, but I think when you really want this, you would better built your own image/ks?

Unfortunately I don't have Fedora Silverblue running at the moment to check which are included by them.

@francoism90
Copy link
Contributor Author

francoism90 commented Feb 1, 2025

It works on my system without the additional packages as listed above:

$ systemctl status tuned
● tuned.service - Dynamic System Tuning Daemon
     Loaded: loaded (/usr/lib/systemd/system/tuned.service; enabled; preset: enabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf, 50-keep-warm.conf
     Active: active (running) since Thu 2025-01-23 12:13:34 UTC; 1 week 2 days ago
 Invocation: 53d4a5b3ae15417892a2537944c4c4c4
       Docs: man:tuned(8)
             man:tuned.conf(5)
             man:tuned-adm(8)
   Main PID: 1686 (tuned)
      Tasks: 4 (limit: 19660)
     Memory: 25.9M (peak: 26.7M)
        CPU: 1min 14.575s
     CGroup: /system.slice/tuned.service
             └─1686 /usr/bin/python3 -Es /usr/sbin/tuned -l -P

Jan 23 12:13:34 core systemd[1]: Starting tuned.service - Dynamic System Tuning Daemon...

$ tuned-adm profile
Available profiles:
- accelerator-performance     - Throughput performance based tuning with disabled higher latency STOP states
- atomic-guest                - Optimize virtual guests based on the Atomic variant
- atomic-host                 - Optimize bare metal systems running the Atomic variant
- aws                         - Optimize for aws ec2 instances
- balanced                    - General non-specialized tuned profile
- balanced-battery            - Balanced profile biased towards power savings changes for battery
- desktop                     - Optimize for the desktop use-case
- hpc-compute                 - Optimize for HPC compute workloads
- intel-sst                   - Configure for Intel Speed Select Base Frequency
- latency-performance         - Optimize for deterministic performance at the cost of increased power consumption
- network-latency             - Optimize for deterministic performance at the cost of increased power consumption, focused on low latency network performance
- network-throughput          - Optimize for streaming network throughput, generally only necessary on older CPUs or 40G+ networks
- optimize-serial-console     - Optimize for serial console use.
- powersave                   - Optimize for low power consumption
- throughput-performance      - Broadly applicable tuning that provides excellent performance across a variety of common server workloads
- virtual-guest               - Optimize for running inside a virtual guest
- virtual-host                - Optimize for running KVM guests
Current active profile: atomic-host
$ sudo tuned 
2025-02-01 19:24:43,988 INFO     tuned.daemon.application: TuneD: 2.25.0, kernel: 6.12.7-200.fc41.x86_64
2025-02-01 19:24:43,988 INFO     tuned.daemon.application: dynamic tuning is globally disabled
2025-02-01 19:24:43,990 INFO     tuned.daemon.daemon: using sleep interval of 1 second(s)
2025-02-01 19:24:43,990 INFO     tuned.profiles.loader: loading profile: atomic-host
2025-02-01 19:24:43,992 INFO     tuned.daemon.controller: starting controller
2025-02-01 19:24:43,992 INFO     tuned.daemon.daemon: starting tuning
2025-02-01 19:24:44,013 INFO     tuned.plugins.base: instance cpu: assigning devices cpu2, cpu6, cpu7, cpu0, cpu3, cpu12, cpu11, cpu4, cpu9, cpu1, cpu14, cpu15, cpu13, cpu8, cpu10, cpu5
2025-02-01 19:24:44,014 INFO     tuned.plugins.plugin_cpu: We are running on an x86 AuthenticAMD platform
2025-02-01 19:24:44,014 INFO     tuned.plugins.plugin_cpu: amd-pstate detected
2025-02-01 19:24:44,020 INFO     tuned.plugins.base: instance disk: assigning devices sdd, loop0, sdb, sdc, nvme0n1, dm-2, sda, zram0, dm-0, dm-1, dm-3
2025-02-01 19:24:44,021 WARNING  tuned.plugins.base: instance video: no matching devices available
2025-02-01 19:24:44,023 INFO     tuned.plugins.base: instance net: assigning devices enp3s0, wlp4s0
2025-02-01 19:24:44,024 INFO     tuned.plugins.plugin_cpu: setting governor 'performance' on cpu 'cpu3'
2025-02-01 19:24:44,024 INFO     tuned.plugins.plugin_cpu: setting governor 'performance' on cpu 'cpu4'
2025-02-01 19:24:44,024 INFO     tuned.plugins.plugin_cpu: setting governor 'performance' on cpu 'cpu11'
2025-02-01 19:24:44,024 INFO     tuned.plugins.plugin_cpu: setting governor 'performance' on cpu 'cpu2'
2025-02-01 19:24:44,024 INFO     tuned.plugins.plugin_cpu: setting governor 'performance' on cpu 'cpu6'
2025-02-01 19:24:44,024 INFO     tuned.plugins.plugin_cpu: setting governor 'performance' on cpu 'cpu7'
2025-02-01 19:24:44,025 INFO     tuned.plugins.plugin_cpu: setting governor 'performance' on cpu 'cpu0'
2025-02-01 19:24:44,025 INFO     tuned.plugins.plugin_cpu: setting governor 'performance' on cpu 'cpu12'
2025-02-01 19:24:44,025 INFO     tuned.plugins.plugin_cpu: setting governor 'performance' on cpu 'cpu9'
2025-02-01 19:24:44,025 INFO     tuned.plugins.plugin_cpu: setting governor 'performance' on cpu 'cpu1'
2025-02-01 19:24:44,025 INFO     tuned.plugins.plugin_cpu: setting governor 'performance' on cpu 'cpu14'
2025-02-01 19:24:44,025 INFO     tuned.plugins.plugin_cpu: setting governor 'performance' on cpu 'cpu15'
2025-02-01 19:24:44,025 INFO     tuned.plugins.plugin_cpu: setting governor 'performance' on cpu 'cpu13'
2025-02-01 19:24:44,026 INFO     tuned.plugins.plugin_cpu: setting governor 'performance' on cpu 'cpu8'
2025-02-01 19:24:44,026 INFO     tuned.plugins.plugin_cpu: setting governor 'performance' on cpu 'cpu10'
2025-02-01 19:24:44,026 INFO     tuned.plugins.plugin_cpu: setting governor 'performance' on cpu 'cpu5'
2025-02-01 19:24:44,027 INFO     tuned.plugins.plugin_cpu: Setting energy_performance_preference value 'performance' for cpu 'cpu3'
2025-02-01 19:24:44,027 INFO     tuned.plugins.plugin_cpu: Setting energy_performance_preference value 'performance' for cpu 'cpu4'
2025-02-01 19:24:44,027 INFO     tuned.plugins.plugin_cpu: Setting energy_performance_preference value 'performance' for cpu 'cpu11'
2025-02-01 19:24:44,027 INFO     tuned.plugins.plugin_cpu: Setting energy_performance_preference value 'performance' for cpu 'cpu2'
2025-02-01 19:24:44,027 INFO     tuned.plugins.plugin_cpu: Setting energy_performance_preference value 'performance' for cpu 'cpu6'
2025-02-01 19:24:44,027 INFO     tuned.plugins.plugin_cpu: Setting energy_performance_preference value 'performance' for cpu 'cpu7'
2025-02-01 19:24:44,027 INFO     tuned.plugins.plugin_cpu: Setting energy_performance_preference value 'performance' for cpu 'cpu0'
2025-02-01 19:24:44,028 INFO     tuned.plugins.plugin_cpu: Setting energy_performance_preference value 'performance' for cpu 'cpu12'
2025-02-01 19:24:44,028 INFO     tuned.plugins.plugin_cpu: Setting energy_performance_preference value 'performance' for cpu 'cpu9'
2025-02-01 19:24:44,028 INFO     tuned.plugins.plugin_cpu: Setting energy_performance_preference value 'performance' for cpu 'cpu1'
2025-02-01 19:24:44,028 INFO     tuned.plugins.plugin_cpu: Setting energy_performance_preference value 'performance' for cpu 'cpu14'
2025-02-01 19:24:44,028 INFO     tuned.plugins.plugin_cpu: Setting energy_performance_preference value 'performance' for cpu 'cpu15'
2025-02-01 19:24:44,028 INFO     tuned.plugins.plugin_cpu: Setting energy_performance_preference value 'performance' for cpu 'cpu13'
2025-02-01 19:24:44,028 INFO     tuned.plugins.plugin_cpu: Setting energy_performance_preference value 'performance' for cpu 'cpu8'
2025-02-01 19:24:44,028 INFO     tuned.plugins.plugin_cpu: Setting energy_performance_preference value 'performance' for cpu 'cpu10'
2025-02-01 19:24:44,029 INFO     tuned.plugins.plugin_cpu: Setting energy_performance_preference value 'performance' for cpu 'cpu5'
2025-02-01 19:24:44,029 INFO     tuned.plugins.plugin_vm: Not setting option 'dirty_ratio' to '40', already set.
2025-02-01 19:24:44,029 INFO     tuned.plugins.plugin_vm: Not setting option 'dirty_background_ratio' to '10', already set.
2025-02-01 19:24:44,030 INFO     tuned.plugins.plugin_sysctl: reapplying system sysctl
2025-02-01 19:24:44,030 INFO     tuned.plugins.plugin_sysctl: Overriding sysctl parameter 'fs.inotify.max_user_watches' from '65536' to '524288'
2025-02-01 19:24:44,034 INFO     tuned.daemon.daemon: static tuning from profile 'atomic-host' applied

@francoism90
Copy link
Contributor Author

francoism90 commented Feb 1, 2025

Just on final comment, if you want me to report this upstream instead (e.g. this should be added to the Fedore CoreOS image), please let me know. :)

@francoism90 francoism90 marked this pull request as ready for review February 1, 2025 19:31
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. enhancement New feature or request labels Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant