From: "Alex Bennée" <alex.bennee@linaro.org>
To: "Gerd Hoffmann" <kraxel@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>
Cc: "Francois Ozog" <francois.ozog@linaro.org>,
"Mikhail Golubev" <Mikhail.Golubev@opensynergy.com>,
"Vasyl Vavrychuk" <Vasyl.Vavrychuk@opensynergy.com>,
"Zhao Jiancong (Jerry 趙 健淙)" <chou.kensou@jp.panasonic.com>,
qemu-devel@nongnu.org, "Peter Griffin" <peter.griffin@linaro.org>,
"Stratos Mailing List" <stratos-dev@op-lists.linaro.org>
Subject: Measuring the impact of buffer copy for virtio-gpu guests
Date: Wed, 17 Feb 2021 13:46:28 +0000 [thread overview]
Message-ID: <87y2fmsrxw.fsf@linaro.org> (raw)
Hi Gerd,
I was in a discussion with the AGL folks today talking about approaches
to achieving zero-copy when running VirGL virtio guests. AIUI (which is
probably not very much) the reasons for copy can be due to a number of
reasons:
- the GPA not being mapped to a HPA that is accessible to the final HW
- the guest allocation of a buffer not meeting stride/alignment requirements
- data needing to be transformed for consumption by the real hardware?
any others? Is there an impedance between different buffer resource
allocators in the guest and the guest? Is that just a problem for
non-FLOSS blob drivers in the kernel?
I'm curious if it's possible to measure the effect of these extra copies
and where do they occur? Do all resources get copied from the guest buffer to
host or does this only occur when there is a mismatch in the buffer
requirements?
Are there any functions where I could add trace points to measure this?
If this occurs in the kernel I wonder if I could use an eBPF probe to
count the number of bytes copied?
Apologies for the wall of questions I'm still very new to the 3D side of
things ;-)
--
Alex Bennée
next reply other threads:[~2021-02-17 14:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-17 13:46 Alex Bennée [this message]
2021-02-17 14:48 ` Measuring the impact of buffer copy for virtio-gpu guests François Ozog
2021-02-17 15:48 ` Alex Bennée
2021-02-18 11:06 ` Gerd Hoffmann
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=87y2fmsrxw.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=Mikhail.Golubev@opensynergy.com \
--cc=Vasyl.Vavrychuk@opensynergy.com \
--cc=chou.kensou@jp.panasonic.com \
--cc=francois.ozog@linaro.org \
--cc=kraxel@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=peter.griffin@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stratos-dev@op-lists.linaro.org \
/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).