Coder Social home page Coder Social logo

Comments (9)

AdnanHodzic avatar AdnanHodzic commented on May 21, 2024

Sounds like a good idea for settings file idea in #26. Something like this: limit number of cores (available cores: xy)

from auto-cpufreq.

mmstick avatar mmstick commented on May 21, 2024

I have doubts that disabling CPU cores would improve battery life. I suspect this would decrease battery life, because you need to do the same amount of work either way, and forcing work onto fewer processors just keeps the fewer cores operating at higher frequencies for longer periods of time. Efficiency tends to reduce at higher frequencies.

from auto-cpufreq.

Red-Eyed avatar Red-Eyed commented on May 21, 2024

@mmstick yep, you a right. But what if to disable/enable cores depending on the average CPU load % ?
So, if my laptop is on IDLE, than maybe disabling CPU cores will decrease power consumption?

from auto-cpufreq.

AdnanHodzic avatar AdnanHodzic commented on May 21, 2024

The more I'm thinking about this, this shouldn't be part of the settings file, as it will definitely have counter effects as @mmstick pointed out. But I'm sure if load/cpu usage is very low and cores are dropped it'll only increase battery life. Real life example, certain cars (i,e: BMW) are doing this where at low speeds/eco boost mode they only use 1 cylinder to use as little fuel as possible.

Hence we should go in direction of handling this automatically. Where if absolutely minimum load/cpu usage is detected to proceed with disabling the cores. Then with slightness change in cpu/load to enable cores. @Red-Eyed I think we should only make these changes while in powersave.

from auto-cpufreq.

Red-Eyed avatar Red-Eyed commented on May 21, 2024

I think that internal combustion engine(ICE) is a bad analogy as CPU and ICE has different nature, so it needs to be investigated and tested firstly.

Yes, sure in powersave only.

from auto-cpufreq.

AdnanHodzic avatar AdnanHodzic commented on May 21, 2024

I think that internal combustion engine(ICE) is a bad analogy as CPU and ICE has different nature

Agreed, I realized the same as soon as I posted it :)

so it needs to be investigated and tested firstly.

Of course, research and testing is what's it's all about.

Yes, sure in powersave only.

👍

from auto-cpufreq.

LadislavMalecek avatar LadislavMalecek commented on May 21, 2024

I have lightly experimented with disabling CPU cores using cpufreq, and in my case, it increases battery life substantially. On Ryzen 5800h going from 16 threads to 4 increases the battery life from 7.5h to 9.5h while doing very light work/reading and from 4:20 to 5:20h while watching youtube. But more exact testing is needed.

from auto-cpufreq.

AdnanHodzic avatar AdnanHodzic commented on May 21, 2024

With v1.7.0 release it's now possible to manually define some of the settings instead of leaving everything to be picked up automatically. Could you try tweaking some of the available options and report back on how that worked for you?

Considering #26 is now also closed, I'll close this issue as well. Please re-open it if the problem persists.

from auto-cpufreq.

123batman avatar 123batman commented on May 21, 2024

@LadislavMalecek Can you please post your configuration on how to disable cores automatically? Are you using cpufreq and auto-cpufreq in parallel or how does it work?

from auto-cpufreq.

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.