Skip to contentSkip to conversation

Documentation/sysctl: Add timer_migration to kernel.rst

PATCH Superseded Phil Auld 2 participants 7 messages Jan 14, 2025 Documentation

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Phil Auld

author
#0 lore raw

PATCH 1/1 Documentation/sysctl: Add timer_migration to kernel.rst

There is no mention of timer_migration in the docs. Add a short description.

---
 Documentation/admin-guide/sysctl/kernel.rst | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/admin-guide/sysctl/kernel.rst +7 -0
index b2b36d0c3094..e03691e2cf4a 100644
@@ -1544,6 +1544,13 @@ constant ``FUTEX_TID_MASK`` (0x3fffffff).
 If a value outside of this range is written to ``threads-max`` an
 ``EINVAL`` error occurs.
 
+timer_migration
+===============
+
+When set, attempt to migrate timers away from idle cpus to allow them to remain
+in low power states longer.
+
+Default is set.
 
 traceoff_on_warning
 ===================
Signature · 1 line
2.47.1
maintainer
#1 lore raw
Quoted 15 lines · Phil Auld

There is no mention of timer_migration in the docs. Add a short description.

---
 Documentation/admin-guide/sysctl/kernel.rst | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/admin-guide/sysctl/kernel.rst +0 -0
index b2b36d0c3094..e03691e2cf4a 100644

Documentation/admin-guide/sysctl/kernel.rst constant ``FUTEX_TID_MASK`` (0x3fffffff). · line 1553

Quoted 10 lines
Documentation/admin-guide/sysctl/kernel.rst +7 -0
@@ -1544,6 +1544,13 @@ constant ``FUTEX_TID_MASK`` (0x3fffffff).
 If a value outside of this range is written to ``threads-max`` an
 ``EINVAL`` error occurs.
 
+timer_migration
+===============
+
+When set, attempt to migrate timers away from idle cpus to allow them to remain
+in low power states longer.
+
+Default is set.

When set to *what*? It will always be set to *some* value, right? So we should really say what the specific values mean.

Thanks,

jon

author
#2 lore raw
Quoted 20 lines · On Tue, Jan 14, 2025 at 10:08:13AM -0700 Jonathan Corbet wrote:
Quoted 18 lines · Phil Auld

There is no mention of timer_migration in the docs. Add a short description.

---
 Documentation/admin-guide/sysctl/kernel.rst | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/admin-guide/sysctl/kernel.rst +0 -0
index b2b36d0c3094..e03691e2cf4a 100644
@@ -1544,6 +1544,13 @@ constant ``FUTEX_TID_MASK`` (0x3fffffff).
 If a value outside of this range is written to ``threads-max`` an
 ``EINVAL`` error occurs.
 
Quoted 11 lines

Documentation/admin-guide/sysctl/kernel.rst constant ``FUTEX_TID_MASK`` (0x3fffffff). · line 1553

Quoted 7 lines
Documentation/admin-guide/sysctl/kernel.rst +7 -0
+timer_migration
+===============
+
+When set, attempt to migrate timers away from idle cpus to allow them to remain
+in low power states longer.
+
+Default is set.

When set to *what*? It will always be set to *some* value, right? So we should really say what the specific values mean.

Well, it's boolean so set means 1 and unset is 0. I was using the same style as the one below it:

"
traceoff_on_warning
===================

When set, disables tracing (see Documentation/trace/ftrace.rst) when a ``WARN()`` is hit.

"

But I can change it to "enabled (1)" or something if you prefer.

Cheers,
Phil

Quoted 4 lines

Thanks,

jon

maintainer
#3 lore raw
Quoted 37 lines · Phil Auld
Quoted 20 lines · On Tue, Jan 14, 2025 at 10:08:13AM -0700 Jonathan Corbet wrote:
Quoted 18 lines · Phil Auld

There is no mention of timer_migration in the docs. Add a short description.

---
 Documentation/admin-guide/sysctl/kernel.rst | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/admin-guide/sysctl/kernel.rst +0 -0
index b2b36d0c3094..e03691e2cf4a 100644
@@ -1544,6 +1544,13 @@ constant ``FUTEX_TID_MASK`` (0x3fffffff).
 If a value outside of this range is written to ``threads-max`` an
 ``EINVAL`` error occurs.
 
Quoted 11 lines

Documentation/admin-guide/sysctl/kernel.rst constant ``FUTEX_TID_MASK`` (0x3fffffff). · line 1553

Quoted 7 lines
Documentation/admin-guide/sysctl/kernel.rst +7 -0
+timer_migration
+===============
+
+When set, attempt to migrate timers away from idle cpus to allow them to remain
+in low power states longer.
+
+Default is set.

When set to *what*? It will always be set to *some* value, right? So we should really say what the specific values mean.

Well, it's boolean so set means 1 and unset is 0. I was using the same style as the one below it:

Quoted 8 lines

"
traceoff_on_warning
===================

When set, disables tracing (see Documentation/trace/ftrace.rst) when a ``WARN()`` is hit.

"

Just saying it's a boolean would help. And our existing documentation should rarely be taken as an example of what *good* documentation would be... :)

Quoted 1 line

But I can change it to "enabled (1)" or something if you prefer.

"When set to a non-zero value" or some such would, I think, be a lot more clear and make a better example for the next person to come along.

Get me an updated version and I can still queue it for 6.14.

Thanks,

jon

author
#4 lore raw
Quoted 43 lines · On Tue, Jan 14, 2025 at 11:40:10AM -0700 Jonathan Corbet wrote:
Quoted 41 lines · Phil Auld
Quoted 20 lines · On Tue, Jan 14, 2025 at 10:08:13AM -0700 Jonathan Corbet wrote:
Quoted 18 lines · Phil Auld

There is no mention of timer_migration in the docs. Add a short description.

---
 Documentation/admin-guide/sysctl/kernel.rst | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/admin-guide/sysctl/kernel.rst +0 -0
index b2b36d0c3094..e03691e2cf4a 100644
@@ -1544,6 +1544,13 @@ constant ``FUTEX_TID_MASK`` (0x3fffffff).
 If a value outside of this range is written to ``threads-max`` an
 ``EINVAL`` error occurs.
 
Quoted 11 lines

Documentation/admin-guide/sysctl/kernel.rst constant ``FUTEX_TID_MASK`` (0x3fffffff). · line 1553

Quoted 7 lines
Documentation/admin-guide/sysctl/kernel.rst +7 -0
+timer_migration
+===============
+
+When set, attempt to migrate timers away from idle cpus to allow them to remain
+in low power states longer.
+
+Default is set.

When set to *what*? It will always be set to *some* value, right? So we should really say what the specific values mean.

Well, it's boolean so set means 1 and unset is 0. I was using the same style as the one below it:

"
traceoff_on_warning
===================

Quoted 8 lines
Quoted 4 lines

When set, disables tracing (see Documentation/trace/ftrace.rst) when a ``WARN()`` is hit.

"

Just saying it's a boolean would help. And our existing documentation should rarely be taken as an example of what *good* documentation would be... :)

Fair enough :)

Quoted 7 lines
Quoted 2 lines

But I can change it to "enabled (1)" or something if you prefer.

"When set to a non-zero value" or some such would, I think, be a lot more clear and make a better example for the next person to come along.

Get me an updated version and I can still queue it for 6.14.

Shortly.

Thanks,
Phil

Quoted 5 lines

Thanks,

jon

author
#5 lore raw
In reply to Jonathan Corbet

Hi Jon,

Quoted 52 lines · On Tue, Jan 14, 2025 at 11:40:10AM -0700 Jonathan Corbet wrote:
Quoted 37 lines · Phil Auld
Quoted 20 lines · On Tue, Jan 14, 2025 at 10:08:13AM -0700 Jonathan Corbet wrote:
Quoted 18 lines · Phil Auld

There is no mention of timer_migration in the docs. Add a short description.

---
 Documentation/admin-guide/sysctl/kernel.rst | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/admin-guide/sysctl/kernel.rst +0 -0
index b2b36d0c3094..e03691e2cf4a 100644
@@ -1544,6 +1544,13 @@ constant ``FUTEX_TID_MASK`` (0x3fffffff).
 If a value outside of this range is written to ``threads-max`` an
 ``EINVAL`` error occurs.
 
Quoted 11 lines

Documentation/admin-guide/sysctl/kernel.rst constant ``FUTEX_TID_MASK`` (0x3fffffff). · line 1553

Quoted 7 lines
Documentation/admin-guide/sysctl/kernel.rst +7 -0
+timer_migration
+===============
+
+When set, attempt to migrate timers away from idle cpus to allow them to remain
+in low power states longer.
+
+Default is set.

When set to *what*? It will always be set to *some* value, right? So we should really say what the specific values mean.

Well, it's boolean so set means 1 and unset is 0. I was using the same style as the one below it:

Quoted 8 lines

"
traceoff_on_warning
===================

When set, disables tracing (see Documentation/trace/ftrace.rst) when a ``WARN()`` is hit.

"

Just saying it's a boolean would help. And our existing documentation should rarely be taken as an example of what *good* documentation would be... :)

Quoted 6 lines
Quoted 1 line

But I can change it to "enabled (1)" or something if you prefer.

"When set to a non-zero value" or some such would, I think, be a lot more clear and make a better example for the next person to come along.

Get me an updated version and I can still queue it for 6.14.

It's sent but I failed to do it as a reply to this message. Sorry about that.

Cheers,
Phil

Quoted 5 lines

Thanks,

jon

maintainer
#6 lore raw
Quoted 8 lines · Phil Auld
Quoted 4 lines

"When set to a non-zero value" or some such would, I think, be a lot more clear and make a better example for the next person to come along.

Get me an updated version and I can still queue it for 6.14.

It's sent but I failed to do it as a reply to this message. Sorry about that.

Doing a resend as a separate thread is actually better - no need to apologize.

Thanks,

jon