I am trying to modify the real-time runtime parameter of a docker container process within a cgroup. I am following this tutorial: http://www.breakage.org/2014/08/22/using-sched_fifo-in-docker-containers-on-rhel/
Sometimes, the write to the docker-[ID].scope file works. Sometimes it returns the following error: echo: write error: Invalid argument
I'm trying to understand why this happens. Is there some sort of maximum that comes into play? More generally, is there a way to configure the process to be in the root cgroup or in a different cgroup such that this operation is guaranteed to succeed, or at least makes sense as to why it is succeeding or failing?
Edit: Centos 7.0.1406 Linux kernel 3.10.0-123.el7.x86_64
Edit: I'm running multiple containers and trying to accomplish the same goal within several of them (4-5)