Coder Social home page Coder Social logo

Cpu governor about chimeraos HOT 18 CLOSED

chimeraos avatar chimeraos commented on May 20, 2024
Cpu governor

from chimeraos.

Comments (18)

feilen avatar feilen commented on May 20, 2024 1

sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor <<< performance

from chimeraos.

alkazar avatar alkazar commented on May 20, 2024

I am not sure it is a good idea to set the governor to performance though. It may affect thermals or the longevity of hardware to have it on all the time.

Also, in kernel 5.4 (included in GamerOS 12) there is a new default governor called schedutil. Apparently, the plan is to remove the performance governor completely. All other governors have already been removed.

https://www.phoronix.com/scan.php?page=news_item&px=CPUFreq-Schedutil-Future-Maybe

from chimeraos.

dubigrasu avatar dubigrasu commented on May 20, 2024

Well, in performance mode it just stays full clock, not necessarily full temp (unless there's something horribly wrong with the cooling). I'm running my machines this way since IDK, a decade or more, and I have yet to see issues. (there's a word to be said about energy consumption though.)
When the CPU starts getting used is basically the same thing (from thermal point of view) with the powersave/ondemand governor, just that it doesn't keep micro-jumping between states (hence, less stutter caused by that).
That being said, having the governor on performance simply by default is overkill, I believe. Better have it as an option, or have something like Feral's gamemode implemented.

from chimeraos.

tommy4st avatar tommy4st commented on May 20, 2024

Could the bad performance be related to the fsync patch or the lack thereof?

from chimeraos.

sciroccogti82 avatar sciroccogti82 commented on May 20, 2024

well from arch wiki "The intel_pstate driver supports only the performance and powersave governors, but they both provide dynamic scaling. The performance governor should give better power saving functionality than the old ondemand governor. " And in arch it does not always stay in full speed with performance mode, however in powersave it stays very low clocked even in games, so performance governor is a must unless you have a monster of a cpu.

from chimeraos.

dubigrasu avatar dubigrasu commented on May 20, 2024

What CPU do you have?

from chimeraos.

sciroccogti82 avatar sciroccogti82 commented on May 20, 2024

Intel i7 7700k

from chimeraos.

alkazar avatar alkazar commented on May 20, 2024

Feral gamemode is now included in GamerOS 15.

from chimeraos.

feilen avatar feilen commented on May 20, 2024

Is gamemoderun ever called, or is it preloaded some other way?

from chimeraos.

alkazar avatar alkazar commented on May 20, 2024

You have to add it to games in the launch options. There is unfortunately no way to specify global launch options.

from chimeraos.

feilen avatar feilen commented on May 20, 2024

Although the governor doesn't appear to be affected by the blacklist, the IO priority/renicing parts of gamemoderun work if you just launch steam itself with it, it has a built-in blacklist to ignore steam/steamwebhelper: kakra/gamemode@ea8d116

from chimeraos.

alkazar avatar alkazar commented on May 20, 2024

That is interesting. You can actually try this out by adjusting the steam launch command with the following instructions: https://github.com/gamer-os/steamos-compositor-plus#configuration

I am going to test it out. Would appreciate if anyone else could also try it out and let me know how it goes before I turn it on by default.

I am concerned with power usage and thermals mostly.

from chimeraos.

Mohandevir avatar Mohandevir commented on May 20, 2024

Is there a way to manually change the cpu governor? I tried cpupower, but it's not recognized.

I'm having a lot of stutter on GamerOS, that didn't happen on my Mint/Ubuntu installs, on my Ryzen 5-3600. I was wondering if this could be the cause.

Thanks!

from chimeraos.

sharkwouter avatar sharkwouter commented on May 20, 2024

sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor <<< performance

I don't think this sticks if you reboot, though.

from chimeraos.

Mohandevir avatar Mohandevir commented on May 20, 2024

Thanks for your help!

Found this on the subject:

"Make changes permanent

For example, to set the scaling governor of the CPU core 0 to performance while the scaling driver is acpi_cpufreq, create the following udev rule:

/etc/udev/rules.d/50-scaling-governor.rules

SUBSYSTEM=="module", ACTION=="add", KERNEL=="acpi_cpufreq", RUN+="/bin/sh -c 'echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor'""

Is there a way to adapt this to GamerOS?

Source:
https://wiki.archlinux.org/index.php/CPU_frequency_scaling

from chimeraos.

Samsagax avatar Samsagax commented on May 20, 2024

Feral gamemode is now included in GamerOS 15.

I noticed the gamemode daemon is not enabled in GamerOS 23. Shadow of the Tomb Raider complained it doesn't have the governor set to performance and it's a known title to have Feral interactive gamemode built in.

I had to enable it myself from command line. Maybe it should be enabled by default for the user?

This is what I did:

$ systemctl --user start gamemoded.service
$ systemctl --user enable gamemoded.service

It should not be hard to integrate in GamerOS build as a user service. After that any game can request gamemode by adding gamemoderun %command% to the game command line under properties in Steam or via steam-tweaks

from chimeraos.

pastaq avatar pastaq commented on May 20, 2024

Can we close this?

from chimeraos.

Samsagax avatar Samsagax commented on May 20, 2024

Since we have gamemode daemon enabled by default we can close this one.

from chimeraos.

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.