this post was submitted on 09 Jul 2023
26 points (100.0% liked)

Linux

47494 readers
1454 users here now

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

Related Communities

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

founded 5 years ago
MODERATORS
 

I like to follow articles benchmarking OSs on phoronix a lot. Whenever Arch looks bad I see comments riddled with saying that is because the default scheduler sucks. I feel fairly compitent with Linux but for some reason schedulers seemed like this black box that lives in the realm of places where I normally break my OS from not paying close attention.

Is it a program run by something like systemd? Is it a config or patch of the kernel? Which ones are good and how important are they?

Anyways, any advice on schedulers would be appreciated.

you are viewing a single comment's thread
view the rest of the comments
[–] nous@programming.dev 6 points 1 year ago (2 children)

It is part of their kernel. And there are a few different schedulers at play, you have the CPU one as well as the I/O one. Arch Linux has various different kernels (such as the zen one) that use different CPU schedulers (with lots of options in the AUR as well) and there are various settings you can tweak for different I/O ones.

I general you should go through the Improving performance wiki page on the details for these and even more performance tweaks you can do.

There is also pages for tuning things for better battery life for laptops as well that you may also find interesting.

[–] AlmightySnoo@lemmy.world 1 points 1 year ago (1 children)

Just as a reference, these Phoronix benchmarks don't show any conclusive evidence that the Zen flavor of Arch Linux kernels is faster.

[–] nous@programming.dev 1 points 1 year ago

Faster here has many different meanings. The tests in that benchmark are more batch processing tasks. But that is not the only measure of speed. Zen I believe is more tuned for desktop use and keeping the system in a more snappy state which comes at the cost of some raw throughout performance. There is forever a tradeoff between latency and throughput, optimising for one is generally done at the expense of the other and both are optimising for performance, just different kinds.

I only mentioned zen as one of the official alternative kernels that is worth a look at though, making no claims as to if it the best for anyones particular workloads.

This is why it is best to do your own benchmarks for the stuff you care about and pick the best solution for your situation.

[–] rodbiren@midwest.social 1 points 1 year ago

Arch wiki to the rescue. I swear the forms of arch Linux must just be riddled with references to the wiki. Eventually I'll learn that it just knows. Thanks for the response.