From 16b0e3313f53566481c106ace9992e477f8efe9b Mon Sep 17 00:00:00 2001 From: Adrian Calianu Date: Mon, 22 May 2017 08:43:50 +0200 Subject: patches: Boot time optimizations with ClearLinux patches Signed-off-by: Adrian Calianu Signed-off-by: Adrian Dudau --- ...0104-Increase-the-ext4-default-commit-age.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 patches/boot_time_opt/0104-Increase-the-ext4-default-commit-age.patch (limited to 'patches/boot_time_opt/0104-Increase-the-ext4-default-commit-age.patch') 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 @@ +From b6970d43f97325c9acc7bd942dcd192586d8d407 Mon Sep 17 00:00:00 2001 +From: Arjan van de Ven +Date: Mon, 11 Jan 2016 10:01:44 -0600 +Subject: [PATCH 104/124] Increase the ext4 default commit age + +Both the VM and EXT4 have a "commit to disk after X seconds" time. +Currently the EXT4 time is shorter than our VM time, which is a bit +suboptional, +it's better for performance to let the VM do the writeouts in bulk +rather than something deep in the journalling layer. + +(DISTRO TWEAK -- NOT FOR UPSTREAM) + +Signed-off-by: Arjan van de Ven +Signed-off-by: Jose Carlos Venegas Munoz +--- + include/linux/jbd2.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h +index dfaa1f4dcb0c..9955fd6c6159 100644 +--- a/include/linux/jbd2.h ++++ b/include/linux/jbd2.h +@@ -47,7 +47,7 @@ + /* + * The default maximum commit age, in seconds. + */ +-#define JBD2_DEFAULT_MAX_COMMIT_AGE 5 ++#define JBD2_DEFAULT_MAX_COMMIT_AGE 30 + + #ifdef CONFIG_JBD2_DEBUG + /* +-- +2.11.1 + -- cgit v1.2.3-54-g00ecf