From dfb9ac7baffb8f4eb3fc4ce39fb6d3f2965c7620 Mon Sep 17 00:00:00 2001 From: Gabriel Francisco Date: Fri, 27 Nov 2020 17:58:48 +0000 Subject: [PATCH] add fs.aio-max-nr into sysctl.d --- debian/control | 3 ++- debian/mars-dkms.postinst | 2 ++ debian/mars-dkms.sysctl | 2 ++ debian/rules | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 debian/mars-dkms.sysctl diff --git a/debian/control b/debian/control index baa593fa..f5eb84ee 100644 --- a/debian/control +++ b/debian/control @@ -10,7 +10,8 @@ Homepage: http://schoebel.github.io/mars/ Package: mars-dkms Architecture: any -Depends: ${misc:Depends}, ${perl:Depends} +Depends: ${misc:Depends}, ${perl:Depends}, procps +Recommends: mars-tools Description: mars kernel module. MARS Light is a block-level storage replication solution implemented in the form of a Linux kernel module. diff --git a/debian/mars-dkms.postinst b/debian/mars-dkms.postinst index ee661d25..7c64a252 100644 --- a/debian/mars-dkms.postinst +++ b/debian/mars-dkms.postinst @@ -8,6 +8,8 @@ case "$1" in ;; configure|reconfigure) + # Restart procps to reload sysctl.d files + invoke-rc.d procps restart # Get the version of the current loaded module: old_version="$(cat /sys/module/mars/version 2>/dev/null)" || exit 0 # Get the version of the latest available module: diff --git a/debian/mars-dkms.sysctl b/debian/mars-dkms.sysctl new file mode 100644 index 00000000..eee43acb --- /dev/null +++ b/debian/mars-dkms.sysctl @@ -0,0 +1,2 @@ +# System wide maximum number of asynchronous input/output requests +fs.aio-max-nr = 1048576 diff --git a/debian/rules b/debian/rules index 737636a9..8999ddef 100755 --- a/debian/rules +++ b/debian/rules @@ -20,6 +20,7 @@ include /usr/share/dpkg/default.mk override_dh_install: cp debian/mars-Makefile kernel/Makefile cp debian/mars-Kbuild kernel/Kbuild + install -m 644 -D debian/mars-dkms.sysctl debian/mars-dkms/etc/sysctl.d/30-mars-dkms.conf dh_install scripts/gen_config.pl usr/src/mars-$(DEB_VERSION_UPSTREAM)/ dh_install kernel/* usr/src/mars-$(DEB_VERSION_UPSTREAM)/