Bug 2062910

Summary: Modify sched policy and priority of ice-ptp threads
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Telco EdgeAssignee: Joseph Richard <josricha>
Telco Edge sub component: RAN QA Contact: yliu1
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: urgent CC: ealcaniz, keyoung, scuppett, yliu1
Version: 4.9   
Target Milestone: ---   
Target Release: 4.10.z   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2063298 (view as bug list) Environment:
Last Closed: 2022-03-21 12:40:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2058997    
Bug Blocks: 2063298    

Comment 2 yliu1 2022-03-11 19:14:29 UTC
Verified on cnfocto2 with 4.10 build. 

[core@cnfocto2 ~]$ ps -ef | grep "ice-ptp"
root        1117       2  0 Mar10 ?        00:08:01 [ice-ptp-0000:b5]
root        1125       2  0 Mar10 ?        00:00:00 [ice-ptp-0000:b5]
root        1162       2  0 Mar10 ?        00:00:00 [ice-ptp-0000:b5]
root        1167       2  0 Mar10 ?        00:00:00 [ice-ptp-0000:b5]
core     2606457 2588944  0 19:10 pts/2    00:00:00 grep --color=auto ice-ptp
[core@cnfocto2 ~]$ chrt -p
chrt: invalid PID argument: '-p'
[core@cnfocto2 ~]$ chrt -p 1117
pid 1117's current scheduling policy: SCHED_FIFO
pid 1117's current scheduling priority: 10
[core@cnfocto2 ~]$ chrt -p 1125
pid 1125's current scheduling policy: SCHED_FIFO
pid 1125's current scheduling priority: 10
[core@cnfocto2 ~]$ chrt -p 1162
pid 1162's current scheduling policy: SCHED_FIFO
pid 1162's current scheduling priority: 10
[core@cnfocto2 ~]$ chrt -p 1167
pid 1167's current scheduling policy: SCHED_FIFO
pid 1167's current scheduling priority: 10


[yliu1@yliu1 ~]$ podman run $ztp_image cat source-crs/TunedPerformancePatch.yaml
Trying to pull registry-proxy.engineering.redhat.com/rh-osbs/openshift4-ztp-site-generate:v4.10.0...
Getting image source signatures
Copying blob 1d273cf0c199 skipped: already exists  
Copying blob 759b69d3a3dd skipped: already exists  
Copying blob 0c0193d5bbed done  
Copying config 95a5b87fb4 done  
Writing manifest to image destination
Storing signatures
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
  name: performance-patch
  namespace: openshift-cluster-node-tuning-operator
  annotations:
    ran.openshift.io/ztp-deploy-wave: "10"
spec:
  profile:
    - name: performance-patch
      # The 'include' line must match the associated PerformanceProfile name
      # And the cmdline_crash CPU set must match the 'isolated' set in the associated PerformanceProfile
      data: |
        [main]
        summary=Configuration changes profile inherited from performance created tuned
        include=openshift-node-performance-${performance-profile-name}
        [bootloader]
        cmdline_crash=nohz_full=${isolated_cores}
        [sysctl]
        kernel.timer_migration=1
        [scheduler]
        group.ice-ptp=0:f:10:*:ice-ptp.*
        [service]
        service.stalld=start,enable
  recommend:
    - machineConfigLabels:
        machineconfiguration.openshift.io/role: "$mcp"
      priority: 19
      profile: performance-patch

Comment 5 errata-xmlrpc 2022-03-21 12:40:36 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 (OpenShift Container Platform 4.10.5 bug fix 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/RHBA-2022:0928