mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
virt-install: Add --memtune option
This patch provides the ability to tune memroy tunable parameters for the domain. Also add test cases for --memtune option and update man page. Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
@@ -191,6 +191,12 @@ class XMLParseTest(unittest.TestCase):
|
||||
check("memory_mode", "interleave", "strict", None)
|
||||
check("memory_nodeset", "1-5,^3,7", "2,4,6")
|
||||
|
||||
check = self._make_checker(guest.memtune)
|
||||
check("hard_limit", None, 1024, 2048)
|
||||
check("soft_limit", None, 100, 200)
|
||||
check("swap_hard_limit", None, 300, 400)
|
||||
check("min_guarantee", None, 400, 500)
|
||||
|
||||
check = self._make_checker(guest.blkiotune)
|
||||
check("weight", None, 100, 200)
|
||||
check("device_weight", None, 300)
|
||||
|
||||
Reference in New Issue
Block a user