Skip to contentSkip to conversation

colo: qemu 4.2.0 vs. qemu 5.0.0-rc2 performance regression

DISCUSSION Lukas Straub 3 participants 5 messages Apr 11, 2020 – Apr 27, 2020

lore
Share & tools
lore
#0 lore raw

Hello Everyone,
I did some Benchmarking with iperf3 and memtester (to dirty some guest memory)
of colo performance in qemu 4.2.0 and in qemu 5.0.0-rc2
with my bugfixes on top.( https://lists.nongnu.org/archive/html/qemu-devel/2020-04/msg01432.html )

I have taken the average over 4 runs.
Client-to-server tcp bandwidth rose slightly from ~83.98 Mbit/s to ~89.40 Mbits. Server-to-client tcp bandwidth fell from ~9.73 Mbit/s to ~1.79 Mbit/s. Client-to-server udp bandwidth stayed the same at 1.05 Mbit/s
and jitter rose from ~5.12 ms to ~10.77 ms.
Server-to-client udp bandwidth fell from ~380.5 Kbit/s to ~33.6 Kbit/s and jitter rose from ~41.74 ms to ~83976.15 ms (!).

I haven't looked closely into it, but i think 0393031a16735835a441b6d6e0495a1bd14adb90 "COLO: Optimize memory back-up process" is the culprint as it reduces vm downtime for the checkpoints but increases the overall checkpoint time and we can only release miscompared primary packets after the checkpoint is completely finished.

Another thing that I noticed: With 4.2.0, the secondary qemu uses thrice the amount of gest memory. With 5.0.0-rc2 it's just double the amount of guest memory. So maybe the ram cache isn't working properly?

Regards,
Lukas Straub

#1 lore raw

Hi,

This patch " COLO: Optimize memory back-up process " should only affects VM's migration process before COLO compare starting to work. Have you tried to revert this patch to see if it affects your tests ?

For memory size we used for secondary qemu, we only need a backup of VM's ram, so it should be double amount.

Thanks,
Hailiang

-----邮件原件-----
发件人: Lukas Straub [mailto:[email protected]]
发送时间: 2020年4月12日 1:17
收件人: [email protected]
抄送: [email protected]; [email protected]; Zhanghailiang <[email protected]>; Zhang Chen <[email protected]> 主题: colo: qemu 4.2.0 vs. qemu 5.0.0-rc2 performance regression

Hello Everyone,
I did some Benchmarking with iperf3 and memtester (to dirty some guest memory) of colo performance in qemu 4.2.0 and in qemu 5.0.0-rc2 with my bugfixes on top.( https://lists.nongnu.org/archive/html/qemu-devel/2020-04/msg01432.html )

I have taken the average over 4 runs.
Client-to-server tcp bandwidth rose slightly from ~83.98 Mbit/s to ~89.40 Mbits.
Server-to-client tcp bandwidth fell from ~9.73 Mbit/s to ~1.79 Mbit/s.
Client-to-server udp bandwidth stayed the same at 1.05 Mbit/s and jitter rose from ~5.12 ms to ~10.77 ms. Server-to-client udp bandwidth fell from ~380.5 Kbit/s to ~33.6 Kbit/s and jitter rose from ~41.74 ms to ~83976.15 ms (!).

I haven't looked closely into it, but i think
0393031a16735835a441b6d6e0495a1bd14adb90 "COLO: Optimize memory back-up process"
is the culprint as it reduces vm downtime for the checkpoints but increases the overall checkpoint time and we can only release miscompared primary packets after the checkpoint is completely finished.

Another thing that I noticed: With 4.2.0, the secondary qemu uses thrice the amount of gest memory. With 5.0.0-rc2 it's just double the amount of guest memory. So maybe the ram cache isn't working properly?

Regards,
Lukas Straub

#2 lore raw
In reply to Lukas Straub
Quoted 19 lines · On Sat, 11 Apr 2020 19:16:54 +0200 Lukas Straub <[email protected]> wrote:

Hello Everyone,
I did some Benchmarking with iperf3 and memtester (to dirty some guest memory)
of colo performance in qemu 4.2.0 and in qemu 5.0.0-rc2
with my bugfixes on top.( https://lists.nongnu.org/archive/html/qemu-devel/2020-04/msg01432.html )

I have taken the average over 4 runs.
Client-to-server tcp bandwidth rose slightly from ~83.98 Mbit/s to ~89.40 Mbits. Server-to-client tcp bandwidth fell from ~9.73 Mbit/s to ~1.79 Mbit/s. Client-to-server udp bandwidth stayed the same at 1.05 Mbit/s
and jitter rose from ~5.12 ms to ~10.77 ms.
Server-to-client udp bandwidth fell from ~380.5 Kbit/s to ~33.6 Kbit/s and jitter rose from ~41.74 ms to ~83976.15 ms (!).

I haven't looked closely into it, but i think 0393031a16735835a441b6d6e0495a1bd14adb90 "COLO: Optimize memory back-up process" is the culprint as it reduces vm downtime for the checkpoints but increases the overall checkpoint time and we can only release miscompared primary packets after the checkpoint is completely finished.

Quoted 6 lines

Another thing that I noticed: With 4.2.0, the secondary qemu uses thrice the amount of gest memory. With 5.0.0-rc2 it's just double the amount of guest memory. So maybe the ram cache isn't working properly?

Regards,
Lukas Straub

Hmm,
I looked at my test again and saw that the results where very noisy, so qemu 5.0.0-rc2 being slower was just a coincidence. I did increase the test time and the results are more meaningful now. Now qemu 5.0.0-rc2 is around the same speed and still faster in the client-to-server tcp case.

Sorry for the noise.

Regards,
Lukas Straub

#3 lore raw
Quoted 29 lines · * Lukas Straub ([email protected]) wrote:
Quoted 19 lines · On Sat, 11 Apr 2020 19:16:54 +0200 Lukas Straub <[email protected]> wrote:

Hello Everyone,
I did some Benchmarking with iperf3 and memtester (to dirty some guest memory)
of colo performance in qemu 4.2.0 and in qemu 5.0.0-rc2
with my bugfixes on top.( https://lists.nongnu.org/archive/html/qemu-devel/2020-04/msg01432.html )

I have taken the average over 4 runs.
Client-to-server tcp bandwidth rose slightly from ~83.98 Mbit/s to ~89.40 Mbits. Server-to-client tcp bandwidth fell from ~9.73 Mbit/s to ~1.79 Mbit/s. Client-to-server udp bandwidth stayed the same at 1.05 Mbit/s
and jitter rose from ~5.12 ms to ~10.77 ms.
Server-to-client udp bandwidth fell from ~380.5 Kbit/s to ~33.6 Kbit/s and jitter rose from ~41.74 ms to ~83976.15 ms (!).

I haven't looked closely into it, but i think 0393031a16735835a441b6d6e0495a1bd14adb90 "COLO: Optimize memory back-up process" is the culprint as it reduces vm downtime for the checkpoints but increases the overall checkpoint time and we can only release miscompared primary packets after the checkpoint is completely finished.

Quoted 6 lines

Another thing that I noticed: With 4.2.0, the secondary qemu uses thrice the amount of gest memory. With 5.0.0-rc2 it's just double the amount of guest memory. So maybe the ram cache isn't working properly?

Regards,
Lukas Straub

Quoted 7 lines

Hmm,
I looked at my test again and saw that the results where very noisy, so qemu 5.0.0-rc2 being slower was just a coincidence. I did increase the test time and the results are more meaningful now. Now qemu 5.0.0-rc2 is around the same speed and still faster in the client-to-server tcp case.

Sorry for the noise.

Is it back to using 3x RAM in the secondary?

Dave

Quoted 3 lines

Regards,
Lukas Straub

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

#4 lore raw
Quoted 36 lines · On Mon, 27 Apr 2020 11:34:32 +0100 "Dr. David Alan Gilbert"…
Quoted 35 lines · * Lukas Straub ([email protected]) wrote:
Quoted 19 lines · On Sat, 11 Apr 2020 19:16:54 +0200 Lukas Straub <[email protected]> wrote:

Hello Everyone,
I did some Benchmarking with iperf3 and memtester (to dirty some guest memory)
of colo performance in qemu 4.2.0 and in qemu 5.0.0-rc2
with my bugfixes on top.( https://lists.nongnu.org/archive/html/qemu-devel/2020-04/msg01432.html )

I have taken the average over 4 runs.
Client-to-server tcp bandwidth rose slightly from ~83.98 Mbit/s to ~89.40 Mbits. Server-to-client tcp bandwidth fell from ~9.73 Mbit/s to ~1.79 Mbit/s. Client-to-server udp bandwidth stayed the same at 1.05 Mbit/s
and jitter rose from ~5.12 ms to ~10.77 ms.
Server-to-client udp bandwidth fell from ~380.5 Kbit/s to ~33.6 Kbit/s and jitter rose from ~41.74 ms to ~83976.15 ms (!).

I haven't looked closely into it, but i think 0393031a16735835a441b6d6e0495a1bd14adb90 "COLO: Optimize memory back-up process" is the culprint as it reduces vm downtime for the checkpoints but increases the overall checkpoint time and we can only release miscompared primary packets after the checkpoint is completely finished.

Quoted 6 lines

Another thing that I noticed: With 4.2.0, the secondary qemu uses thrice the amount of gest memory. With 5.0.0-rc2 it's just double the amount of guest memory. So maybe the ram cache isn't working properly?

Regards,
Lukas Straub

Hmm,
I looked at my test again and saw that the results where very noisy, so qemu 5.0.0-rc2 being slower was just a coincidence. I did increase the test time and the results are more meaningful now. Now qemu 5.0.0-rc2 is around the same speed and still faster in the client-to-server tcp case.

Quoted 3 lines
Quoted 1 line

Sorry for the noise.

Is it back to using 3x RAM in the secondary?

No.

Quoted 10 lines

Dave

Quoted 3 lines

Regards,
Lukas Straub

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK