Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-76371

KSM is enabled too late

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • CNV v4.20.0
    • CNV Virt-Node
    • None
    • Quality / Stability / Reliability
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None

      Description of problem:

      KSM is enabled by handler at 80% mem utilization (by default).
      However, KSM takes a while to have a positive effect on the memory consumption (aka reduce memory load).
      
      The problem is if memory keeps increasing after going beyond 80% and will eventually hit the hard-eviction threshold of the node, which will then lead to eviction of VMs.
      

      Version-Release number of selected component (if applicable):

      4.20
      

      How reproducible:

      Always
      

      Steps to Reproduce:

      1. Create many VMs which will eventually use (in sum) 95% of the allocatable memory of a node (or as much as possible)
      2. Hard eviction (or soft eviciton if configured) will be triggered
      3. 
      

      Actual results:

      Some VMs will be evicted
      

      Expected results:

      KSM is enabled earlier in order to avoid running out of memory
      

      Additional info:

      Enabling KSM earlier is not solving this test-case per se, because if VMs start to too quickly consume memory, then we will still run out of it.
      Thus starting it earlier is just improving the situation.
      

              sgott@redhat.com Stuart Gott
              fdeutsch@redhat.com Fabian Deutsch
              Denys Shchedrivyi Denys Shchedrivyi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: