[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH RESEND v6 0/5] migration: reduce time of loading non-iterable
From: |
Peter Xu |
Subject: |
Re: [PATCH RESEND v6 0/5] migration: reduce time of loading non-iterable vmstate |
Date: |
Wed, 8 Mar 2023 09:58:55 -0500 |
On Wed, Mar 08, 2023 at 06:03:45AM -0800, Chuang Xu wrote:
> IIUC, Do you mean that different ways to get flatview are tricky?
Yes, and properly define when to use which.
> As you said, it's slightly beyond what this series does. Maybe it would be
> better if we discuss it in a new series and keep this series at v6?
> what's your take?
Quotting your test result:
time of loading non-iterable vmstate
before 112 ms
long's patch applied 103 ms
my patch applied 44 ms
both applied 39 ms
add as_to_flat_rcu 19 ms
If introducing address_space_to_flatview_rcu() can further half the time,
maybe still worth it?
The thing is the extra _rcu() doesn't bring the major complexity, IMHO. It
brings some on identifying which is really safe to not reference a latest
flatview (it seems to me only during a commit() hook..).
The major complexity still comes from the nested enforced commit() during
address_space_to_flatview() but that is already in the patchset.
Thanks,
--
Peter Xu
- [PATCH RESEND v6 4/5] memory: Add sanity check in address_space_to_flatview, (continued)
- [PATCH RESEND v6 4/5] memory: Add sanity check in address_space_to_flatview, Chuang Xu, 2023/03/03
- [PATCH RESEND v6 1/5] memory: Reference as->current_map directly in memory commit, Chuang Xu, 2023/03/03
- [PATCH RESEND v6 3/5] memory: Introduce memory_region_transaction_do_commit(), Chuang Xu, 2023/03/03
- [PATCH RESEND v6 5/5] migration: Reduce time of loading non-iterable vmstate, Chuang Xu, 2023/03/03
- Re: [PATCH RESEND v6 0/5] migration: reduce time of loading non-iterable vmstate, Peter Xu, 2023/03/05
- Re: [PATCH RESEND v6 0/5] migration: reduce time of loading non-iterable vmstate, Chuang Xu, 2023/03/06
- Re: [PATCH RESEND v6 0/5] migration: reduce time of loading non-iterable vmstate, Peter Xu, 2023/03/06
- Re: [PATCH RESEND v6 0/5] migration: reduce time of loading non-iterable vmstate, Chuang Xu, 2023/03/07
- Re: [PATCH RESEND v6 0/5] migration: reduce time of loading non-iterable vmstate, Peter Xu, 2023/03/07
- Re: [PATCH RESEND v6 0/5] migration: reduce time of loading non-iterable vmstate, Chuang Xu, 2023/03/08
- Re: [PATCH RESEND v6 0/5] migration: reduce time of loading non-iterable vmstate,
Peter Xu <=
- Re: [PATCH RESEND v6 0/5] migration: reduce time of loading non-iterable vmstate, Chuang Xu, 2023/03/08
- Re: [PATCH RESEND v6 0/5] migration: reduce time of loading non-iterable vmstate, Peter Xu, 2023/03/08
- Re: [PATCH RESEND v6 0/5] migration: reduce time of loading non-iterable vmstate, Chuang Xu, 2023/03/09