summaryrefslogtreecommitdiffstats
path: root/hw/mem/pc-dimm.c
diff options
context:
space:
mode:
authorzhanghailiang2014-09-23 12:42:24 +0200
committerMichael S. Tsirkin2014-09-29 18:44:04 +0200
commit28d16f38d0d5881f95b074cc802dae8cacc1bf58 (patch)
tree8d4e5bdacbf33c1645b83e4ce6b65d39e0edb9be /hw/mem/pc-dimm.c
parentpc-dimm: Don't check dimm->node when there is non-NUMA config (diff)
downloadqemu-28d16f38d0d5881f95b074cc802dae8cacc1bf58.tar.gz
qemu-28d16f38d0d5881f95b074cc802dae8cacc1bf58.tar.xz
qemu-28d16f38d0d5881f95b074cc802dae8cacc1bf58.zip
vl: Adjust the place of calling mlockall to speedup VM's startup
If we configure mlock=on and memory policy=bind at the same time, It will consume lots of time for system to treat with memory, especially when call mbind behind mlockall. Adjust the place of calling mlockall, calling mbind before mlockall can remarkably reduce the time of VM's startup. Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/mem/pc-dimm.c')
0 files changed, 0 insertions, 0 deletions