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

Add a vm.max_map_count for virtualization hosts

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

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • rhel-9.2.0.z, rhel-9.4.z
    • tuned
    • None
    • No
    • Important
    • rhel-net-perf
    • ssg_core_services
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

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

      We have an issue reported at https://issues.redhat.com/browse/RHEL-28947, if there are many virtio-blk devices, disks are used and the VM caused a lot of I/Os to disks, like ODF node, it hit an issue in RHEL-28947.

      What is the impact of this issue to you?

      If this issue in RHEL-28947 happens, the qemu process is crashed and VM suddenly is shut down. This caused heavy support workload at customer side and support team side.

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

      All shipped tuned version.

      How reproducible is this bug?:

      Sometimes

      Steps to reproduce

      Please refer to RHEL-28947

      Expected results

      The issue doesn't happen.

      Actual results

      The issue observed.

      Additional information

      In github's code for tuned, other profiles have the same kernel parameter.

      $ grep vm.max_map_count -r *
      profiles/mssql/tuned.conf:vm.max_map_count=1600000
      profiles/openshift/tuned.conf:vm.max_map_count=262144
      profiles/sap-netweaver/tuned.conf:vm.max_map_count = 2147483647
      

      I think the key point of the resolution is how we calculate the better value to the parameter.
      For example, we assume the maximum configuration for a VM is half number of vCPUs (when there is 24 vCPUs, 12 as assumed maximum) and maximum PCI-E devices connected to virtio-blk device in q35 platform.

      The equation will be

       Calculated vm.max_map_count = half of all vCPUS * queue size(256) * max PCI devices(23)
      

              pzacik@redhat.com Pavol Zacik
              rhn-support-knoha Keigo Noha
              Jaroslav Škarvada Jaroslav Škarvada
              Robin Hack Robin Hack
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: