Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to stable-0.62 grimoire by Vlad Glagolev (1f78eea21c4a14f9192f3bea422d9c6c87a21f60)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to stable-0.62 grimoire by Vlad Glagolev (1f78eea21c4a14f9192f3bea422d9c6c87a21f60)
  • Date: Sun, 10 Apr 2016 08:08:07 +0000

GIT changes to stable-0.62 grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

smgl/init.d/DETAILS | 1 +
smgl/init.d/HISTORY | 9 +++++++++
smgl/init.d/init.d/devices | 2 +-
smgl/init.d/init.d/devices.conf | 9 +++++++++
4 files changed, 20 insertions(+), 1 deletion(-)

New commits:
commit 1f78eea21c4a14f9192f3bea422d9c6c87a21f60
Author: Eric Sandall <sandalle AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

init.d: Allow setting RUN_SIZE

default is 50%, so set that to keep consistency
See https://lists.debian.org/debian-devel/2011/04/msg00615.html
50% is too large for many systems these days, so make this
configurable as I only use 1% of 1% of my RAM on /run for a server.

(cherry picked from commit bf49bede0cd43fa32fb7d204709e849df63fd510)

diff --git a/smgl/init.d/DETAILS b/smgl/init.d/DETAILS
index 8c13fa9..5cfabb3 100755
--- a/smgl/init.d/DETAILS
+++ b/smgl/init.d/DETAILS
@@ -2,6 +2,7 @@
VERSION=2.2.13
LICENSE[0]=GPL
GATHER_DOCS=off
+ PATCHLEVEL=1
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
KEYWORDS="smgl"
ENTERED=20030505
diff --git a/smgl/init.d/HISTORY b/smgl/init.d/HISTORY
index 7ab1a0e..c81e905 100644
--- a/smgl/init.d/HISTORY
+++ b/smgl/init.d/HISTORY
@@ -1,3 +1,12 @@
+2016-04-09 Eric Sandall <sandalle AT sourcemage.org>
+ * DETAILS: PATCHLEVEL++
+ * init.d/devices.conf: Allow setting RUN_SIZE
+ default is 50%, so set that to keep consistency
+ See https://lists.debian.org/debian-devel/2011/04/msg00615.html
+ 50% is too large for many systems these days, so make this
configurable
+ as I only use 1% of 1% of my RAM on /run for a server.
+ * init.d/devices: Use RUN_SIZE when mounting /run
+
2015-03-29 Vlad Glagolev <stealth AT sourcemage.org>
* INSTALL: don't do mount-based checks here, prevents castfs from
correct unmount
diff --git a/smgl/init.d/init.d/devices b/smgl/init.d/init.d/devices
index a86d128..61a2660 100755
--- a/smgl/init.d/init.d/devices
+++ b/smgl/init.d/init.d/devices
@@ -155,7 +155,7 @@ start()
mount -n -t sysfs sysfs /sys
# mount run
echo "Mounting /run"
- mount -n -t tmpfs tmpfs /run
+ mount -n -o size=${RUN_SIZE:-50%} -t tmpfs tmpfs /run
eval "start_$DEVICES"
}

diff --git a/smgl/init.d/init.d/devices.conf b/smgl/init.d/init.d/devices.conf
index aefd80b..7c51f92 100644
--- a/smgl/init.d/init.d/devices.conf
+++ b/smgl/init.d/init.d/devices.conf
@@ -1,2 +1,11 @@
# type of device management, "static", "devfs", "udev" or "static_udev"
DEVICES=devfs
+
+# RUN_SIZE: maximum size of /run
+#
+# Defaults to 10% core memory; the size required varies widely
+# depending upon the demands of the software being run; this heuristic
+# scales /run usage on system size. Samba in particular has been seen
+# to use at least 50MiB in a large heavily used server. Typical usage
+# is hundreds of KiB, maximum is tens of MiB.
+RUN_SIZE=50%



  • [SM-Commit] GIT changes to stable-0.62 grimoire by Vlad Glagolev (1f78eea21c4a14f9192f3bea422d9c6c87a21f60), Vlad Glagolev, 04/10/2016

Archive powered by MHonArc 2.6.24.

Top of Page