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.

  • qjkxbmwvz@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 year ago

    Keep in mind that there is, in general, a scheduler tradeoff between latency and throughput.

    So, if you’re doing audio recording and mixing, this is likely to have very different scheduler requirements than something churning through batch jobs. The former wants low latency, the latter high throughput.

  • nous@programming.dev
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    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.

      • nous@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        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.socialOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      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.