patch for Documentation/memory-tuning.txt

Thomas Koenig (ig25@mvmap66.ciw.uni-karlsruhe.de)
Wed, 20 Aug 1997 12:12:46 +0200 (MET DST)


Here's a patch against pre-2.0.31-7, explaining the reason for the
quotes.

--- memory-tuning.txt.orig Wed Aug 20 12:07:03 1997
+++ memory-tuning.txt Wed Aug 20 12:09:12 1997
@@ -12,7 +12,11 @@

You can adjust these with a command such as:

-# echo 128 256 512 > /proc/sys/vm/freepages
+# echo "128 256 512" > /proc/sys/vm/freepages
+
+[The quotes are sometimes necessary since some versions of echo would use
+three write() calls otherwise, resulting in only the first entry to be
+changed].

Free memory never goes down below min_free_pages except for atomic
allocation. Background swapping is started if the number of free
@@ -38,7 +42,7 @@

I've found that

-# echo 128 256 1024 > /proc/sys/vm/freepages
+# echo "128 256 1024" > /proc/sys/vm/freepages

gives good performance for a 32 Meg system used as a small server and
personal workstation.

-- 
Thomas Koenig, Thomas.Koenig@ciw.uni-karlsruhe.de, ig25@dkauni2.bitnet.
The joy of engineering is to find a straight line on a double
logarithmic diagram.