]> git.proxmox.com Git - mirror_qemu.git/commit
util/oslib-posix: Don't create too many threads with small memory or little pages
authorDavid Hildenbrand <david@redhat.com>
Fri, 17 Dec 2021 13:46:07 +0000 (14:46 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 7 Jan 2022 10:19:55 +0000 (05:19 -0500)
commit89aec6411c429adb662c53c94a986a5397961a7f
tree430c01ebb424f95438075cada44940c1dc5c609f
parentdba506788b0f84a45c69ee1e0100c65034edffaf
util/oslib-posix: Don't create too many threads with small memory or little pages

Let's limit the number of threads to something sane, especially that
- We don't have more threads than the number of pages we have
- We don't have threads that initialize small (< 64 MiB) memory

Reviewed-by: Pankaj Gupta <pankaj.gupta@ionos.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20211217134611.31172-5-david@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
util/oslib-posix.c