From ddef02c7328a8068bc599707dbdee6aa71756931 Mon Sep 17 00:00:00 2001 From: jxy_git Date: Thu, 30 Jun 2022 10:11:21 +0800 Subject: [PATCH] Only modify hugepage size for aarch64 (cherry picked from commit 247cf1121424f9abe9de1ce27eea3378edfc304c) --- vdsm.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/vdsm.spec b/vdsm.spec index bcb1f00..7e838d8 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 +* Thu Jun 30 2022 jiangxinyu - 4.40.60.7-6 +- Only modify hugepage size for aarch64 + * Mon Mar 28 2022 jiangxinyu - 4.40.60.7-5 - Remove ksmtuned.service