From: "Mancini, Riccardo" <mancio@amazon.com>
To: Gavin Shan <gshan@redhat.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>, "Graf (AWS),
Alexander" <graf@amazon.de>,
"Teragni, Matias" <mteragni@amazon.com>,
"Batalov, Eugene" <bataloe@amazon.com>,
Marc Zyngier <maz@kernel.org>,
Oliver Upton <oliver.upton@linux.dev>,
"kvmarm@lists.linux.dev" <kvmarm@lists.linux.dev>,
Paolo Bonzini <pbonzini@redhat.com>,
"vkuznets@redhat.com" <vkuznets@redhat.com>
Subject: RE: Bug? Incompatible APF for 4.14 guest on 5.10 and later host
Date: Fri, 13 Oct 2023 15:40:52 +0000 [thread overview]
Message-ID: <51bec52172df4a0a8bd5486dee7c0c26@amazon.com> (raw)
> Adding Marc, Oliver and kvmarm@lists.linux.dev
>
> I tried to make the feature available to ARM64 long time ago, but the
> efforts were discontinued as the significant concern was no users
> demanding for it [1].
> It's definitely exciting news to know it's a important feature to AWS. I
> guess it's probably another chance to re-evaluate the feature for ARM64?
>
> [1] https://lore.kernel.org/kvmarm/87iloq2oke.wl-maz@kernel.org/
>
> Async PF needs two signals sent from host to guest, SDEI (Software
> Delegated Exception Interface) is leveraged for that. So there were two
> series to support SDEI virtualization [1] and Async PF on ARM64 [2].
>
> [1] https://lore.kernel.org/kvmarm/20220527080253.1562538-1-
> gshan@redhat.com/
> [2] https://lore.kernel.org/kvmarm/20210815005947.83699-1-
> gshan@redhat.com/
Thanks for all the information! This might become useful in the future,
when we'll enable this feature on ARM, given the improvements we saw in x86.
>
> I got several questions for Mancini to answer, helpful understand the
> situation better.
>
> - VM shapshot is stored somewhere remotely. It means the page fault on
> instruction fetch becomes expensive. Do we have benchmarks how much
> benefits brought by Async PF on x86 in AWS environment?
In our small local repro (only local disk access) which runs a Java load after
resume of the Firecracker VM, we saw a 20% performance regression (from ~80ms
to ~100ms) and the time spent outside the VM due to EPT_VIOLATION increased 3x
from 30ms to 90ms. This impact is amplified when access is not local.
>
> - I'm wandering if the data can be fetched from somewhere remotely in AWS
> environment?
Without getting into details, yes, any memory page could be remotely accessed
in the worst case.
>
> - The data can be stored in local DRAM or swapping space, the page fault
> to fetch data becomes expensive if the data is stored in swapping
> space.
> I'm not sure if it's possible the data resides in the swapping space in
> AWS environment? Note that the swapping space, corresponding to disk,
> could be somewhere remotely seated.
In our usage, during resumption almost all pages are missing and are populated
on demand with a userfaultfd, either from a local cache (memory or disk) or
from the network.
Thanks,
Riccardo
>
> Thanks,
> Gavin
>
next reply other threads:[~2023-10-13 15:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-13 15:40 Mancini, Riccardo [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-10-05 17:24 Bug? Incompatible APF for 4.14 guest on 5.10 and later host Mancini, Riccardo
2023-10-06 1:39 ` Gavin Shan
2023-10-05 15:08 Mancini, Riccardo
2023-10-05 15:38 ` Vitaly Kuznetsov
2023-10-05 16:15 ` Paolo Bonzini
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=51bec52172df4a0a8bd5486dee7c0c26@amazon.com \
--to=mancio@amazon.com \
--cc=bataloe@amazon.com \
--cc=graf@amazon.de \
--cc=gshan@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=maz@kernel.org \
--cc=mteragni@amazon.com \
--cc=oliver.upton@linux.dev \
--cc=pbonzini@redhat.com \
--cc=vkuznets@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