Coder Social home page Coder Social logo

Comments (5)

mmstick avatar mmstick commented on May 14, 2024

Want to help out with a PR?

from system76-scheduler.

xalt7x avatar xalt7x commented on May 14, 2024

I'm afraid it will take too much time for me to compile, test and make a PR.

--

Found a good source for the first suggestion (""minimum_granularity" value). It's right in the linux kernel source code (kernel/sched/fair.c):

/*
 * This value is kept at sysctl_sched_latency/sysctl_sched_min_granularity
 */
static unsigned int sched_nr_latency = 8;

from system76-scheduler.

mmstick avatar mmstick commented on May 14, 2024

The default sched_latency is 6ns, and 6ns / 8 = 0.75, so the default that we have with a min granularity of 0.75ns is correct. But we can drop the migration cost change.

from system76-scheduler.

xalt7x avatar xalt7x commented on May 14, 2024

The default sched_latency is 6ns, and 6ns / 8 = 0.75, so the default that we have with a min granularity of 0.75ns is correct.

But in the current readme (and even source code) of system76-scheduler there is suggested "minimum_granularity" value for "Responsive" CPU Scheduler Latency Configuration which is not correct for the most distros.

latency: 4ns
minimum_granularity: 0.4ms

from system76-scheduler.

mmstick avatar mmstick commented on May 14, 2024

That is because the responsive config is the Zen config, which is much more ideal for desktop responsiveness than what most distributions have as their defaults. There wouldn't be any point in having a responsive config if it had the same values the default config. latency 4 / nr_latency 10 = 0.4 minimum granularity.

from system76-scheduler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.