!25 [sync] PR-24: 仅在aarch64架构下修改内存大页的容量

From: @openeuler-sync-bot 
Reviewed-by: @wm-wm-wm 
Signed-off-by: @wm-wm-wm
This commit is contained in:
openeuler-ci-bot 2022-06-30 02:36:23 +00:00 committed by Gitee
commit 3edf66dd70
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -50,7 +50,7 @@
Name: %{vdsm_name} Name: %{vdsm_name}
Version: 4.40.60.7 Version: 4.40.60.7
Release: 5 Release: 6
Summary: Virtual Desktop Server Manager Summary: Virtual Desktop Server Manager
Group: Applications/System Group: Applications/System
@ -579,8 +579,6 @@ Gluster plugin enables VDSM to serve Gluster functionalities.
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -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 %build
%if 0%{?enable_autotools} %if 0%{?enable_autotools}
@ -655,6 +653,12 @@ if [ "$1" -gt 1 ]; then
fi fi
%post %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. # After vdsm install we should create the logs files.
# In the install session we create it but since we use # In the install session we create it but since we use
# the ghost macro (in files session) the files are not included # the ghost macro (in files session) the files are not included
@ -1120,6 +1124,9 @@ exit 0
%endif %endif
%changelog %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 * Mon Mar 28 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 4.40.60.7-5
- Remove ksmtuned.service - Remove ksmtuned.service