Bug 1740657

Summary: [RFE] NUMA aware CPU affinity setting in systemd unit files
Product: Red Hat Enterprise Linux 8 Reporter: Michal Sekletar <msekleta>
Component: systemdAssignee: Michal Sekletar <msekleta>
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.1CC: jamacku, systemd-maint-list
Target Milestone: rcKeywords: FutureFeature
Target Release: 8.0Flags: msekleta: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-239-42.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 14:53:17 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 Michal Sekletar 2019-08-13 12:32:31 UTC
Description of problem:
Currently (in systemd-243), it is possible to set NUMAPolicy= and NUMAMask= options alongside CPUAffinity= setting in unit files. It makes a lot of sense to introduce a possibility to automatically infer the appropriate value of CPUAffinity= option based on already configured NUMA options.  

Version-Release number of selected component (if applicable):
systemd-219

Actual results:
CPUAffinity= must be explicitly set up with a specific list of CPU indices 

Expected results:
CPUAffinity= can be set to the special value "numa".

Additional info:
https://github.com/systemd/systemd/issues/13248

Comment 5 Lukáš Nykrýn 2020-11-02 15:03:56 UTC
fix merged to github master branch -> https://github.com/systemd-rhel/rhel-8/pull/119

Comment 11 errata-xmlrpc 2021-05-18 14:53:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: systemd security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1611