[Qemu-devel] [PATCH] vl: Adjust the place of calling mlockall to speedup VM's startup

2014-09-23 Thread zhanghailiang
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 after mlockall. Adjust the place of calling mlockall, calling mbind before mlockall can remarkably reduce the time of VM's startup.

Re: [Qemu-devel] [PATCH] vl: Adjust the place of calling mlockall to speedup VM's startup

2014-09-23 Thread Michael S. Tsirkin
On Tue, Sep 23, 2014 at 03:57:47PM +0800, zhanghailiang wrote: 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 after mlockall. Adjust the place of calling mlockall, calling mbind before

Re: [Qemu-devel] [PATCH] vl: Adjust the place of calling mlockall to speedup VM's startup

2014-09-23 Thread Hu Tao
On Tue, Sep 23, 2014 at 11:30:26AM +0300, Michael S. Tsirkin wrote: On Tue, Sep 23, 2014 at 03:57:47PM +0800, zhanghailiang wrote: 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 after

Re: [Qemu-devel] [PATCH] vl: Adjust the place of calling mlockall to speedup VM's startup

2014-09-23 Thread zhanghailiang
On 2014/9/23 16:35, Hu Tao wrote: On Tue, Sep 23, 2014 at 11:30:26AM +0300, Michael S. Tsirkin wrote: On Tue, Sep 23, 2014 at 03:57:47PM +0800, zhanghailiang wrote: 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,

Re: [Qemu-devel] [PATCH] vl: Adjust the place of calling mlockall to speedup VM's startup

2014-09-23 Thread zhanghailiang
On 2014/9/23 16:30, Michael S. Tsirkin wrote: On Tue, Sep 23, 2014 at 03:57:47PM +0800, zhanghailiang wrote: 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 after mlockall. Adjust the