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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content