Skip to content

Commit f75bfa4

Browse files
authored
Merge pull request ceph#60611 from Matan-B/wip-matanb-crimson-max-nr
ceph.spec.in,debian/rules: aio-max-nr for Crimson Reviewed-by: Samuel Just <[email protected]> Reviewed-by: Xuehan Xu <[email protected]> Reviewed-by: Kefu Chai <[email protected]> Reviewed-by: Yingxin Cheng <[email protected]>
2 parents e928f2c + 36e9f76 commit f75bfa4

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

ceph.spec.in

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,11 +2340,7 @@ fi
23402340
if [ $1 -eq 1 ] ; then
23412341
/usr/bin/systemctl start ceph-osd.target >/dev/null 2>&1 || :
23422342
fi
2343-
%if 0%{?sysctl_apply}
2344-
%sysctl_apply 90-ceph-osd.conf
2345-
%else
2346-
/usr/lib/systemd/systemd-sysctl %{_sysctldir}/90-ceph-osd.conf > /dev/null 2>&1 || :
2347-
%endif
2343+
%sysctl_apply 90-ceph-osd.conf
23482344

23492345
%preun osd
23502346
%if 0%{?suse_version}

etc/sysctl/90-crimson-osd.conf.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fs.aio-max-nr = 2097152
2+
@sysctl_pid_max@
3+

etc/sysctl/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 8)
44
set(sysctl_pid_max "kernel.pid_max = 4194304")
55
endif()
66

7-
configure_file(90-ceph-osd.conf.in
8-
${CMAKE_CURRENT_SOURCE_DIR}/90-ceph-osd.conf
9-
@ONLY)
7+
if(WITH_SEASTAR)
8+
configure_file(90-crimson-osd.conf.in
9+
${CMAKE_CURRENT_SOURCE_DIR}/90-ceph-osd.conf
10+
@ONLY)
11+
else()
12+
configure_file(90-ceph-osd.conf.in
13+
${CMAKE_CURRENT_SOURCE_DIR}/90-ceph-osd.conf
14+
@ONLY)
15+
endif()

0 commit comments

Comments
 (0)