NAME
  ksm - kernel samepage merging (KSM) information

SYNOPSIS
  ksm [-v] [[-p] address ...]

DESCRIPTION
  This command displays information about all KSM pages currently
  in use.  For each KSM page, the display includes its stable_node
  address, its page struct address, its physical address, the TGID/PID
  for each task that is using the page, and the number of mappings in
  the task's address space for the page.
 
       -v  also dump each virtual address in a PID's virtual address
           space that maps the KSM page.
  address  restricts the output to the KSM data associated with a
           stable_node address, a page's physical address, or a page
           pointer.
       -p  specifies that the address argument is a physical address,
           for architectures that require it.

EXAMPLE
  Display information about all KSM pages:

    crash> ksm
                PAGE: ffffea000ae7f6a8
         STABLE_NODE: ffff8806248c2d80
    PHYSICAL ADDRESS: 31db43000
                 PID: 2205  MAPPINGS: 2

                PAGE: ffffea000ae800f0
         STABLE_NODE: ffff880624aa57b8
    PHYSICAL ADDRESS: 31db72000
                 PID: 2205  MAPPINGS: 2

                PAGE: ffffea000ae7f8d8
         STABLE_NODE: ffff8806248c2dd0
    PHYSICAL ADDRESS: 31db4d000
                 PID: 2205  MAPPINGS: 2
    ...

  Display all information about the KSM page whose physical
  address is 0x626e60000:

    crash> ksm -v 626e60000
                PAGE: ffffea0015882500
         STABLE_NODE: ffff88028b2af3d0
    PHYSICAL ADDRESS: 626e60000
                 PID: 2603  MAPPINGS: 8
                 VIRTUAL:
                 7ff46bcb4000
                 7ff46bcad000
                 7ff46bc9f000
                 7ff46bc7c000
                 7ff46bc6e000
                 7ff46bc67000
                 7ff46bc60000
                 7ff46bc59000