]> xenbits.xensource.com Git - libvirt.git/commit
node_memory: Expose the APIs to virsh
authorOsier Yang <jyang@redhat.com>
Fri, 14 Sep 2012 14:42:18 +0000 (22:42 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 17 Sep 2012 05:55:35 +0000 (13:55 +0800)
commit0e96fa548937846910cc44d1442bcc658c434964
tree9d8a6fc937c5cfdc1259a1ad11928470aa3743b6
parent8268a24548008401f1b7ff51e1529f29daa3b8c7
node_memory: Expose the APIs to virsh

New command node-memory-tune to get/set the node memory parameters,
only two parameters are allowed to set (pages_to_scan, and sleep_millisecs,
see documents in this patch for more details).

Example of node-memory-tune's output:

Shared memory:
pages_to_scan   100
sleep_millisecs 20
pages_shared    0
pages_sharing   0
pages_unshared  0
pages_volatile  0
full_scans      0
tools/virsh-host.c
tools/virsh.pod