summaryrefslogtreecommitdiff
path: root/target/linux/s3c24xx/patches-2.6.24/1316-jffs2-choke-gc-thread.patch.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-03-14 15:52:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-03-14 15:52:42 +0000
commit16defbb2bd9478f9e5384b9722f20a694e6bae41 (patch)
treef52e202c30c7fca103b196ece1223e18446e4dfc /target/linux/s3c24xx/patches-2.6.24/1316-jffs2-choke-gc-thread.patch.patch
parentb4644aedce6526b5d07b336187c8e6417c7dd75e (diff)
downloadmtk-20170518-16defbb2bd9478f9e5384b9722f20a694e6bae41.zip
mtk-20170518-16defbb2bd9478f9e5384b9722f20a694e6bae41.tar.gz
mtk-20170518-16defbb2bd9478f9e5384b9722f20a694e6bae41.tar.bz2
nuke obsolete kernel stuff
SVN-Revision: 14875
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1316-jffs2-choke-gc-thread.patch.patch')
-rw-r--r--target/linux/s3c24xx/patches-2.6.24/1316-jffs2-choke-gc-thread.patch.patch55
1 files changed, 0 insertions, 55 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1316-jffs2-choke-gc-thread.patch.patch b/target/linux/s3c24xx/patches-2.6.24/1316-jffs2-choke-gc-thread.patch.patch
deleted file mode 100644
index b3d5c0c..0000000
--- a/target/linux/s3c24xx/patches-2.6.24/1316-jffs2-choke-gc-thread.patch.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-From 9706327002caebe6633c93e605882ea37172ec57 Mon Sep 17 00:00:00 2001
-From: Andres Salomon <dilinger@debian.org>
-Date: Mon, 3 Nov 2008 01:08:25 +0000
-Subject: [PATCH] jffs2-choke-gc-thread.patch
-
-I've noticed some pretty poor behavior on OLPC machines after bootup, when
-gdm/X are starting. The GCD monopolizes the scheduler (which in turns means
-it gets to do more nand i/o), which results in processes taking much much
-longer than they should to start.
-
-As an example, on an OLPC machine going from OFW to a usable X (via auto-login
-gdm) takes 2m 30s. The majority of this time is consumed by the switch into
-graphical mode. With this patch, we cut a full 60s off of bootup time. After
-bootup, things are much snappier as well.
-
-Note that we have seen a CRC node error with this patch that causes the machine
-to fail to boot, but we've also seen that problem without this patch.
-
-Signed-off-by: Andres Salomon <dilinger@debian.org>
----
- fs/jffs2/background.c | 18 +++++++++++-------
- 1 files changed, 11 insertions(+), 7 deletions(-)
-
-diff --git a/fs/jffs2/background.c b/fs/jffs2/background.c
-index 8adebd3..f38d557 100644
---- a/fs/jffs2/background.c
-+++ b/fs/jffs2/background.c
-@@ -95,13 +95,17 @@ static int jffs2_garbage_collect_thread(void *_c)
- schedule();
- }
-
-- /* This thread is purely an optimisation. But if it runs when
-- other things could be running, it actually makes things a
-- lot worse. Use yield() and put it at the back of the runqueue
-- every time. Especially during boot, pulling an inode in
-- with read_inode() is much preferable to having the GC thread
-- get there first. */
-- yield();
-+ /* Problem - immediately after bootup, the GCD spends a lot
-+ * of time in places like jffs2_kill_fragtree(); so much so
-+ * that userspace processes (like gdm and X) are starved
-+ * despite plenty of cond_resched()s and renicing. Yield()
-+ * doesn't help, either (presumably because userspace and GCD
-+ * are generally competing for a higher latency resource -
-+ * disk).
-+ * This forces the GCD to slow the hell down. Pulling an
-+ * inode in with read_inode() is much preferable to having
-+ * the GC thread get there first. */
-+ schedule_timeout_interruptible(msecs_to_jiffies(50));
-
- /* Put_super will send a SIGKILL and then wait on the sem.
- */
---
-1.5.6.5
-