On Fri, Apr 29, 2022 at 03:37:40PM +0800, Pingfan Liu wrote:
s390x implements zlib/dfltcc dedicated instruction to improve
compression speed and ratio. Switching from 'makedumpfile -l' to
'makedumpfile -c' to benifit from this feature.
Signed-off-by: Pingfan Liu <piliu(a)redhat.com>
---
kexec-tools.spec | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/kexec-tools.spec b/kexec-tools.spec
index 6673000..9f1ba34 100644
--- a/kexec-tools.spec
+++ b/kexec-tools.spec
@@ -275,6 +275,10 @@ fi
%systemd_post kdump.service
touch /etc/kdump.conf
As a side question, why do we run "touch /etc/kdump.conf" since we
have already installed /etc/kdump.conf?
+# s390 uses zlib/dfltcc as default to improve compression speed and
ratio
+%ifarch s390x
+sed -i 's/makedumpfile -l/makedumpfile -c/' /etc/kdump.conf
+%endif
Does this change contradict the RPM config policy as defined in
%config(noreplace,missingok) %verify(not mtime) %{_sysconfdir}/kdump.conf?
%ifarch ppc64 ppc64le
servicelog_notify --remove --command=/usr/lib/kdump/kdump-migrate-action.sh
2>/dev/null
--
2.31.1
--
Best regards,
Coiby