Re: [Qemu-devel] Qemu start VM in huge page without '-mem-prealloc' will get memory leak?

2017-10-30 Thread Sam
Why could I not find in ovs-dpdk maillist? could some one give the bug number? 2017-10-27 15:08 GMT+08:00 Daniel P. Berrange : > On Fri, Oct 27, 2017 at 11:28:33AM +0800, Sam wrote: > > After restart ovs-dpdk(which is openvswitch with dpdk lib), memory is > > released. > > >

Re: [Qemu-devel] Qemu start VM in huge page without '-mem-prealloc' will get memory leak?

2017-10-27 Thread Daniel P. Berrange
On Fri, Oct 27, 2017 at 11:28:33AM +0800, Sam wrote: > After restart ovs-dpdk(which is openvswitch with dpdk lib), memory is > released. > > But problem is in product environment, I could not restart ovs-dpdk.. This is a clear bug in ovs-dpdk then - it is failing to release memory when QEMU

Re: [Qemu-devel] Qemu start VM in huge page without '-mem-prealloc' will get memory leak?

2017-10-26 Thread Sam
After restart ovs-dpdk(which is openvswitch with dpdk lib), memory is released. But problem is in product environment, I could not restart ovs-dpdk.. So I think I'd better wait for 10 second to avoid this bug, or use '-mem-prealloc' to start vm. The reason I want to remove '-mem-prealloc'

Re: [Qemu-devel] Qemu start VM in huge page without '-mem-prealloc' will get memory leak?

2017-10-26 Thread Daniel P. Berrange
On Thu, Oct 26, 2017 at 11:09:49AM +0800, Sam wrote: > For qemu-2.6.0, in huge page (1G) environment, after kill the qemu process, > memory which is alloc for the vm could not be released. Detail is bellow. > Or should I use some specific command to stop vm? I want to know if there > someone has

Re: [Qemu-devel] Qemu start VM in huge page without '-mem-prealloc' will get memory leak?

2017-10-26 Thread Dr. David Alan Gilbert
* Sam (batmanu...@gmail.com) wrote: > I don't know if this process is: > 1. qemu call kernel API to alloc 40G memory. > 2. qemu process is killed by hand. > 3. kernel alloc 40G memory, but qemu process is down, then this 40G is left > in kernel. It might be interesting to check the files in:

Re: [Qemu-devel] Qemu start VM in huge page without '-mem-prealloc' will get memory leak?

2017-10-26 Thread Sam
I don't know if this process is: 1. qemu call kernel API to alloc 40G memory. 2. qemu process is killed by hand. 3. kernel alloc 40G memory, but qemu process is down, then this 40G is left in kernel. 2017-10-26 11:54 GMT+08:00 Sam : > BTW, I start VM by this command, and

Re: [Qemu-devel] Qemu start VM in huge page without '-mem-prealloc' will get memory leak?

2017-10-25 Thread Sam
BTW, I start VM by this command, and then stop it, then memory leak happens. To compare, I start another VM, and wait for about 10 minutes, and then kill it as I does above, then no memory leak happens. So is this a bug of KVM or qemu ? 2017-10-26 11:09 GMT+08:00 Sam : >

[Qemu-devel] Qemu start VM in huge page without '-mem-prealloc' will get memory leak?

2017-10-25 Thread Sam
For qemu-2.6.0, in huge page (1G) environment, after kill the qemu process, memory which is alloc for the vm could not be released. Detail is bellow. Or should I use some specific command to stop vm? I want to know if there someone has the same problem? The start up command is: CMD1="$QEMU_CMD