From b02edff631e791520e4d63f7ce1644a520689071 Mon Sep 17 00:00:00 2001 From: wangdi Date: Fri, 24 Jun 2022 16:32:32 +0800 Subject: [PATCH] Only modify hugepage size for aarch64 --- vdsm.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/vdsm.spec b/vdsm.spec index 12a5cae..db627a8 100644 --- a/vdsm.spec +++ b/vdsm.spec @@ -50,7 +50,7 @@ Name: %{vdsm_name} Version: 4.40.60.7 -Release: 5 +Release: 6 Summary: Virtual Desktop Server Manager Group: Applications/System @@ -579,8 +579,6 @@ Gluster plugin enables VDSM to serve Gluster functionalities. %patch1 -p1 %patch2 -p1 %patch3 -p1 -sed -i 's/1048576/524288/g' static/usr/lib/systemd/system/dev-hugepages1G.mount -sed -i 's/pagesize=1G/pagesize=512M/g' static/usr/lib/systemd/system/dev-hugepages1G.mount %build %if 0%{?enable_autotools} @@ -655,6 +653,12 @@ if [ "$1" -gt 1 ]; then fi %post +# x86_64 use 1G hugepage, aarch64 use 512M hugepage +# if aarch64, modify the systemd hugepage mount unit file here +%ifarch aarch64 +sed -i 's/1048576/524288/g' %{_unitdir}/dev-hugepages1G.mount +sed -i 's/pagesize=1G/pagesize=512M/g' %{_unitdir}/dev-hugepages1G.mount +%endif # After vdsm install we should create the logs files. # In the install session we create it but since we use # the ghost macro (in files session) the files are not included @@ -1120,6 +1124,9 @@ exit 0 %endif %changelog +* Fri Jun 24 2022 wangdi - 4.40.60.7-6 +- Only modify hugepage size for aarch64 + * Fri Apr 08 2022 jiangxinyu - 4.40.60.7-5 - Remove ksmtuned.service