add fs.aio-max-nr into sysctl.d

This commit is contained in:
Gabriel Francisco 2020-11-27 17:58:48 +00:00
parent dc2644d4d4
commit dfb9ac7baf
4 changed files with 7 additions and 1 deletions

3
debian/control vendored
View File

@ -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.

View File

@ -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:

2
debian/mars-dkms.sysctl vendored Normal file
View File

@ -0,0 +1,2 @@
# System wide maximum number of asynchronous input/output requests
fs.aio-max-nr = 1048576

1
debian/rules vendored
View File

@ -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)/