From c4bd5f6e084a6ced2c7a2f76798d0a34947ffeb7 Mon Sep 17 00:00:00 2001 From: Martin Borg Date: Fri, 23 Mar 2018 14:01:03 +0100 Subject: boot_time_opt: update host boot time optimization patches for 4.14 The new patches are based on: https://github.com/clearlinux-pkgs/linux-lts commit 5595fe425a52af6734235a1a953b6b03210060ec Signed-off-by: Martin Borg Signed-off-by: Adrian Dudau --- ...0103-Increase-the-ext4-default-commit-age.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 patches/boot_time_opt/0103-Increase-the-ext4-default-commit-age.patch (limited to 'patches/boot_time_opt/0103-Increase-the-ext4-default-commit-age.patch') diff --git a/patches/boot_time_opt/0103-Increase-the-ext4-default-commit-age.patch b/patches/boot_time_opt/0103-Increase-the-ext4-default-commit-age.patch new file mode 100644 index 0000000..bcfddee --- /dev/null +++ b/patches/boot_time_opt/0103-Increase-the-ext4-default-commit-age.patch @@ -0,0 +1,35 @@ +From d098532daf5eead493d71f9756f8905a18f01e04 Mon Sep 17 00:00:00 2001 +From: Arjan van de Ven +Date: Mon, 11 Jan 2016 10:01:44 -0600 +Subject: [PATCH 103/126] 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 606b6bce3a5b..5dd7d54c40c2 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.15.0 + -- cgit v1.2.3-54-g00ecf