#printk

Gea-Suan Lingslin@abpe.org
2024-09-26

Linux 的 RT (Real-Time) 版本 PREEMPT_RT

在 Hacker News Daily 上看到的,Linux kernel 把 PREEMPT_RT 這個 RT patch 併入 official repository 了:「Real-time Linux is officially part of the kernel after decades of debate」。

這類需求可以在 RTOS 裡面看到完整的說明,大家常用的特性是確保反應時間這點,像是對汽車自動

blog.gslin.org/archives/2024/0

#Computer #Linux #Murmuring #OS #Software #atomic #kernel #linux #output #patch #preempt_rt #printk #realtime #realtime

2024-09-20

📊 #Linux kernel achieves real-time capabilities after 20 years of development

• 🔧 New #CONFIG_PREEMPT_RT option allows compiling a "Fully Preemptible Kernel (#RealTime)"

• 📝 Improvements to #Printk infrastructure ensure log messages don't interfere with time-critical tasks

• ⚙️ #RealTime support requires careful hardware and software optimization

• 🖥️ Unlikely to be relevant for most desktop, laptop, and server use cases

• 🤝 Inclusion in mainline kernel expected to attract new contributors for maintenance and development

• 🔍 Ongoing work to address remaining issues and optimize real-time support for specific components

heise.de/en/news/After-20-year

#DevOps

Thorsten Leemhuis (acct. 1/4)kernellogger@fosstodon.org
2024-09-11

#PREEMPT_RT aka the #realtime support for #LinuxKernel hit #linux-next today! 🥳 👏

git.kernel.org/pub/scm/linux/k

Still remains to be seen if those changes really makes it upstream during the 6.12 merge window and stick:

* It afaics is still unclear if some #printk prerequisites will be submitted for 6.12: lore.kernel.org/all/87ed5za2oj

* Troublemaking changes sometimes are reverted before the final, which in fact happened to some of printk prerequisites a while ago: lore.kernel.org/lkml/202206231

#kernel

Thorsten Leemhuis (acct. 1/4)kernellogger@fosstodon.org
2024-09-05

v6 of the patch-set "add threaded printing + the rest" which "provides the remaining pieces of the #printk rework."[1] is now in #Linux-next – but as of now it's not yet clear if this will be merged for #kernel 6.12.

lore.kernel.org/all/ZthvGoJE26

[1] e.g. the last big missing piece for #Realtime support through #PREEMPT_RT in the mainline #LinuxKernel. But note, this series does *not* provide an nbcon console driver. That will come in a follow-up series.

Thorsten Leemhuis (acct. 1/4)kernellogger@fosstodon.org
2024-08-27

John posted v4 of the patch-set "threaded console printing as well as some other minor pieces" which "provides the remaining pieces of the #printk rework." -- e.g. the last big missing piece for #Realtime support through #PREEMPT_RT in the mainline #Linux #Kernel. But note, "this series does *not* provide an nbcon console driver. That will come in a follow-up series."

lore.kernel.org/all/2024082704

This comes hot on the heels of the "write_atomic() printing" entering -next: fosstodon.org/@kernellogger/11

Thorsten Leemhuis (acct. 1/4)kernellogger@fosstodon.org
2024-08-22

The improved #printk series "wire up write_atomic() printing" is now in -next again and thus slated for inclusion in #Linux 6.12. This is one of the last important bits for proper #REALTIME support with #PREEMPT_RT in mainline – but not the last, as this series does not include threaded printing or nbcon drivers, as those will come later: lore.kernel.org/all/ZsWxpVG8uZ

A earlier version of the patch set was supposed to go into #kernel 6.11, but Linus was unhappy: lore.kernel.org/lkml/CAHk-=whU

Thorsten Leemhuis (acct. 1/4)kernellogger@fosstodon.org
2024-07-22

John posted v3 of the patch-set with the "remaining pieces of the #printk rework" to support threaded console printing, which is last big missing piece missing to support #realtime with the mainline #Linux #kernel through #PREEMPT_RT:

lore.kernel.org/all/2024072217

Thorsten Leemhuis (acct. 1/4)kernellogger@fosstodon.org
2024-06-04

The last step in the #Linux #kernel #printk rework saga (the last big pre-requisite before #PREEMPT_RT can be mainlined) is getting closer:

John submitted the printk patch series "add threaded printing + the rest", which '"provides the remaining pieces of the printk rework. All other components are either already mainline or are currently in linux-next. […] Note that this series does *not* provide an nbcon console driver. That will come in a follow-up series."'

lore.kernel.org/all/2024060323

Thorsten Leemhuis (acct. 1/4)kernellogger@fosstodon.org
2024-05-29

Another step closer for #PREEMPT_RT support in the upstream #LinuxKernel:

The #printk patch series "wire up write_atomic() printing"[1] is now in #linux-next[2] and thus slated for inclusion in #kernel 6.11. 🥳

Note, that series does _not_ include threaded printing or nbcon
drivers. Those features will be added in separate follow-up
series.

[1] lore.kernel.org/all/2024052706

[2] git.kernel.org/pub/scm/linux/k

Thorsten Leemhuis (acct. 1/4)kernellogger@fosstodon.org
2023-11-04

Another small step to get #RT aka #Realtime aka #PREEMPT_RT support mainlined was taken, as more preparations for introducing #printk kthreads were merged for #Linux #kernel 6.7: git.kernel.org/torvalds/c/2a80

That work comes from this series:
lore.kernel.org/all/2023091619

But some more work is needed to finally make the #LinuxKernel printk stack be rt capable, as threaded printing, atomic printing regions, or nbcon drivers are still missing afaics.

Thorsten Leemhuis (acct. 1/4)kernellogger@fosstodon.org
2022-12-12

Merged for #LinuxKernel 6.2: #printk patches to reduce the console_lock scope.

They prepare printk for threaded/atomic
printing, which is needed to finally make printk #PREEMPT_RT (aka #REALTIME) safe: git.kernel.org/torvalds/c/98d0

More details in the cover letter of the submission of those patches: lore.kernel.org/lkml/202211161 #Linux #kernel

lime with videoscanlime@diode.zone
2021-11-16

linux kernel debugging, and cat // 2021-11-15

diode.zone/videos/watch/55ff7b

2019-09-10

沒寫過 linux kernel mode 真的不知道 #printk %p 有這麼多花樣...

kernel.org/doc/html/latest/cor

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst