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

tuned sorts ostree kargs so setting size of 2M and 1G hugepages is not possible

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

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Critical Critical
    • rhel-9.6.z
    • rhel-9.4
    • tuned
    • None
    • tuned-2.25.1-2.el9_6
    • None
    • Low
    • 1
    • rhel-net-perf
    • ssg_core_services
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • N&P-25_2
    • None

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

      Use tuned to set up both hugepages size via kargs on ostree system

      Please provide the package NVR for which bug is seen:

      tuned-2.22.1-1.4.20240530git5385fa99.el9fdp.noarch

      How reproducible:

      100%

      Steps to reproduce

      1. [bootloader]
        cmdline_microshift_hp=+hugepagesz=2M hugepages=15 hugepagesz=1G hugepages=1
        1.  

      Expected results

      Kernel arguments are passed to `rpm-ostree kargs` in specified order so it's possible to set both 1G and 2M hugepages

      Actual results

      1. in /var/log/tuned/tuned.log:
        2024-07-02 03:32:55,567 INFO     tuned.plugins.plugin_bootloader: rpm-ostree kargs - appending: '['skew_tick=1', 'tsc=reliable', 'rcupdate.rcu_normal_after_boot=1', 'nohz=on', 'nohz_full=', 'rcu_nocbs=', 'tuned.non_isolcpus=00000003', 'intel_pstate=disable', 'nosoftlockup', 'hugepagesz=2M', 'hugepagesz=1G', 'hugepages=15', 'hugepages=1']'; deleting: '[]'
      2. $ cat /proc/cmdline
        BOOT_IMAGE=(hd0,msdos2)/ostree/rhel-c7eb6ece2deba99088611c03998c47a2eadc306686030ab35f05438c2e13ea19/vmlinuz-5.14.0-427.22.1.el9_4.x86_64+rt crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M rd.lvm.lv=rhel/root fips=0 console=ttyS0,115200n8 root=/dev/mapper/rhel-root rw ostree=/ostree/boot.1/rhel/c7eb6ece2deba99088611c03998c47a2eadc306686030ab35f05438c2e13ea19/0 skew_tick=1 tsc=reliable rcupdate.rcu_normal_after_boot=1 nohz=on nohz_full= rcu_nocbs= tuned.non_isolcpus=00000003 intel_pstate=disable nosoftlockup hugepagesz=2M hugepagesz=1G hugepages=15 hugepages=1
      3. sudo journalctl:
        Jul 02 03:34:12 localhost kernel: HugeTLB: allocating 15 of page size 1.00 GiB failed.  Only allocated 1 hugepages.
        Jul 02 03:34:12 localhost kernel: HugeTLB: hugepages= specified twice without interleaving hugepagesz=, ignoring hugepages=1

              pzacik@redhat.com Pavol Zacik
              pmatusza@redhat.com Patryk Matuszak
              Jaroslav Škarvada Jaroslav Škarvada
              Robin Hack Robin Hack
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: