qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] AIO: Reduce number of threads for 32bit hosts


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH] AIO: Reduce number of threads for 32bit hosts
Date: Wed, 14 Jan 2015 08:37:58 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0


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 <address@hidden>

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]