From 72e20874d54e20f559261958f8c83e46e1cdb5ad Mon Sep 17 00:00:00 2001 From: Crono <39300993+EPOCHvoyager@users.noreply.github.com> Date: Sun, 2 Feb 2025 04:39:28 -0300 Subject: [PATCH 1/3] chore(TuneD): Move tweaks to inherit upstream (#2227) - This should lower the maintenance burden in automatically keeping up with upstream changes to the default profiles. --- .../desktop/shared/etc/tuned/ppd.conf | 14 ++++ .../profiles/balanced-bazzite/tuned.conf | 26 +++++++ .../throughput-performance-bazzite/tuned.conf | 26 +++++++ .../lib/tuned/profiles/balanced/tuned.conf | 48 ------------ .../throughput-performance/tuned.conf | 73 ------------------- 5 files changed, 66 insertions(+), 121 deletions(-) create mode 100644 system_files/desktop/shared/etc/tuned/ppd.conf create mode 100644 system_files/desktop/shared/etc/tuned/profiles/balanced-bazzite/tuned.conf create mode 100644 system_files/desktop/shared/etc/tuned/profiles/throughput-performance-bazzite/tuned.conf delete mode 100644 system_files/desktop/shared/usr/lib/tuned/profiles/balanced/tuned.conf delete mode 100644 system_files/desktop/shared/usr/lib/tuned/profiles/throughput-performance/tuned.conf diff --git a/system_files/desktop/shared/etc/tuned/ppd.conf b/system_files/desktop/shared/etc/tuned/ppd.conf new file mode 100644 index 0000000000..f62bf372f4 --- /dev/null +++ b/system_files/desktop/shared/etc/tuned/ppd.conf @@ -0,0 +1,14 @@ +[main] +# The default PPD profile +default=balanced +battery_detection=true + +[profiles] +# PPD = TuneD +power-saver=powersave +balanced=balanced-bazzite +performance=throughput-performance-bazzite + +[battery] +# PPD = TuneD +balanced=balanced-battery diff --git a/system_files/desktop/shared/etc/tuned/profiles/balanced-bazzite/tuned.conf b/system_files/desktop/shared/etc/tuned/profiles/balanced-bazzite/tuned.conf new file mode 100644 index 0000000000..fc4e13a8bf --- /dev/null +++ b/system_files/desktop/shared/etc/tuned/profiles/balanced-bazzite/tuned.conf @@ -0,0 +1,26 @@ +# +# tuned configuration +# + +[main] +summary = General non-specialized tuned profile with added Bazzite tweaks +include = balanced + +[audio] +# See 17c869d +timeout=0 + +[sysctl] +# The swappiness parameter controls the tendency of the kernel to move +# processes out of physical memory and onto the swap disk. +# 0 tells the kernel to avoid swapping processes out of physical memory +# for as long as possible +# 100 tells the kernel to aggressively swap processes out of physical memory +# and move them to swap cache +vm.swappiness = 180 + +vm.watermark_boost_factor = 0 +vm.watermark_scale_factor = 125 +vm.dirty_bytes = 268435456 +vm.dirty_background_bytes = 134217728 +vm.page-cluster = 0 diff --git a/system_files/desktop/shared/etc/tuned/profiles/throughput-performance-bazzite/tuned.conf b/system_files/desktop/shared/etc/tuned/profiles/throughput-performance-bazzite/tuned.conf new file mode 100644 index 0000000000..79fe8772bc --- /dev/null +++ b/system_files/desktop/shared/etc/tuned/profiles/throughput-performance-bazzite/tuned.conf @@ -0,0 +1,26 @@ +# +# tuned configuration +# + +[main] +summary = General non-specialized tuned profile with added Bazzite tweaks +include = throughput-performance + +[audio] +# See 17c869d +timeout=0 + +[sysctl] +# The swappiness parameter controls the tendency of the kernel to move +# processes out of physical memory and onto the swap disk. +# 0 tells the kernel to avoid swapping processes out of physical memory +# for as long as possible +# 100 tells the kernel to aggressively swap processes out of physical memory +# and move them to swap cache +vm.swappiness = 180 + +vm.watermark_boost_factor = 0 +vm.watermark_scale_factor = 125 +vm.dirty_bytes = 268435456 +vm.dirty_background_bytes = 134217728 +vm.page-cluster = 0 diff --git a/system_files/desktop/shared/usr/lib/tuned/profiles/balanced/tuned.conf b/system_files/desktop/shared/usr/lib/tuned/profiles/balanced/tuned.conf deleted file mode 100644 index ba1ef5b020..0000000000 --- a/system_files/desktop/shared/usr/lib/tuned/profiles/balanced/tuned.conf +++ /dev/null @@ -1,48 +0,0 @@ -# -# tuned configuration -# - -[main] -summary=General non-specialized tuned profile - -[modules] -cpufreq_conservative=+r - -[cpu] -priority=10 -governor=conservative|powersave -energy_perf_bias=normal -energy_performance_preference=balance_performance -boost=1 - -[acpi] -platform_profile=balanced - -[audio] -timeout=0 - -[video] -radeon_powersave=dpm-balanced, auto -panel_power_savings=0 - -[disk] -# Comma separated list of devices, all devices if commented out. -# devices=sda - -[sysctl] -# The swappiness parameter controls the tendency of the kernel to move -# processes out of physical memory and onto the swap disk. -# 0 tells the kernel to avoid swapping processes out of physical memory -# for as long as possible -# 100 tells the kernel to aggressively swap processes out of physical memory -# and move them to swap cache -vm.swappiness=180 - -vm.watermark_boost_factor=0 -vm.watermark_scale_factor=125 -vm.dirty_bytes=268435456 -vm.dirty_background_bytes=134217728 -vm.page-cluster=0 - -[scsi_host] -alpm=medium_power diff --git a/system_files/desktop/shared/usr/lib/tuned/profiles/throughput-performance/tuned.conf b/system_files/desktop/shared/usr/lib/tuned/profiles/throughput-performance/tuned.conf deleted file mode 100644 index 4801cb9086..0000000000 --- a/system_files/desktop/shared/usr/lib/tuned/profiles/throughput-performance/tuned.conf +++ /dev/null @@ -1,73 +0,0 @@ -# -# tuned configuration -# - -[main] -summary=Broadly applicable tuning that provides excellent performance across a variety of common server workloads - -[variables] -thunderx_cpuinfo_regex=CPU part\s+:\s+(0x0?516)|(0x0?af)|(0x0?a[0-3])|(0x0?b8)\b - -[cpu] -governor=performance -energy_perf_bias=performance -min_perf_pct=100 -energy_performance_preference=performance - -[acpi] -platform_profile=performance - -[audio] -timeout=0 - -# Marvell ThunderX -[vm.thunderx] -type=vm -uname_regex=aarch64 -cpuinfo_regex=${thunderx_cpuinfo_regex} -transparent_hugepages=never - -[disk] -# The default unit for readahead is KiB. This can be adjusted to sectors -# by specifying the relevant suffix, eg. (readahead => 8192 s). There must -# be at least one space between the number and suffix (if suffix is specified). -readahead=>4096 - -[sysctl] -# PID allocation wrap value. When the kernel's next PID value -# reaches this value, it wraps back to a minimum PID value. -# PIDs of value pid_max or larger are not allocated. -# -# A suggested value for pid_max is 1024 * <# of cpu cores/threads in system> -# e.g., a box with 32 cpus, the default of 32768 is reasonable, for 64 cpus, -# 65536, for 4096 cpus, 4194304 (which is the upper limit possible). -#kernel.pid_max = 65536 - -# The swappiness parameter controls the tendency of the kernel to move -# processes out of physical memory and onto the swap disk. -# 0 tells the kernel to avoid swapping processes out of physical memory -# for as long as possible -# 100 tells the kernel to aggressively swap processes out of physical memory -# and move them to swap cache -vm.swappiness=180 - -vm.watermark_boost_factor=0 -vm.watermark_scale_factor=125 -vm.dirty_bytes=268435456 -vm.dirty_background_bytes=134217728 -vm.page-cluster=0 - -# The default kernel value 128 was over twenty years old default, -# kernel-5.4 increased it to 4096, thus do not have it lower than 2048 -# on older kernels -net.core.somaxconn=>2048 - -# Marvell ThunderX -[sysctl.thunderx] -type=sysctl -uname_regex=aarch64 -cpuinfo_regex=${thunderx_cpuinfo_regex} -kernel.numa_balancing=0 - -[video] -panel_power_savings=0 From 86b89cc882252e527875f381777295ca59ab14f8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 2 Feb 2025 21:46:02 -0800 Subject: [PATCH 2/3] chore(deps): update hhd-dev/rechunk action to v1.1.3 (#2225) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c725f6aef1..e52453d61d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -322,7 +322,7 @@ jobs: # Reprocess raw-img using rechunker which will delete it - name: Run Rechunker id: rechunk - uses: hhd-dev/rechunk@v1.1.2 + uses: hhd-dev/rechunk@v1.1.3 with: rechunk: 'ghcr.io/hhd-dev/rechunk:v1.1.2' ref: 'raw-img' From f4c90ef4e1d2b24913f8a8083ff2ef4aac980fa9 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Sun, 2 Feb 2025 21:46:44 -0800 Subject: [PATCH 3/3] chore: Complete update for rechunk --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e52453d61d..2703753129 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -202,7 +202,7 @@ jobs: sudo podman pull ${{ env.PULL_IMAGE_REGISTRY }}/akmods-${{ matrix.target_nvidia_flavor }}:${{ matrix.kernel_flavor}}-${{ matrix.fedora_version }}-${{ matrix.kernel_version }} # Add rechunk as well to remove this source of failure - sudo podman pull ghcr.io/hhd-dev/rechunk:v1.1.2 + sudo podman pull ghcr.io/hhd-dev/rechunk:v1.1.3 - name: Get source versions id: labels @@ -324,7 +324,7 @@ jobs: id: rechunk uses: hhd-dev/rechunk@v1.1.3 with: - rechunk: 'ghcr.io/hhd-dev/rechunk:v1.1.2' + rechunk: 'ghcr.io/hhd-dev/rechunk:v1.1.3' ref: 'raw-img' prev-ref: '${{ steps.generate-prev-ref.outputs.ref }}' version: '${{ steps.generate-version.outputs.tag }}'