How should KSM be enabled in a RHEV environment?

Solution Verified - Updated -

Issue

  • How should KSM be enabled in a RHEV environment? In the RHEV 2.2 update the Host field now has a place for its status.
  • Which values should be used for the number of pages and sleep value?
  • ksmd is stopped but ksmtuned is started.
  • Why is KSM not working on my RHEL Virtualization Host?
  • Even in a high loaded system, KSM page de-duplication is not working. Both /sys/kernel/mm/ksm/pages_sharing and /sys/kernel/mm/ksm/pages_shared are reporting 0.

Environment

  • Red Hat Enterprise Linux
  • Red Hat Enterprise Virtualization 3.2 and earlier

NOTE: For RHEV 3.3, please refer to this solution: In RHEV 3.3, ksmtuned service is stopped. So, how is KSM being controlled?

NOTE: For RHV 4.0, we recommend using management interface as the preferred way for changing KSM configuration: RHV 4.0 Administration Guide, section 5.2.2.2. Optimization Settings Explained

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.