summaryrefslogtreecommitdiffstats
path: root/patches/boot_time_opt/0104-Increase-the-ext4-default-commit-age.patch
diff options
context:
space:
mode:
authorAdrian Calianu <adrian.calianu@enea.com>2017-05-22 08:43:50 +0200
committerAdrian Dudau <adrian.dudau@enea.com>2017-05-23 14:58:35 +0200
commit16b0e3313f53566481c106ace9992e477f8efe9b (patch)
tree5ec03a62db7836d2fb59813cb0c912751556c378 /patches/boot_time_opt/0104-Increase-the-ext4-default-commit-age.patch
parent28da254d1c5ae012a6e064671aa14850c2a21a25 (diff)
downloadenea-kernel-cache-16b0e3313f53566481c106ace9992e477f8efe9b.tar.gz
patches: Boot time optimizations with ClearLinux patches
Signed-off-by: Adrian Calianu <adrian.calianu@enea.com> Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'patches/boot_time_opt/0104-Increase-the-ext4-default-commit-age.patch')
-rw-r--r--patches/boot_time_opt/0104-Increase-the-ext4-default-commit-age.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/patches/boot_time_opt/0104-Increase-the-ext4-default-commit-age.patch b/patches/boot_time_opt/0104-Increase-the-ext4-default-commit-age.patch
new file mode 100644
index 0000000..fb709b4
--- /dev/null
+++ b/patches/boot_time_opt/0104-Increase-the-ext4-default-commit-age.patch
@@ -0,0 +1,35 @@
1From b6970d43f97325c9acc7bd942dcd192586d8d407 Mon Sep 17 00:00:00 2001
2From: Arjan van de Ven <arjan@linux.intel.com>
3Date: Mon, 11 Jan 2016 10:01:44 -0600
4Subject: [PATCH 104/124] Increase the ext4 default commit age
5
6Both the VM and EXT4 have a "commit to disk after X seconds" time.
7Currently the EXT4 time is shorter than our VM time, which is a bit
8suboptional,
9it's better for performance to let the VM do the writeouts in bulk
10rather than something deep in the journalling layer.
11
12(DISTRO TWEAK -- NOT FOR UPSTREAM)
13
14Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
15Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
16---
17 include/linux/jbd2.h | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h
21index dfaa1f4dcb0c..9955fd6c6159 100644
22--- a/include/linux/jbd2.h
23+++ b/include/linux/jbd2.h
24@@ -47,7 +47,7 @@
25 /*
26 * The default maximum commit age, in seconds.
27 */
28-#define JBD2_DEFAULT_MAX_COMMIT_AGE 5
29+#define JBD2_DEFAULT_MAX_COMMIT_AGE 30
30
31 #ifdef CONFIG_JBD2_DEBUG
32 /*
33--
342.11.1
35