qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Question] Qemu's Heap Becomes Very Large and Never Reduce Down
@ 2017-11-15  3:14 Xulei (Stone)
  2017-11-15 11:00 ` Stefan Hajnoczi
  2017-11-15 13:18 ` Paolo Bonzini
  0 siblings, 2 replies; 5+ messages in thread
From: Xulei (Stone) @ 2017-11-15  3:14 UTC (permalink / raw)
  To: qemu-devel, yang.zhong, anthony.xu, pbonzini, stefanha, berrange
  Cc: Gonglei (Arei), wangxin (U), Huangweidong (C), Zhanghailiang,
	liujunjie (A)

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.


01a7a000-3b4efe000 rw-p 00000000 00:00 0                                 [heap]

Size:           15520272 kB

Rss:            14421836 kB

Pss:            14421836 kB

Shared_Clean:          0 kB

Shared_Dirty:          0 kB

Private_Clean:      1164 kB

Private_Dirty:  14420672 kB

Referenced:      7485624 kB

Anonymous:      14421836 kB

AnonHugePages:     34816 kB

Swap:            1098140 kB

KernelPageSize:        4 kB

MMUPageSize:           4 kB

Locked:                0 kB

VmFlags: rd wr mr mw me ac sd

My steps are:
1) start several VMs all equipped only 8G memory;
2) random combining those operations mentioned above;
3) after few hours, qemu's Virt memory and RSS both grow too large and never fall down;

After analysis via /proc/$pid/smaps, I found the VMA of pc.ram does not occupy much
memory but only becauses of heap section.

I guess that has some relations of glibc or qemu rcu_thread, but i can not figure it out.
Is there some patches can fix this problem or does somebody have any idea?
________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-11-16 16:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-15  3:14 [Qemu-devel] [Question] Qemu's Heap Becomes Very Large and Never Reduce Down Xulei (Stone)
2017-11-15 11:00 ` Stefan Hajnoczi
2017-11-15 13:18 ` Paolo Bonzini
2017-11-16  1:43   ` Zhong Yang
2017-11-16  3:08     ` Xulei (Stone)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).