Giter Club home page Giter Club logo

Comments (10)

ryanmusante avatar ryanmusante commented on July 16, 2024

Currently a script like this is necessary but it would be nice if it could be included with ananicy to automatically bind particulars to cpus with individual rules.

pid=$(pgrep -x task.exe)
taskset -cp 2,4,6 $pid

from ananicy.

Nefelim4ag avatar Nefelim4ag commented on July 16, 2024

That not a problem with implement rule handler, which will bind some pid to some CPU.
Main "problem" with that, everyone who want use it, must write a rule for that.

from ananicy.

ryanmusante avatar ryanmusante commented on July 16, 2024

True, if it was default, it would become a problem for others.

from ananicy.

terencode avatar terencode commented on July 16, 2024

Aren't their some configuration that makes sense for everyone? What about binding games to the first cores up (until number of cores / 2) ? And I'd like to know when using irqbalance makes sense because I have still mixed feelings about it. To me it looks like it's nice for regular apps but should be avoided for RT stuffs (music, games..) so what would be convenient to do?

from ananicy.

Nefelim4ag avatar Nefelim4ag commented on July 16, 2024

May be just add cgroup support?

I think about add something like:
Create cgroup name N
Change cpu share 1024 -> 512
And move noisy processes to that cgroup.

If i understood correctly, that will allow use up to 100% of cpu, if no other tasks use cpu,
and restrict cpu usage down to 50%, if someone others are hungry.

from ananicy.

Nefelim4ag avatar Nefelim4ag commented on July 16, 2024

i.e. irqbalance are cool, but i don't think that general home system/notebook have really much IRQ like some busy servers with big links have.

Cpu bind, which problem bind will fix?
Without some magic (tickless NOHZ), kernel will reschedule app on every HZ.

I can miss something of course, just my thoughts.

from ananicy.

Nefelim4ag avatar Nefelim4ag commented on July 16, 2024

Sad, but CPUShares not work as i expect.
Any way, we have a cpuset cgroup and cpu accounting cgroup,
first can move processes to specific CPUs, last can restrict max cpu usage for processes in cgroup.

from ananicy.

terencode avatar terencode commented on July 16, 2024

@Nefelim4ag Ok, so what do you think could be done?

from ananicy.

Nefelim4ag avatar Nefelim4ag commented on July 16, 2024

@terencode,
I can add some cgroup controlling code, which will restrict cpu usage of processes. If you think what that will be useful.

Also you can play with:
/sys/fs/cgroup/cpuset and others cgroup controllers, and add suggestion, if you found some of them are useful.

Thanks.

from ananicy.

terencode avatar terencode commented on July 16, 2024

Thanks for the thoughts, I think what you implemented is already enough for the average user.
As you said, the rest would probably only benefit for servers...

from ananicy.

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.