Re: [Nix-dev] cgroups, cpu.rt_runtime_us

2014-07-21 Thread Eelco Dolstra
Hi,

On 20/07/14 17:00, Marc Weber wrote:

> 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.

It doesn't exist. Once upon a time systemd had a generic ControlGroupAttribute
setting, but it has been removed.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] cgroups, cpu.rt_runtime_us

2014-07-20 Thread Marc Weber
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 = "25"; }
{ domain = "@audio"; type = "-"; item = "nice"; value = "-10"; }
];

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

  echo 90 > /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
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev