Red Hat Bugzilla – Bug 1461838
RFE: Add "process" rule for recommend_profile
Last modified: 2017-08-09 12:05:14 EDT
Description of problem:
There is currently no way of "recommend"ing a profile based on processes running on the system. I believe it would be useful if a "tuned" user could specify (in /etc/tuned/recommend.conf) something like
Multiple process=<regex> key-value pairs within a profile section would serve as a logical AND condition, i.e. the profile would only be selected if all processes were running on the system.
Version-Release number of selected component (if applicable):
At the moment the motivation for this is selecting a tuned profile for an Openshift router based on the presence of a haproxy process, but I'm sure there might be other use cases.
I think it will be beneficial.
Unfortunately the current parser (configobj) doesn't allow multiple keywords (i.e. multiple 'process=regex' lines), but it shouldn't be problem to differentiate it by unique suffix, e.g.:
Upstream patch adding this functionality:
Tested upstream patch in #3, works fine.