Page MenuHomeFreeBSD

D60558.1795865781.diff
No OneTemporary

Authored By
Unknown
Size
3 KB
Referenced Files
None
Subscribers
None

D60558.1795865781.diff

diff --git a/website/content/en/status/report-2026-07-2026-09/scheduler.adoc b/website/content/en/status/report-2026-07-2026-09/scheduler.adoc
new file mode 100644
--- /dev/null
+++ b/website/content/en/status/report-2026-07-2026-09/scheduler.adoc
@@ -0,0 +1,31 @@
+=== Scheduler
+
+Links: +
+link:https://wiki.freebsd.org/DevSummit/202609[EuroBSDCon 2026 DevSummit Wiki page] URL: https://wiki.freebsd.org/DevSummit/202609 +
+link:https://wiki.freebsd.org/DevSummit/202609?action=AttachFile&do=view&target=EuroBSDCon2026-Scheduler.pdf[Slides] URL: https://wiki.freebsd.org/DevSummit/202609?action=AttachFile&do=view&target=EuroBSDCon2026-Scheduler.pdf
+
+Contact: Olivier Certner <olce@FreeBSD.org> +
+Contact: Minsoo Choo <mchoo@FreeBSD.org>
+
+This quarter, a number of fixes and cleanups were merged to ULE and 4BSD:
+
+- Fix priority conflation of differently-niced CPU-bound threads (4BSD).
+- Fix priority diminishing too slowly when consuming CPU, because of some obsolete SMP scaling (4BSD).
+- Fix selecting lowest priority thread early in some corner cases (ULE).
+- Only allocate local runqueues (used for pinning/bound threads) for CPUs that are actually present (4BSD).
+- Removal of unused `hlt_cpus_mask` and `sched_do_timer_acccounting()`.
+- Removal of unused `kern.sched.4bsd.followon` (4BSD).
+- When setting `kern.sched.{4bsd,ule}.slice`, check the value makes sense and make sure to update dependent internal constants such as `hogticks` and `sched_slice_min`.
+- Ensure `sched_slice_min` and the quantum computation stay sane for small quantum values (ULE).
+- Update some comments.
+
+Work is on-going and nearing completion on cleaning up the machinery allowing multiple scheduler implementations (a.k.a., "instances") to co-exist in the same kernel.
+From a single list of function descriptors, it now automatically produces the declaration of functions in the scheduler interface and in scheduler instances, the fields of the scheduler instance descriptor structure and the dispatching functions.
+A second round of changes is in preparation.
+It includes a new transparent namespacing mechanism allowing to remove implementation functions' namespacing (e.g., having `ule` or `4bsd` in their names) in the source code, in effect renaming them back to their old names, which are those of the interface functions, while keeping the namespacing for C symbols which is required for debugging and in general manipulation by various ELF tools.
+The goals of this last development are to restore inlining opportunities inside scheduler instances, make ctags-like tools like Global work again, and reduce the cognitive burden on developers asking themselves frequently whether a function is part of the interface or not, and thus whether calls should manually be namespaced in the implementation.
+
+Work continues in the background on solutions to long-standing shortcomings in the ULE scheduler such as unfairness for non-interactive threads in certain particular circumstances and the very weak effect of nice values.
+For more information, please consult the link:../report-2026-01-2026-03/#_scheduler[previous report], and the link:https://wiki.freebsd.org/DevSummit/202609?action=AttachFile&do=view&target=EuroBSDCon2026-Scheduler.pdf[slides] of the latest presentation at link:https://wiki.freebsd.org/DevSummit/202609[EuroBSDCon2026's DevSummit].
+
+Sponsor: The FreeBSD Foundation

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 28, 11:36 AM (20 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40570911
Default Alt Text
D60558.1795865781.diff (3 KB)

Event Timeline