Bug 1472726

Summary: limiting of cpu/memory resources for the specific process (command) which doesn't have systemd unit created is not allowed (using libcgroup)
Product: Red Hat Enterprise Linux 7 Reporter: dbodnarc
Component: systemdAssignee: systemd-maint
Status: CLOSED NOTABUG QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: jsynacek, systemd-maint-list
Target Milestone: rc   
Target Release: 7.5   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-24 08:11:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description dbodnarc 2017-07-19 09:36:38 UTC
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 08:11:09 UTC
(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.