Received: from eggs.gnu.org ([2001:4830:134:3::10]:51843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBL41-0001qz-T7 for qemu-devel@nongnu.org; Wed, 14 Jan 2015 05:20:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBL3x-0006Xj-46 for qemu-devel@nongnu.org; Wed, 14 Jan 2015 05:20:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBL3w-0006Wz-Cu for qemu-devel@nongnu.org; Wed, 14 Jan 2015 05:20:32 -0500 Date: Wed, 14 Jan 2015 11:20:26 +0100 From: Kevin Wolf Message-ID: <20150114102026.GE5136@noname.redhat.com> References: <1421197016-69426-1-git-send-email-agraf@suse.de> <54B61CD6.7010303@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54B61CD6.7010303@redhat.com> Subject: Re: [Qemu-devel] [PATCH] AIO: Reduce number of threads for 32bit hosts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Alexander Graf , Stefan Hajnoczi , qemu-devel@nongnu.org Am 14.01.2015 um 08:37 hat Paolo Bonzini geschrieben: > > > 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 > > 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. Shouldn't we rather try and decrease the stack sizes a bit? 1 MB per coroutine is really a lot, and as I understand it, threads take even more by default. > It would be nice to have a way to measure coroutine stack usage, similar > to what the kernel does. The information which pages are mapped should be there somewhere... Kevin