On 14/01/2015 01:56, Alexander Graf wrote: > + if (sizeof(pool) == 4) { > + /* 32bit systems run out of virtual memory quickly */ > + pool->max_threads = 4; > + } else { > + pool->max_threads = 64; > + }
Reviewed-by: Paolo Bonzini <pbonz...@redhat.com> The same problem applies to coroutine stacks, and those cannot be throttled down as easily. But I guess if you limit the number of threads, the guest gets slowed down and doesn't create as many coroutines. It would be nice to have a way to measure coroutine stack usage, similar to what the kernel does. Paolo