Red Hat Bugzilla – Bug 1472726
limiting of cpu/memory resources for the specific process (command) which doesn't have systemd unit created is not allowed (using libcgroup)
Last modified: 2017-07-24 04:13:02 EDT
Description of problem:
Customer wants to be able to limit the usage, both CPU and Memory, of any process, command or any binary that has been launched by any user (previously known) in RHEL7.
It should be just a process without any systemd service unit created for it.
In RHEL 6, cgrules.con and cgconfig.conf could be used to establish "user:command cpu,memory name_of_cgroup/" for limiting the command "command" in CPU and Memory that was launched by a user "user" in any moment.
But now, as per documentation available:
and it is not allowed to use libcgroup for resource controllers such as cpu and memory as they are now an exclusive domain of systemd.
So how can we do the same in RHEL 7 without violating (without skipping) the indications in the Red Hat documentation of not using cgrules.conf or cgconfig.conf for CPU and memory subsystems?
I can't find any documented way to achieve exact customer request in RHEL7.
Version-Release number of selected component (if applicable):
any possibility to achieve that
(In reply to dbodnarc from comment #0)
> Description of problem:
> Customer wants to be able to limit the usage, both CPU and Memory, of any
> process, command or any binary that has been launched by any user
> (previously known) in RHEL7.
> It should be just a process without any systemd service unit created for it.
That's not possible, as far as I know. If you want to manage processes, you have to use systemd units for that.
Also, please don't use bugzilla to ask general questions. You can use our mailing lists for that.