From: Matan Breizman Date: Mon, 4 Nov 2024 15:40:24 +0000 (+0000) Subject: etc/sysctl: adjust fs.aio-max-nr for crimson X-Git-Tag: v20.3.0~209^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4f653e1c60aeb33cf6d8104751d79938ff94daec;p=ceph.git etc/sysctl: adjust fs.aio-max-nr for crimson This will switch 90-ceph-osd.conf when compiling Crimson builds. See 36326dc. Clasical osd packages are adjusting the aio-max-nr value from the default of 65536 to 1048576 as the default is too low for some deployments. The same should be applied for Crimson's packages. No further changes are applied to ceph.spec.in / debuan/rules since etc/sysctl/90-ceph-osd.conf will be installed regardless. For rpm, we package crimson-osd with ceph-osd - this means that the existing `%post osd` will be applied for crimson-osd packages as well. Signed-off-by: Matan Breizman --- diff --git a/etc/sysctl/90-crimson-osd.conf.in b/etc/sysctl/90-crimson-osd.conf.in new file mode 100644 index 00000000000..76910bb7637 --- /dev/null +++ b/etc/sysctl/90-crimson-osd.conf.in @@ -0,0 +1,3 @@ +fs.aio-max-nr = 2097152 +@sysctl_pid_max@ + diff --git a/etc/sysctl/CMakeLists.txt b/etc/sysctl/CMakeLists.txt index 682541b058e..a31344c6a9c 100644 --- a/etc/sysctl/CMakeLists.txt +++ b/etc/sysctl/CMakeLists.txt @@ -4,6 +4,12 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 8) set(sysctl_pid_max "kernel.pid_max = 4194304") endif() -configure_file(90-ceph-osd.conf.in - ${CMAKE_CURRENT_SOURCE_DIR}/90-ceph-osd.conf - @ONLY) +if(WITH_SEASTAR) + configure_file(90-crimson-osd.conf.in + ${CMAKE_CURRENT_SOURCE_DIR}/90-ceph-osd.conf + @ONLY) +else() + configure_file(90-ceph-osd.conf.in + ${CMAKE_CURRENT_SOURCE_DIR}/90-ceph-osd.conf + @ONLY) +endif()