I have the following kernels installed:

  • linux-zen (Zen)
  • linux-rt (RealTime)
  • linux-hardened (Security Hardened)
  • linux-lts (Long Term Support)
  • linux-tr-lts (Realtime LTS)

When I boot up, I try the different kernels from time to time just to see if anything interesting happens. It never does.

My question: How do I actually physically notice the difference between these kernels? If I use RT, does Firefox spawn quicker (in my testing, no, not really)?

What are some use cases when I can really see the difference in these kernels?

You are viewing a single thread.
View all comments
9 points

Realtime is not about being fast, it’s about time guarantees. It helps with or is required for workloads that require realtime, which I think includes audio production, but might also be helpful for things like controllers etc. where you need to make sure incoming data is processed in a guaranteed time or else fail. Browsing the web isn’t part of these, so an RT kernel will most likely be a hindrance.

permalink
report
reply
4 points

Ok this discussion reminds me of a gripe: Is there a Linux distribution or kernel that prioritizes the UI over everything else, including an OOM situation?

I’ve never had (modern) Windows kernel panic on me, or completely slow to the point I can’t get Ctrl+Alt+Del registered.

Let me know if I’m just using Linux stupidly though…

permalink
report
parent
reply
2 points

I’ve definitely had Windows hard lock before and stop responding to the keyboard, from Win95 all the way to Win10. I have no experience with Win11 so I can’t speak for that, but all others have situations where it can happen.

In fact, Windows is bad enough that the disk usage being high can cause the system to stop responding until it’s done and drops back down.

permalink
report
parent
reply
0 points

You can jam the Windows UI by spawning loads of processes with equivalent or higher priority to explorer.exe, which runs the desktop as they’ll compete for CPU time. The same will happen if you do the equivalent under Linux. However if you have one process that does lots of small allocations, under Windows, once the memory and page file are exhausted, eventually an allocation will fail, and if the application’s not set up to handle that, it’ll die and you’ll have free memory again. Doing the same under every desktop Linux distro I’ve tried (which have mostly been Ubuntu-based, so others may handle it better) will just freeze the whole machine. I don’t know the details, but I’d guess it’s that the process gets suspended until its request can be fulfilled, so as long as there’s memory, it gets it eventually, but it never gets told to stop or murdered, so there’s no memory for things like the desktop environment to use.

permalink
report
parent
reply
2 points

There’s a systemd OOM service that can be setup. I use CachyOS and they have it as a checkbox to turn it on or off.

permalink
report
parent
reply
0 points

Going to look into this, thanks!

permalink
report
parent
reply
1 point

I thought that’s what Zen was for

permalink
report
parent
reply
0 points

Yeah I’ve had multiple times where a silly process (usually a game running via WINE) will shit itself and lock the whole desktop. it’s my only gripe even if it’s rare

permalink
report
parent
reply
3 points

Yes, aircraft for example. If the pilot says “gear down”, the gear must go down in short order. You can’t say “well I think I’ll check the airspeed sensor a few times first”.

permalink
report
parent
reply
3 points

aircraft for example

due to DO-178C requirements, Linux can’t be used there… yet.

permalink
report
parent
reply
1 point

But it’s used in PES (Passenger Entertainment Systems) at least.

permalink
report
parent
reply
1 point

I think realtime is on mainline now since 6.12 though so anyone with at least 6.12 should be able to use rt functionality.

permalink
report
parent
reply
0 points
*

I think banking is the old standard example of real time kernel needs. Money goes in, numbers go up, no time to explain the tide.

permalink
report
parent
reply
2 points
*

I don’t know if you’re being serious, but I can confirm from my time at as a developer at a banking software company, we didn’t use a hard RT OS even for like Mosler or Hitachi high speed check sorters. Just fast C++ code. (On Windows XP still, when I left in 2016)

(Work load is basically: batch of checks is loaded into an input hopper, along with check sized pieces of paper which are headers and footers, machine rapidly scans MICR lines and they go flying towards output pockets, and our code has something like 20 ms to receive the MICR data and pass back a sorting decision.)

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 7K

    Monthly active users

  • 7K

    Posts

  • 188K

    Comments