From 28cff918c994eab4d7004d7b1d74900c179db675 Mon Sep 17 00:00:00 2001 From: DistroBaker Date: Wed, 27 Jan 2021 17:30:21 +0000 Subject: [PATCH] Merged update from upstream sources This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/rust-zram-generator.git#c008a0a33a33ec443b3433b849b5bd5609d024f8 --- rust-zram-generator.spec | 7 +++++-- zram-generator.conf | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/rust-zram-generator.spec b/rust-zram-generator.spec index 3b08c39..85a6e6e 100644 --- a/rust-zram-generator.spec +++ b/rust-zram-generator.spec @@ -5,7 +5,7 @@ Name: rust-%{crate} Version: 0.3.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Systemd unit generator for zram swap devices # Upstream license specification: MIT @@ -113,7 +113,7 @@ export SYSTEMD_UTIL_DIR=$(pkg-config --variable=systemdutildir systemd) mkdir -p %{buildroot}%{_systemdgeneratordir} mv -v %{buildroot}%{_bindir}/zram-generator %{buildroot}%{_systemdgeneratordir}/ install -Dpm0644 -t %{buildroot}%{_unitdir} units/systemd-zram-setup@.service -install -Dpm0644 -t %{buildroot}%{_prefix}/lib/systemd zram-generator.conf +install -Dpm0644 -t %{buildroot}%{_prefix}/lib/systemd %{SOURCE1} install -Dpm0644 -t %{buildroot}%{_mandir}/man8 man/zram-generator.8 install -Dpm0644 -t %{buildroot}%{_mandir}/man5 man/zram-generator.conf.5 @@ -124,6 +124,9 @@ export SYSTEMD_UTIL_DIR=$(pkg-config --variable=systemdutildir systemd) %endif %changelog +* Wed Jan 27 2021 Zbigniew Jędrzejewski-Szmek - 0.3.1-2 +- Implement https://fedoraproject.org/wiki/Changes/Scale_ZRAM_to_full_memory_size (#1921084) + * Sat Jan 23 13:23:10 CET 2021 Igor Raits - 0.3.1-1 - Update to 0.3.1 diff --git a/zram-generator.conf b/zram-generator.conf index e151b57..5f5a1ae 100644 --- a/zram-generator.conf +++ b/zram-generator.conf @@ -1,7 +1,9 @@ # This config file enables a /dev/zram0 device with the default settings: -# — size — half of available RAM or 4GB, whichever is less +# — size — same as available RAM or 8GB, whichever is less # — compression — most likely lzo-rle # # To disable, uninstall zram-generator-defaults or create empty # /etc/systemd/zram-generator.conf file. [zram0] +zram-fraction = 1.0 +max-zram-size = 8096