Giter Club home page Giter Club logo

filefreq's Introduction

NixOS Filefreq - out of tree kernel module derivation

How to Install

  • clone the repository (git clone [email protected]:v-kat/filefreq.git) and place the following on top of your configuration.nix:
filefreq = config.boot.kernelPackages.callPackage /cloned-directory/filefreq/filefreq.nix {};
  • In your configuration.nix place
boot.extraModulePackages = [ filefreq ];
  • rebuild and switch sudo nixos-rebuild switch then sudo insmod /run/current-system/kernel-modules/lib/modules/*/misc/filefreq.ko
  • check that the module loads dmesg | grep "filefreq"
  • Might need your cpufreq governor set to "userspace"
  • This assumes 8 cores and I might go back and modify the code. For now you can modify the 16 in a for loop to change it
  • Also just settings min to 1GHz to down throttle but ran into architecture support with modifying "scaling_available_frequencies"

About

  • Was trying to learn more about nix. Initially tried a kernel flake library https://github.com/jordanisaacs/kernel-module-flake as a builder but was hard to keep it in sync with local kernel version and settings.
  • I also wanted to use rust but out of tree kernel module documentation for 6.3 and 6.4 isn't good or really existent.
  • Might look at the acpi cpufreq driver in the future to see about adding more than 3 frequencies and other changes.
  • I'm trying the https://www.kernel.org/doc/html/latest/admin-guide/pm/amd-pstate.html for now and my main laptop isn't very compatible with mucking with things much further >.<

filefreq's People

Contributors

v-kat avatar

Watchers

 avatar

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.