From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 01/13] kernel: Change timer tick to 1000Hz Date: Fri, 17 Sep 2021 11:42:17 +0000 Message-ID: <20210917114229.10704-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7897738060697400214==" List-Id: --===============7897738060697400214== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This change is required to make the system respond faster to any realtime events (sending or receiving data packets). It will wake up at least one core 1000 times a second which will result in finer timer granularity and make scheduling smoother. HTB for example sends large packet bursts on each timer even to keep up data rates which is not helpful for most applications. The change might increase resource consumption and overhead slightly on some systems, but since we are running in an idle-dyntick configuration, we should not keep awake any cores that have not been awake before. Signed-off-by: Michael Tremer --- config/kernel/kernel.config.aarch64-ipfire | 6 +++--- config/kernel/kernel.config.armv6l-ipfire | 6 +++--- config/kernel/kernel.config.i586-ipfire | 6 +++--- config/kernel/kernel.config.x86_64-ipfire | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/config/kernel/kernel.config.aarch64-ipfire b/config/kernel/kerne= l.config.aarch64-ipfire index 450835d8b..54cd7c084 100644 --- a/config/kernel/kernel.config.aarch64-ipfire +++ b/config/kernel/kernel.config.aarch64-ipfire @@ -370,11 +370,11 @@ CONFIG_NR_CPUS=3D8 CONFIG_HOTPLUG_CPU=3Dy # CONFIG_NUMA is not set CONFIG_HOLES_IN_ZONE=3Dy -CONFIG_HZ_100=3Dy +# CONFIG_HZ_100 is not set # CONFIG_HZ_250 is not set # CONFIG_HZ_300 is not set -# CONFIG_HZ_1000 is not set -CONFIG_HZ=3D100 +CONFIG_HZ_1000=3Dy +CONFIG_HZ=3D1000 CONFIG_SCHED_HRTICK=3Dy CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=3Dy CONFIG_ARCH_SPARSEMEM_ENABLE=3Dy diff --git a/config/kernel/kernel.config.armv6l-ipfire b/config/kernel/kernel= .config.armv6l-ipfire index b1af6555c..6fe17954d 100644 --- a/config/kernel/kernel.config.armv6l-ipfire +++ b/config/kernel/kernel.config.armv6l-ipfire @@ -588,13 +588,13 @@ CONFIG_HOTPLUG_CPU=3Dy CONFIG_ARM_PSCI=3Dy CONFIG_ARCH_NR_GPIO=3D512 CONFIG_HZ_FIXED=3D0 -CONFIG_HZ_100=3Dy +# CONFIG_HZ_100 is not set # CONFIG_HZ_200 is not set # CONFIG_HZ_250 is not set # CONFIG_HZ_300 is not set # CONFIG_HZ_500 is not set -# CONFIG_HZ_1000 is not set -CONFIG_HZ=3D100 +CONFIG_HZ_1000=3Dy +CONFIG_HZ=3D1000 CONFIG_SCHED_HRTICK=3Dy CONFIG_ARM_PATCH_IDIV=3Dy CONFIG_AEABI=3Dy diff --git a/config/kernel/kernel.config.i586-ipfire b/config/kernel/kernel.c= onfig.i586-ipfire index 5f5a496a8..a915682e4 100644 --- a/config/kernel/kernel.config.i586-ipfire +++ b/config/kernel/kernel.config.i586-ipfire @@ -438,11 +438,11 @@ CONFIG_X86_INTEL_TSX_MODE_OFF=3Dy # CONFIG_X86_INTEL_TSX_MODE_AUTO is not set CONFIG_EFI=3Dy CONFIG_EFI_STUB=3Dy -CONFIG_HZ_100=3Dy +# CONFIG_HZ_100 is not set # CONFIG_HZ_250 is not set # CONFIG_HZ_300 is not set -# CONFIG_HZ_1000 is not set -CONFIG_HZ=3D100 +CONFIG_HZ_1000=3Dy +CONFIG_HZ=3D1000 CONFIG_SCHED_HRTICK=3Dy # CONFIG_KEXEC is not set CONFIG_CRASH_DUMP=3Dy diff --git a/config/kernel/kernel.config.x86_64-ipfire b/config/kernel/kernel= .config.x86_64-ipfire index f8289aeb8..730e0791e 100644 --- a/config/kernel/kernel.config.x86_64-ipfire +++ b/config/kernel/kernel.config.x86_64-ipfire @@ -430,11 +430,11 @@ CONFIG_X86_INTEL_TSX_MODE_OFF=3Dy CONFIG_EFI=3Dy CONFIG_EFI_STUB=3Dy CONFIG_EFI_MIXED=3Dy -CONFIG_HZ_100=3Dy +# CONFIG_HZ_100 is not set # CONFIG_HZ_250 is not set # CONFIG_HZ_300 is not set -# CONFIG_HZ_1000 is not set -CONFIG_HZ=3D100 +CONFIG_HZ_1000=3Dy +CONFIG_HZ=3D1000 CONFIG_SCHED_HRTICK=3Dy # CONFIG_KEXEC is not set # CONFIG_KEXEC_FILE is not set --=20 2.20.1 --===============7897738060697400214==--