From mboxrd@z Thu Jan 1 00:00:00 1970 From: git@ipfire.org To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 3.x development tree branch, master, updated. 21b0276e0d7e4439f633f0888e87fb3e691bf742 Date: Wed, 16 Nov 2016 21:38:42 +0000 Message-ID: <20161116213843.921FF1078E80@git01.ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0764916994969045860==" List-Id: --===============0764916994969045860== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 3.x development tree". The branch, master has been updated via 21b0276e0d7e4439f633f0888e87fb3e691bf742 (commit) from e4770a6b5ec5c85e0d50baddb9fb8c163f0bafee (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 21b0276e0d7e4439f633f0888e87fb3e691bf742 Author: Michael Tremer Date: Wed Nov 16 21:37:46 2016 +0000 setup: Configure swappiness This will turn off any preemptive swapping and will only allow swapping to avoid any OOM conditions. This will help to keep the system responsive, avoids latency and saves writing on storage. Signed-off-by: Michael Tremer ----------------------------------------------------------------------- Summary of changes: setup/setup.nm | 10 +++++++--- setup/sysctl/swappiness.conf | 5 +++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 setup/sysctl/swappiness.conf Difference in files: diff --git a/setup/setup.nm b/setup/setup.nm index 61d3ba6..75c9da2 100644 --- a/setup/setup.nm +++ b/setup/setup.nm @@ -5,7 +5,7 @@ name = setup version = 3.0 -release = 7 +release = 8 arch = noarch groups = Base Build System/Base @@ -45,8 +45,12 @@ build cp -vf %{DIR_APP}/${i} %{BUILDROOT}/etc || exit 1; \ done - touch %{BUILDROOT}/etc/{environment,fstab} - chmod -v 0400 %{BUILDROOT}/etc/{,g}shadow + touch %{BUILDROOT}%{sysconfdir}/{environment,fstab} + chmod -v 0400 %{BUILDROOT}%{sysconfdir}/{,g}shadow + + mkdir -pv %{BUILDROOT}%{sysconfdir}/sysctl.d + install -m 644 %{DIR_APP}/sysctl/swappiness.conf \ + %{BUILDROOT}%{sysconfdir}/sysctl.d/swappiness.conf end end diff --git a/setup/sysctl/swappiness.conf b/setup/sysctl/swappiness.conf new file mode 100644 index 0000000..253b75c --- /dev/null +++ b/setup/sysctl/swappiness.conf @@ -0,0 +1,5 @@ +# This will turn off any preemptive swapping and will only allow swapping to +# avoid any OOM conditions. This will help to keep the system responsive, +# avoids latency and saves writing on storage. + +vm.swappiness = 0 hooks/post-receive -- IPFire 3.x development tree --===============0764916994969045860==--