diff options
author | zhanghailiang <zhang.zhanghailiang@huawei.com> | 2014-09-23 18:42:24 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-09-29 19:44:04 +0300 |
commit | 28d16f38d0d5881f95b074cc802dae8cacc1bf58 (patch) | |
tree | 8d4e5bdacbf33c1645b83e4ce6b65d39e0edb9be /page_cache.c | |
parent | fc50ff0666315be5120c70ad00cd0b0097484b84 (diff) |
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 'page_cache.c')
0 files changed, 0 insertions, 0 deletions