|
|
Subscribe / Log in / New account

stdout?

stdout?

Posted Jun 7, 2024 16:59 UTC (Fri) by glenn (subscriber, #102223)
Parent article: A generic ring buffer for the kernel

I'd be thrilled to be able to send stdout to a ring buffer file in a tmpfs. It would give me more confidence that I won't overflow my tmpfs. Folks who want to (try) to retain the entire file could "tail -f" the ring buffer file to disk. This approach has worked well for the ftrace buffers. I've tried transforming and sending stdout to ftrace instance-bufers as trace markers, but the solution was pretty janky.


to post comments

stdout?

Posted Jun 7, 2024 18:00 UTC (Fri) by abatters (✭ supporter ✭, #6932) [Link] (1 responses)

I have used an out-of-tree kernel module called emlog for this:

https://www.circlemud.org/jelson/software/emlog/

Although the site does not appear responsive at the moment.

stdout?

Posted Jun 7, 2024 18:02 UTC (Fri) by abatters (✭ supporter ✭, #6932) [Link]

stdout?

Posted Jun 7, 2024 18:59 UTC (Fri) by koverstreet (✭ supporter ✭, #4296) [Link]

so you want to map a ringbuffer where the buffer (not the head/tail pointer page) is mapped from another file?

that'd be interesting


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