Only modify hugepage size for aarch64

(cherry picked from commit 247cf1121424f9abe9de1ce27eea3378edfc304c)
This commit is contained in:
jxy_git 2022-06-30 10:11:21 +08:00 committed by openeuler-sync-bot
parent deeb6153a7
commit ddef02c732

View File

@ -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 <jiangxinyu@kylinos.cn> - 4.40.60.7-6
- Only modify hugepage size for aarch64
* Mon Mar 28 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 4.40.60.7-5
- Remove ksmtuned.service