On Sat, May 14, 2022 at 08:50:10AM +0200, Paolo Bonzini wrote: > The completion bottom half was scheduled within the pool->lock > critical section. That actually results in worse performance, > because the worker thread can run its own small critical section > and go to sleep before the bottom half starts running. > > Note that this simple change does not produce an improvement without > changing the thread pool QemuSemaphore to a condition variable. > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > util/thread-pool.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature