Skip to contentSkip to conversation

sched/core: Update kernel boot parameters for LAZY preempt.

PATCH Applied Sebastian Andrzej Siewior 3 participants 3 messages Nov 22, 2024 – Dec 2, 2024 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched/core: Update kernel boot parameters for LAZY preempt.

Update the documentation for the preempt=' parameter which now also accepts lazy'.

Fixes 7c70cb94d29cd ("sched: Add Lazy preemption model")
---
 Documentation/admin-guide/kernel-parameters.txt | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/admin-guide/kernel-parameters.txt +5 -0
index 9cd9cd06538bf..23d9bd5ea7e47 100644
@@ -4818,6 +4818,11 @@
 			       can be preempted anytime.  Tasks will also yield
 			       contended spinlocks (if the critical section isn't
 			       explicitly preempt disabled beyond the lock itself).
+			lazy - Scheduler controlled. Similar to full but instead
+			       of preempting the task immediately, the task gets
+			       one HZ tick time to yield itself before the
+			       preemption will be forced. One preemption is when the
+			       task returns to user space.
 
 	print-fatal-signals=
 			[KNL] debug: print fatal signals
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Sebastian Andrzej Siewior

Update the documentation for the preempt=' parameter which now also accepts lazy'.

Fixes 7c70cb94d29cd ("sched: Add Lazy preemption model")
---
  Documentation/admin-guide/kernel-parameters.txt | 5 +++++
  1 file changed, 5 insertions(+)
Documentation/admin-guide/kernel-parameters.txt +0 -0
index 9cd9cd06538bf..23d9bd5ea7e47 100644
@@ -4818,6 +4818,11 @@
  			       can be preempted anytime.  Tasks will also yield

Documentation/admin-guide/kernel-parameters.txt line 4828

Quoted 10 lines
Documentation/admin-guide/kernel-parameters.txt +5 -0
  			       contended spinlocks (if the critical section isn't
  			       explicitly preempt disabled beyond the lock itself).
+			lazy - Scheduler controlled. Similar to full but instead
+			       of preempting the task immediately, the task gets
+			       one HZ tick time to yield itself before the
+			       preemption will be forced. One preemption is when the
+			       task returns to user space.
 
  	print-fatal-signals=
  			[KNL] debug: print fatal signals
#2 lore raw
In reply to Sebastian Andrzej Siewior
The following commit has been merged into the sched/core branch of tip:

The following commit has been merged into the sched/core branch of tip:

Commit-ID:     f66e4a996582d59b6f5ce88078b0ad2a328aa532
Gitweb:        https://git.kernel.org/tip/f66e4a996582d59b6f5ce88078b0ad2a328aa532
Author:        Sebastian Andrzej Siewior <[email protected]>
AuthorDate:    Fri, 22 Nov 2024 18:35:57 +01:00
Committer:     Peter Zijlstra <[email protected]>
CommitterDate: Mon, 02 Dec 2024 12:01:28 +01:00

sched/core: Update kernel boot parameters for LAZY preempt.

Update the documentation for the preempt=' parameter which now also accepts lazy'.

---
 Documentation/admin-guide/kernel-parameters.txt | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/admin-guide/kernel-parameters.txt +5 -0
index dc663c0..3872bc6 100644
@@ -4822,6 +4822,11 @@
 			       can be preempted anytime.  Tasks will also yield
 			       contended spinlocks (if the critical section isn't
 			       explicitly preempt disabled beyond the lock itself).
+			lazy - Scheduler controlled. Similar to full but instead
+			       of preempting the task immediately, the task gets
+			       one HZ tick time to yield itself before the
+			       preemption will be forced. One preemption is when the
+			       task returns to user space.
 
 	print-fatal-signals=
 			[KNL] debug: print fatal signals