[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 06/15] migration: Yield bitmap_mutex properly when sending
From: |
Peter Xu |
Subject: |
Re: [PATCH v2 06/15] migration: Yield bitmap_mutex properly when sending/sleeping |
Date: |
Wed, 12 Oct 2022 13:51:07 -0400 |
On Wed, Oct 12, 2022 at 05:43:53PM +0100, Dr. David Alan Gilbert wrote:
> * Peter Xu (peterx@redhat.com) wrote:
> > Don't take the bitmap mutex when sending pages, or when being throttled by
> > migration_rate_limit() (which is a bit tricky to call it here in ram code,
> > but seems still helpful).
> >
> > It prepares for the possibility of concurrently sending pages in >1 threads
> > using the function ram_save_host_page() because all threads may need the
> > bitmap_mutex to operate on bitmaps, so that either sendmsg() or any kind of
> > qemu_sem_wait() blocking for one thread will not block the other from
> > progressing.
> >
> > Signed-off-by: Peter Xu <peterx@redhat.com>
>
> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
>
> although a comment above the reclaration of ram_save_host_pages saying
> it can drop the lock would be veyr good.
Let me add that. Thanks,
--
Peter Xu
- [PATCH v2 00/15] migration: Postcopy Preempt-Full, Peter Xu, 2022/10/11
- [PATCH v2 01/15] migration: Take bitmap mutex when completing ram migration, Peter Xu, 2022/10/11
- [PATCH v2 02/15] migration: Add postcopy_preempt_active(), Peter Xu, 2022/10/11
- [PATCH v2 03/15] migration: Cleanup xbzrle zero page cache update logic, Peter Xu, 2022/10/11
- [PATCH v2 04/15] migration: Trivial cleanup save_page_header() on same block check, Peter Xu, 2022/10/11
- [PATCH v2 06/15] migration: Yield bitmap_mutex properly when sending/sleeping, Peter Xu, 2022/10/11
[PATCH v2 10/15] migration: Add pss_init(), Peter Xu, 2022/10/11
[PATCH v2 05/15] migration: Remove RAMState.f references in compression code, Peter Xu, 2022/10/11
[PATCH v2 11/15] migration: Make PageSearchStatus part of RAMState, Peter Xu, 2022/10/11
[PATCH v2 08/15] migration: Teach PSS about host page, Peter Xu, 2022/10/11
[PATCH v2 15/15] migration: Drop rs->f, Peter Xu, 2022/10/11
[PATCH v2 07/15] migration: Use atomic ops properly for page accountings, Peter Xu, 2022/10/11
[PATCH v2 14/15] migration: Remove old preempt code around state maintainance, Peter Xu, 2022/10/11
[PATCH v2 09/15] migration: Introduce pss_channel, Peter Xu, 2022/10/11