Bug 1472726 - limiting of cpu/memory resources for the specific process (command) which doesn't have systemd unit created is not allowed (using libcgroup)
limiting of cpu/memory resources for the specific process (command) which doe...
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd (Show other bugs)
7.3
All Linux
medium Severity medium
: rc
: 7.5
Assigned To: systemd-maint
qe-baseos-daemons
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-19 05:36 EDT by dbodnarc
Modified: 2017-07-24 04:13 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-07-24 04:11:09 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description dbodnarc 2017-07-19 05:36:38 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:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Resource_Management_Guide/chap-Using_libcgroup_Tools.html
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):
n/a

How reproducible:
n/a

Actual results:

Expected results:
any possibility to achieve that

Additional info:
Comment 1 Jan Synacek 2017-07-24 04:11:09 EDT
(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.

Note You need to log in before you can comment on or make changes to this bug.