Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2063298

Summary: Modify sched policy and priority of ice-ptp threads
Product: OpenShift Container Platform Reporter: Joseph Richard <josricha>
Component: Telco EdgeAssignee: Ken Young <keyoung>
Telco Edge sub component: RAN QA Contact: yliu1
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: urgent CC: ealcaniz, keyoung, obochan, openshift-bugzilla-robot, scuppett
Version: 4.9   
Target Milestone: ---   
Target Release: 4.9.z   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2062910 Environment:
Last Closed: 2022-03-17 06:35:41 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: 2062910    
Bug Blocks:    

Comment 3 obochan 2022-03-13 15:57:29 UTC
issue is verified in version 

[obochan@obochan ptp_goLang]$ oc version 
Client Version: 4.8.0
Server Version: 4.9.24
Kubernetes Version: v1.22


[obochan@obochan ptp_goLang]$ oc get tuneds.tuned.openshift.io -n openshift-cluster-node-tuning-operator performance-patch -o yaml
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
  creationTimestamp: "2022-03-13T12:29:26Z"
  generation: 1
  name: performance-patch
  namespace: openshift-cluster-node-tuning-operator
  resourceVersion: "20250"
  uid: 601269f9-05da-47a4-bc12-16980af00f66
spec:
  profile:
  - data: |
      [main]
      summary=Configuration changes profile inherited from performance created tuned
      include=openshift-node-performance-openshift-node-performance-profile
      [bootloader]
      cmdline_crash=nohz_full=2-19,22-39
      [sysctl]
      kernel.timer_migration=1
      [scheduler]
      group.ice-ptp=0:f:10:*:ice-ptp.*
      [service]
      service.stalld=start,enable
    name: performance-patch
  recommend:
  - machineConfigLabels:
      machineconfiguration.openshift.io/role: master
    priority: 19
    profile: performance-patch


[obochan@obochan ptp_goLang]$ oc get csv -A | grep ptp
openshift-ptp                                      performance-addon-operator.v4.9.6           Performance Addon Operator                               4.9.6                           Succeeded
openshift-ptp                                      ptp-operator.4.9.0-202203081819             PTP Operator                                             4.9.0-202203081819              Succeeded
[obochan@obochan ptp_goLang]$ oc debug node/cnfocto2.ptp.lab.eng.bos.redhat.com

Starting pod/cnfocto2ptplabengbosredhatcom-debug ...
To use host binaries, run `chroot /host`
Pod IP: 10.16.231.12
If you don't see a command prompt, try pressing enter.
sh-4.4# chroot /host
sh-4.4# ps -ef | grep "ice-ptp"
root        1128       2  0 12:56 ?        00:00:00 [ice-ptp-0000:b5]
root        1137       2  0 12:56 ?        00:00:00 [ice-ptp-0000:b5]
root        1156       2  0 12:56 ?        00:00:00 [ice-ptp-0000:b5]
root        1159       2  0 12:56 ?        00:00:00 [ice-ptp-0000:b5]
root      510158  509883  0 15:38 ?        00:00:00 grep ice-ptp
sh-4.4# chrt -p 1128
pid 1128's current scheduling policy: SCHED_FIFO
pid 1128's current scheduling priority: 10
sh-4.4# chrt -p 1137
pid 1137's current scheduling policy: SCHED_FIFO
pid 1137's current scheduling priority: 10
sh-4.4# chrt -p 1156
pid 1156's current scheduling policy: SCHED_FIFO
pid 1156's current scheduling priority: 10
sh-4.4# chrt -p 1159
pid 1159's current scheduling policy: SCHED_FIFO
pid 1159's current scheduling priority: 10

[kni@ran-vcl01-installer ~]$ ztp_image=registry-proxy.engineering.redhat.com/rh-osbs/openshift4-ztp-site-generate:v4.9.0
[kni@ran-vcl01-installer ~]$ podman rmi -f $ztp_image 
Untagged: registry-proxy.engineering.redhat.com/rh-osbs/openshift4-ztp-site-generate:v4.9.0
[kni@ran-vcl01-installer ~]$ podman run $ztp_image cat /usr/src/hook/ztp/source-crs/TunedPerformancePatch.yaml
Trying to pull registry-proxy.engineering.redhat.com/rh-osbs/openshift4-ztp-site-generate:v4.9.0...
Getting image source signatures
Copying blob 1735a5a19220 skipped: already exists  
Copying blob 1d273cf0c199 skipped: already exists  
Copying blob 759b69d3a3dd [--------------------------------------] 0.0b / 0.0b
Copying config ab58395771 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
spec:
  profile:
    - name: performance-patch
      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: "master"
      priority: 19
      profile: performance-patch

Comment 5 errata-xmlrpc 2022-03-17 06:35:41 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 (4.9 Z Stream bugfixes for Telco RAN), 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:0954