On 15/11/2017 04:14, Xulei (Stone) wrote: > Hi, guys > > I met a strange problem, with qemu 2.8.1: > qemu consumes too many heap memory after several operations and can not > release them anymore: > hot pulg/unplug disk & net, vnc connect/disconnect, guestOS reboot, etc.
Try with newer QEMU; until recently we used a lot of memory at startup, but it was improved in 2.11. However, I think Anthony also had a patch adding a malloc_trim call in the RCU thread, which improved memory usage. Anthony, do you know if this is still necessary in 2.11? Thanks, Paolo