public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
* [git.ipfire.org] IPFire 3.x development tree branch, master, updated. 21b0276e0d7e4439f633f0888e87fb3e691bf742
@ 2016-11-16 21:38 git
  0 siblings, 0 replies; only message in thread
From: git @ 2016-11-16 21:38 UTC (permalink / raw)
  To: ipfire-scm

[-- Attachment #1: Type: text/plain, Size: 2521 bytes --]

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 <michael.tremer(a)ipfire.org>
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 <michael.tremer(a)ipfire.org>

-----------------------------------------------------------------------

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-16 21:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-16 21:38 [git.ipfire.org] IPFire 3.x development tree branch, master, updated. 21b0276e0d7e4439f633f0888e87fb3e691bf742 git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox