From: Peter Xu <peterx@redhat.com>
To: Bryan Zhang <bryan.zhang@bytedance.com>
Cc: qemu-devel@nongnu.org, farosas@suse.de,
marcandre.lureau@redhat.com, quintela@redhat.com,
peter.maydell@linaro.org, hao.xiang@bytedance.com
Subject: Re: [PATCH 5/5] migration: Add integration test for 'qatzip' compression method
Date: Mon, 29 Jan 2024 16:47:35 +0800 [thread overview]
Message-ID: <ZbdmJ3CnBft_g9qI@x1n> (raw)
In-Reply-To: <20231231205804.2366509-6-bryan.zhang@bytedance.com>
On Sun, Dec 31, 2023 at 08:58:04PM +0000, Bryan Zhang wrote:
> Adds an integration test for 'qatzip'.
Please use "tests" as prefix of this patch. It can be "tests/migration:",
"tests/migration-test:", etc.
>
> Signed-off-by: Bryan Zhang <bryan.zhang@bytedance.com>
> Signed-off-by: Hao Xiang <hao.xiang@bytedance.com>
[...]
> test_migrate_multifd_tcp_tls_psk_start_match(QTestState *from,
> @@ -3480,6 +3504,19 @@ int main(int argc, char **argv)
> qtest_add_func("/migration/multifd/tcp/plain/zstd",
> test_multifd_tcp_zstd);
> #endif
> +#ifdef CONFIG_QATZIP
> + /*
> + * Use QATzip's qzInit() function as a runtime hardware check.
> + * Ideally there might be a cleaner way to probe for the presence of QAT.
> + */
> + QzSession_T sess;
> + memset(&sess, 0, sizeof(QzSession_T));
> + if (qzInit(&sess, 0) == QZ_OK) {
Does "0" means it'll fail if no hardware is available, no matter whether
due to processor too old, or limited resources?
Would it make sense to test it even if only software fallbacks are
available? IIUC the migration path will still be covered in software
fallbacks, so it may still makes sense to me. It can be very likely that
most CIs will not cover the qatzip paths otherwise, because of either no
control over hardwares, or limited privileges of the CI user (does qat HWs
need special privilege normally? I have no idea how QAT resource
management is done if there're only limited HW resources).
Besides, I believe all the data points you provided in the cover letter are
collected with 2 QAT HWs enabled? I'm curious how's the performance of the
software fallback of qatzip comparing to existing algorithm: iiuc zstd is
mostly always preferred if sololy comparing to zlib? where does qatzip
soft-mode stand in the picture?
Thanks,
--
Peter Xu
next prev parent reply other threads:[~2024-01-29 8:48 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-31 20:57 [PATCH 0/5] *** Implement using Intel QAT to offload ZLIB Bryan Zhang
2023-12-31 20:58 ` [PATCH 1/5] meson: Introduce 'qatzip' feature to the build system Bryan Zhang
2023-12-31 20:58 ` [PATCH 2/5] migration: Add compression level parameter for QATzip Bryan Zhang
2023-12-31 20:58 ` [PATCH 3/5] migration: Introduce unimplemented 'qatzip' compression method Bryan Zhang
2024-01-05 20:07 ` Fabiano Rosas
2024-01-05 23:52 ` [External] " Hao Xiang
2024-01-06 6:31 ` Hao Xiang
2024-01-08 20:24 ` Fabiano Rosas
2024-01-08 3:25 ` Liu, Yuan1
2024-01-08 20:27 ` Fabiano Rosas
2024-01-09 2:26 ` Liu, Yuan1
2024-01-11 5:41 ` Hao Xiang
2024-01-13 14:29 ` Liu, Yuan1
2024-01-11 6:39 ` Hao Xiang
2024-01-13 14:10 ` Liu, Yuan1
2024-01-08 3:17 ` Liu, Yuan1
2023-12-31 20:58 ` [PATCH 4/5] migration: Implement 'qatzip' methods using QAT Bryan Zhang
2023-12-31 20:58 ` [PATCH 5/5] migration: Add integration test for 'qatzip' compression method Bryan Zhang
2024-01-29 8:47 ` Peter Xu [this message]
2024-02-29 2:55 ` [External] " Bryan Zhang .
2024-02-29 3:27 ` Peter Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZbdmJ3CnBft_g9qI@x1n \
--to=peterx@redhat.com \
--cc=bryan.zhang@bytedance.com \
--cc=farosas@suse.de \
--cc=hao.xiang@bytedance.com \
--cc=marcandre.lureau@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).