coroutine: reserve 5,000 mappings
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 20 Mar 2024 18:12:32 +0000 (14:12 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 21 Mar 2024 17:14:30 +0000 (13:14 -0400)
commit9352f80cd926fe2dde7c89b93ee33bb0356ff40e
tree28c6bd08ea535c33c13f6a83f6c1b7d1080dbcbe
parentfea445e8fe9acea4f775a832815ee22bdf2b0222
coroutine: reserve 5,000 mappings

Daniel P. BerrangĂ© <berrange@redhat.com> pointed out that the coroutine
pool size heuristic is very conservative. Instead of halving
max_map_count, he suggested reserving 5,000 mappings for non-coroutine
users based on observations of guests he has access to.

Fixes: 86a637e48104 ("coroutine: cap per-thread local pool size")
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20240320181232.1464819-1-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
util/qemu-coroutine.c