Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-78519

Unable to set irqbalance banned CPU list to isolate cores after activating customer defined profile

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • rhel-9.6
    • tuned
    • None
    • No
    • Important
    • rhel-net-perf
    • ssg_core_services
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      When activating customer tuned profile, irqbalance banned CPU should be isolate cores, but actually found IRQBALANCE_BANNED_CPULIST in /etc/sysconfig/irqbalance are NULL 

      What is the impact of this issue to you?

      Important

      Please provide the package NVR for which the bug is seen:

      5.14.0-564.el9.x86_64

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Install tuned, tuned-profiles-cpu-partitioning RPM 
      [root@dell-per750-34 ~]# uname -r
      5.14.0-564.el9.x86_64 
      [root@dell-per750-34 ~]# yum install -y tuned tuned-profiles-realtime tuned-profiles-nfv tuned-profiles-cpu-partitioning
      1. Create customer tuned performance profile, affinity CPU list is 0-1, 32-33
      [root@dell-per750-34 ~]#  cat /etc/tuned/performance/tuned.conf 
      [main]
      summary=Customize Performance TuneD profile
      include=cpu-partitioning[variables]
      isolated_cores=2,34,3,35,4,36,5,37,6,38,7,39,8,40,9,41,10,42,11,43,12,44,13,45,14,46,15,47,16,48,17,49,18,50,19,51,20,52,21,53,22,54,23,55,24,56,25,57,26,58,27,59,28,60,29,61,30,62,31,63
      not_isolated_cores_expanded="${f:cpulist_invert:${isolated_cores_expanded}}"[cpu]
      force_latency=cstate.id:1|3
      governor=performance
      energy_perf_bias=performance
      min_perf_pct=100[bootloader]
      initrd_remove_dir=
      initrd_dst_img=
      initrd_add_dir=
      cmdline_cpu_part=+nohz=on rcu_nocbs="${isolated_cpu}" tuned.non_isolcpus="${not_isolated_cpumask}" intel_pstate=disable nosoftlockup
      cmdline_realtime=+tsc=nowatchdog intel_iommu=on iommu=pt isolcpus=managed_irq,"${isolated_cpu}" systemd.cpu_affinity="${not_isolated_cores_expanded}"
      cmdline_additionalArg=+ audit=0 idle=poll intel_idle.max_cstate=0 mce=off nmi_watchdog=0 processor.max_cstate=1
      1. Irqbalance banned CPU list is NULL 
      [root@dell-per750-34 ~]# cat /etc/sysconfig/irqbalance | grep IRQBALANCE_BANNED_CPULIST   
      # IRQBALANCE_BANNED_CPULIST
      #IRQBALANCE_BANNED_CPULIST=
      
      1. Start tuned, active performance profile
      [root@dell-per750-34 ~]# systemctl start tuned
      [root@dell-per750-34 ~]# systemctl status tuned
      ○ tuned.service - Dynamic System Tuning Daemon
           Loaded: loaded (/usr/lib/systemd/system/tuned.service; enabled; preset: enabled)
           Active: inactive (dead) since Mon 2025-02-10 00:28:31 EST; 10s ago
             Docs: man:tuned(8)
                   man:tuned.conf(5)
                   man:tuned-adm(8)
          Process: 2731 ExecStart=/usr/sbin/tuned -l -P (code=exited, status=0/SUCCESS)
         Main PID: 2731 (code=exited, status=0/SUCCESS)
              CPU: 813msFeb 10 00:28:30 dell-per750-34.rhts.eng.pek2.redhat.com systemd[1]: Starting Dynamic System Tuning Daemon...
      Feb 10 00:28:31 dell-per750-34.rhts.eng.pek2.redhat.com systemd[1]: tuned.service: Deactivated successfully.
      Feb 10 00:28:31 dell-per750-34.rhts.eng.pek2.redhat.com systemd[1]: Started Dynamic System Tuning Daemon.
      [root@dell-per750-34 ~]# tuned-adm profile performance 
      Trying to (re)start tuned...
      TuneD (re)started.
      TuneD is not active on the DBus, not checking whether the profile was successfully applied.
      [root@dell-per750-34 ~]# tuned-adm list   
      Available profiles:
      - accelerator-performance     - Throughput performance based tuning with disabled higher latency STOP states
      - aws                         - Optimize for aws ec2 instances
      - balanced                    - General non-specialized tuned profile
      - balanced-battery            - Balanced profile biased towards power savings changes for battery
      - cpu-partitioning            - Optimize for CPU partitioning
      - cpu-partitioning-powersave  - Optimize for CPU partitioning with additional powersave
      - desktop                     - Optimize for the desktop use-case
      - hpc-compute                 - Optimize for HPC compute workloads
      - intel-sst                   - Configure for Intel Speed Select Base Frequency
      - latency-performance         - Optimize for deterministic performance at the cost of increased power consumption
      - network-latency             - Optimize for deterministic performance at the cost of increased power consumption, focused on low latency network performance
      - network-throughput          - Optimize for streaming network throughput, generally only necessary on older CPUs or 40G+ networks
      - optimize-serial-console     - Optimize for serial console use.
      - performance                 - Customize Performance TuneD profile
      - powersave                   - Optimize for low power consumption
      - realtime                    - Optimize for realtime workloads
      - realtime-virtual-guest      - Optimize for realtime workloads running within a KVM guest
      - realtime-virtual-host       - Optimize for KVM guests running realtime workloads
      - throughput-performance      - Broadly applicable tuning that provides excellent performance across a variety of common server workloads
      - virtual-guest               - Optimize for running inside a virtual guest
      - virtual-host                - Optimize for running KVM guests
      It seems that tuned daemon is not running, preset profile is not activated. 
      1. Irqbalance banned CPU list is still NULL, it should be isolate cores, 2-31,34-63
      [root@dell-per750-34 ~]# cat /etc/sysconfig/irqbalance | grep IRQBALANCE_BANNED_CPULIST   
      # IRQBALANCE_BANNED_CPULIST
      #IRQBALANCE_BANNED_CPULIST=
      
      1.  

      Expected results

      Active performance profile, irqbalance banned CPU should be isolate cores

      Actual results

      irqbalance CPU cores don't be set

              pzacik@redhat.com Pavol Zacik
              rh-ee-xudu Xu Du
              Jaroslav Škarvada Jaroslav Škarvada
              Robin Hack Robin Hack
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: