[Nix-dev] cgroups, cpu.rt_runtime_us

Marc Weber marco-oweber at gmx.de
Sun Jul 20 17:00:37 CEST 2014


While trying to run jack1d I noticed that I had to change some limits:


security.pam.loginLimits = [

        # jackd:
        { domain = "@audio"; type = "-"; item = "rtprio"; value = "100"; }
        { domain = "@audio"; type = "-"; item = "memlock"; value = "250000"; }
        { domain = "@audio"; type = "-"; item = "nice"; value = "-10"; }
];

as well as assign cpu.rt_runtime_us (otherwise sched_setscheduler
fails):

  echo 900000 > /sys/fs/cgroups/cpu,cpuacct/user.slice/cpu.rt_runtime_us

Is there a systemd way to set cpu.rt_runtime_us value or is it most
simple to just create a startup script assigning it?

Eg nixos manual and http://www.freedesktop.org/software/systemd/man/systemd.resource-control.html
mention some specific settings such as MemoryLimit, but I didnt't find a
rt_runtime_us setting there.

Marc Weber


More information about the nix-dev mailing list