|
|
Subscribe / Log in / New account

Why printk() is so complicated (and how to fix it)

Why printk() is so complicated (and how to fix it)

Posted Oct 4, 2019 16:37 UTC (Fri) by zlynx (guest, #2285)
In reply to: Why printk() is so complicated (and how to fix it) by shalem
Parent article: Why printk() is so complicated (and how to fix it)

This One Ring Buffer would of course be a ring of pointers to every other ring buffer.


to post comments

Why printk() is so complicated (and how to fix it)

Posted Oct 7, 2019 12:22 UTC (Mon) by ncultra (✭ supporter ✭, #121511) [Link]

The virtio ring buffer is most frequently used as a ring of pointers to other buffers. This wreaks havoc with performance as the virtual machine monitor is constantly having to (re) map the pointed-to buffer addresses to host-physical from guest-physical. Just something to consider. The newer virtio spec has a good solution to this (anti) feature, but it is only recently in the mainline kernel, so most distributions still have to deal with what virtio calls indirect buffers. It's easy to overlook the performance impact of "indirect" memory access and function calls.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds