* [PATCH] Documentation/sysctl: Add timer_migration to kernel.rst
@ 2025-01-14 14:03 Phil Auld
2025-01-14 17:08 ` Jonathan Corbet
0 siblings, 1 reply; 7+ messages in thread
From: Phil Auld @ 2025-01-14 14:03 UTC (permalink / raw)
To: linux-kernel; +Cc: Jonathan Corbet, linux-doc
There is no mention of timer_migration in the docs. Add
a short description.
Signed-off-by: Phil Auld <pauld@redhat.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
---
Documentation/admin-guide/sysctl/kernel.rst | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst
index b2b36d0c3094..e03691e2cf4a 100644
--- a/Documentation/admin-guide/sysctl/kernel.rst
+++ b/Documentation/admin-guide/sysctl/kernel.rst
@@ -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
===================
--
2.47.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] Documentation/sysctl: Add timer_migration to kernel.rst
2025-01-14 14:03 [PATCH] Documentation/sysctl: Add timer_migration to kernel.rst Phil Auld
@ 2025-01-14 17:08 ` Jonathan Corbet
2025-01-14 17:43 ` Phil Auld
0 siblings, 1 reply; 7+ messages in thread
From: Jonathan Corbet @ 2025-01-14 17:08 UTC (permalink / raw)
To: Phil Auld, linux-kernel; +Cc: linux-doc
Phil Auld <pauld@redhat.com> writes:
> There is no mention of timer_migration in the docs. Add
> a short description.
>
> Signed-off-by: Phil Auld <pauld@redhat.com>
> Cc: Jonathan Corbet <corbet@lwn.net>
> Cc: linux-doc@vger.kernel.org
> ---
> Documentation/admin-guide/sysctl/kernel.rst | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst
> index b2b36d0c3094..e03691e2cf4a 100644
> --- a/Documentation/admin-guide/sysctl/kernel.rst
> +++ b/Documentation/admin-guide/sysctl/kernel.rst
> @@ -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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Documentation/sysctl: Add timer_migration to kernel.rst
2025-01-14 17:08 ` Jonathan Corbet
@ 2025-01-14 17:43 ` Phil Auld
2025-01-14 18:40 ` Jonathan Corbet
0 siblings, 1 reply; 7+ messages in thread
From: Phil Auld @ 2025-01-14 17:43 UTC (permalink / raw)
To: Jonathan Corbet; +Cc: linux-kernel, linux-doc
On Tue, Jan 14, 2025 at 10:08:13AM -0700 Jonathan Corbet wrote:
> Phil Auld <pauld@redhat.com> writes:
>
> > There is no mention of timer_migration in the docs. Add
> > a short description.
> >
> > Signed-off-by: Phil Auld <pauld@redhat.com>
> > Cc: Jonathan Corbet <corbet@lwn.net>
> > Cc: linux-doc@vger.kernel.org
> > ---
> > Documentation/admin-guide/sysctl/kernel.rst | 7 +++++++
> > 1 file changed, 7 insertions(+)
> >
> > diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst
> > index b2b36d0c3094..e03691e2cf4a 100644
> > --- a/Documentation/admin-guide/sysctl/kernel.rst
> > +++ b/Documentation/admin-guide/sysctl/kernel.rst
> > @@ -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.
>
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
> Thanks,
>
> jon
>
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Documentation/sysctl: Add timer_migration to kernel.rst
2025-01-14 17:43 ` Phil Auld
@ 2025-01-14 18:40 ` Jonathan Corbet
2025-01-14 19:04 ` Phil Auld
2025-01-14 19:50 ` Phil Auld
0 siblings, 2 replies; 7+ messages in thread
From: Jonathan Corbet @ 2025-01-14 18:40 UTC (permalink / raw)
To: Phil Auld; +Cc: linux-kernel, linux-doc
Phil Auld <pauld@redhat.com> writes:
> On Tue, Jan 14, 2025 at 10:08:13AM -0700 Jonathan Corbet wrote:
>> Phil Auld <pauld@redhat.com> writes:
>>
>> > There is no mention of timer_migration in the docs. Add
>> > a short description.
>> >
>> > Signed-off-by: Phil Auld <pauld@redhat.com>
>> > Cc: Jonathan Corbet <corbet@lwn.net>
>> > Cc: linux-doc@vger.kernel.org
>> > ---
>> > Documentation/admin-guide/sysctl/kernel.rst | 7 +++++++
>> > 1 file changed, 7 insertions(+)
>> >
>> > diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst
>> > index b2b36d0c3094..e03691e2cf4a 100644
>> > --- a/Documentation/admin-guide/sysctl/kernel.rst
>> > +++ b/Documentation/admin-guide/sysctl/kernel.rst
>> > @@ -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.
>>
>
>
> 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.
>
> "
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... :)
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Documentation/sysctl: Add timer_migration to kernel.rst
2025-01-14 18:40 ` Jonathan Corbet
@ 2025-01-14 19:04 ` Phil Auld
2025-01-14 19:50 ` Phil Auld
1 sibling, 0 replies; 7+ messages in thread
From: Phil Auld @ 2025-01-14 19:04 UTC (permalink / raw)
To: Jonathan Corbet; +Cc: linux-kernel, linux-doc
On Tue, Jan 14, 2025 at 11:40:10AM -0700 Jonathan Corbet wrote:
> Phil Auld <pauld@redhat.com> writes:
>
> > On Tue, Jan 14, 2025 at 10:08:13AM -0700 Jonathan Corbet wrote:
> >> Phil Auld <pauld@redhat.com> writes:
> >>
> >> > There is no mention of timer_migration in the docs. Add
> >> > a short description.
> >> >
> >> > Signed-off-by: Phil Auld <pauld@redhat.com>
> >> > Cc: Jonathan Corbet <corbet@lwn.net>
> >> > Cc: linux-doc@vger.kernel.org
> >> > ---
> >> > Documentation/admin-guide/sysctl/kernel.rst | 7 +++++++
> >> > 1 file changed, 7 insertions(+)
> >> >
> >> > diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst
> >> > index b2b36d0c3094..e03691e2cf4a 100644
> >> > --- a/Documentation/admin-guide/sysctl/kernel.rst
> >> > +++ b/Documentation/admin-guide/sysctl/kernel.rst
> >> > @@ -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.
> >>
> >
> >
> > 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.
> >
> > "
>
> 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 :)
>
> > 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
>
> Thanks,
>
> jon
>
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Documentation/sysctl: Add timer_migration to kernel.rst
2025-01-14 18:40 ` Jonathan Corbet
2025-01-14 19:04 ` Phil Auld
@ 2025-01-14 19:50 ` Phil Auld
2025-01-14 19:56 ` Jonathan Corbet
1 sibling, 1 reply; 7+ messages in thread
From: Phil Auld @ 2025-01-14 19:50 UTC (permalink / raw)
To: Jonathan Corbet; +Cc: linux-kernel, linux-doc
Hi Jon,
On Tue, Jan 14, 2025 at 11:40:10AM -0700 Jonathan Corbet wrote:
> Phil Auld <pauld@redhat.com> writes:
>
> > On Tue, Jan 14, 2025 at 10:08:13AM -0700 Jonathan Corbet wrote:
> >> Phil Auld <pauld@redhat.com> writes:
> >>
> >> > There is no mention of timer_migration in the docs. Add
> >> > a short description.
> >> >
> >> > Signed-off-by: Phil Auld <pauld@redhat.com>
> >> > Cc: Jonathan Corbet <corbet@lwn.net>
> >> > Cc: linux-doc@vger.kernel.org
> >> > ---
> >> > Documentation/admin-guide/sysctl/kernel.rst | 7 +++++++
> >> > 1 file changed, 7 insertions(+)
> >> >
> >> > diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst
> >> > index b2b36d0c3094..e03691e2cf4a 100644
> >> > --- a/Documentation/admin-guide/sysctl/kernel.rst
> >> > +++ b/Documentation/admin-guide/sysctl/kernel.rst
> >> > @@ -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.
> >>
> >
> >
> > 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.
> >
> > "
>
> 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... :)
>
> > 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
>
> Thanks,
>
> jon
>
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Documentation/sysctl: Add timer_migration to kernel.rst
2025-01-14 19:50 ` Phil Auld
@ 2025-01-14 19:56 ` Jonathan Corbet
0 siblings, 0 replies; 7+ messages in thread
From: Jonathan Corbet @ 2025-01-14 19:56 UTC (permalink / raw)
To: Phil Auld; +Cc: linux-kernel, linux-doc
Phil Auld <pauld@redhat.com> writes:
>> "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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-01-14 19:56 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-14 14:03 [PATCH] Documentation/sysctl: Add timer_migration to kernel.rst Phil Auld
2025-01-14 17:08 ` Jonathan Corbet
2025-01-14 17:43 ` Phil Auld
2025-01-14 18:40 ` Jonathan Corbet
2025-01-14 19:04 ` Phil Auld
2025-01-14 19:50 ` Phil Auld
2025-01-14 19:56 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).