Skip to contentSkip to conversation

docs: sysctl: timer_migration is for hrtimer only

PATCH Applied Costa Shulyupin 3 participants 3 messages Aug 26 – Aug 31 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: sysctl: timer_migration is for hrtimer only

Since commit b2cf7507e1864 ("timers: Always queue timers on the local CPU") __mod_timer() no longer depends on timers_migration_enabled. Only high-resolution timer migration from isolated to housekeeping CPUs depends on it.

Update and clarify the documentation accordingly.

---
 Documentation/admin-guide/sysctl/kernel.rst | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/admin-guide/sysctl/kernel.rst +4 -2
index b6328cd0f43e..fb38d654846d 100644
@@ -1609,8 +1609,10 @@ If a value outside of this range is written to ``threads-max`` an
 timer_migration
 ===============
 
-When set to a non-zero value, attempt to migrate timers away from idle cpus to
-allow them to remain in low power states longer.
+When set to a non-zero value, attempt to migrate high-resolution timers from
+nohz isolated (nohz_full) to housekeeping CPUs.
+See Documentation/admin-guide/cpu-isolation.rst
+and Documentation/admin-guide/kernel-parameters.rst.
 
 Default is set (1).
 
Signature · 1 line
2.55.0
Reviewed-by on v1 1/1
#1 lore raw

On 26 August 2026 14:29:19 BST, Costa Shulyupin <[email protected]> wrote:

+ CC [email protected] (sysctl folk)

+CC [email protected]

Quoted 21 lines

Since commit b2cf7507e1864 ("timers: Always queue timers on the local CPU") __mod_timer() no longer depends on timers_migration_enabled. Only high-resolution timer migration from isolated to housekeeping CPUs depends on it.

Update and clarify the documentation accordingly.

---
Documentation/admin-guide/sysctl/kernel.rst | 6 ++++--

1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/admin-guide/sysctl/kernel.rst +0 -0
index b6328cd0f43e..fb38d654846d 100644
@@ -1609,8 +1609,10 @@ If a value outside of this range is written to ``threads-max`` an

timer_migration
===============

Documentation/admin-guide/sysctl/kernel.rst If a value outside of this range is written to ``threads-max`` an · line 1615

Quoted 6 lines
Documentation/admin-guide/sysctl/kernel.rst +4 -2
-When set to a non-zero value, attempt to migrate timers away from idle cpus to
-allow them to remain in low power states longer.
+When set to a non-zero value, attempt to migrate high-resolution timers from
+nohz isolated (nohz_full) to housekeeping CPUs.
+See Documentation/admin-guide/cpu-isolation.rst
+and Documentation/admin-guide/kernel-parameters.rst.

Hmm, ok!

Quoted 3 lines

Default is set (1).

--- Thanks!
https://lore.kernel.org/all/[email protected]/

maintainer Applied
#2 lore raw
In reply to Costa Shulyupin
Quoted 17 lines · Costa Shulyupin

Since commit b2cf7507e1864 ("timers: Always queue timers on the local CPU") __mod_timer() no longer depends on timers_migration_enabled. Only high-resolution timer migration from isolated to housekeeping CPUs depends on it.

Update and clarify the documentation accordingly.

---
 Documentation/admin-guide/sysctl/kernel.rst | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/admin-guide/sysctl/kernel.rst +0 -0
index b6328cd0f43e..fb38d654846d 100644

Documentation/admin-guide/sysctl/kernel.rst If a value outside of this range is written to ``threads-max`` an · line 1615

Quoted 9 lines
Documentation/admin-guide/sysctl/kernel.rst +4 -2
@@ -1609,8 +1609,10 @@ If a value outside of this range is written to ``threads-max`` an
 timer_migration
 ===============
 
-When set to a non-zero value, attempt to migrate timers away from idle cpus to
-allow them to remain in low power states longer.
+When set to a non-zero value, attempt to migrate high-resolution timers from
+nohz isolated (nohz_full) to housekeeping CPUs.
+See Documentation/admin-guide/cpu-isolation.rst
+and Documentation/admin-guide/kernel-parameters.rst.

Applied, thanks.

jon