qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/1] COLO: handling of the full primary or secondary queue
@ 2020-04-10  2:00 Derek Su
  2020-04-10  2:00 ` [PATCH v5 1/1] colo-compare: Fix memory leak in packet_enqueue() Derek Su
  0 siblings, 1 reply; 5+ messages in thread
From: Derek Su @ 2020-04-10  2:00 UTC (permalink / raw)
  To: qemu-devel
  Cc: lizhijian, chyang, Derek Su, jasowang, ctcheng, chen.zhang,
	jwsu1986

The series is to handle the full primary or secondary queue in colo-compare.

Fix the "pkt" memory leak in packet_enqueue().
Reproduce steps:
1. Setup PVM and SVM both with NIC e1000 by the steps descripted
   in the wiki qemu/COLO
2. Run "iperf3 -s" in PVM
3. Run "iperf3 -c <PVM-IP> -t 7200" in client

The memory usage of qemu-system-x86_64 increases as the PVM's QMP
shows "qemu-system-x86_64: colo compare secondary queue size too big,
drop packet".

Please help to review, thanks.

V5:
 - Replace the error_report of full queue with a trace event
 - Remove handling of the full primary or secondary queue which hurt
   network throughput too much

V4:
 - Remove redundant flush of packets

V3:
 - handling of the full primary or secondary queue according to the
   suggestion from Zhang Chen
V2:
 - Fix incorrect patch format

Derek Su (1):
  colo-compare: Fix memory leak in packet_enqueue()

 net/colo-compare.c | 23 +++++++++++++++--------
 net/trace-events   |  1 +
 2 files changed, 16 insertions(+), 8 deletions(-)

-- 
2.17.1



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

end of thread, other threads:[~2020-04-27  3:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-10  2:00 [PATCH v5 0/1] COLO: handling of the full primary or secondary queue Derek Su
2020-04-10  2:00 ` [PATCH v5 1/1] colo-compare: Fix memory leak in packet_enqueue() Derek Su
2020-04-11  3:51   ` Zhang, Chen
2020-04-26 11:25   ` Lukas Straub
2020-04-27  3:11     ` Zhang, Chen

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).