From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKhxb-0006uW-S3 for qemu-devel@nongnu.org; Wed, 06 Jul 2016 04:13:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKhxZ-00030i-Si for qemu-devel@nongnu.org; Wed, 06 Jul 2016 04:13:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKhxZ-00030b-Mr for qemu-devel@nongnu.org; Wed, 06 Jul 2016 04:13:29 -0400 From: Markus Armbruster References: <1467635487-9329-1-git-send-email-pl@kamp.de> <1467635487-9329-7-git-send-email-pl@kamp.de> Date: Wed, 06 Jul 2016 10:13:27 +0200 In-Reply-To: <1467635487-9329-7-git-send-email-pl@kamp.de> (Peter Lieven's message of "Mon, 4 Jul 2016 14:31:27 +0200") Message-ID: <87r3b7fal4.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH V2 6/6] coroutine: reduce stack size to 64kB List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: qemu-devel@nongnu.org, kwolf@redhat.com, peter.maydell@linaro.org, mst@redhat.com, dgilbert@redhat.com, mreitz@redhat.com, pbonzini@redhat.com, rth@twiddle.net Peter Lieven writes: > evaluation with the recently introduced maximum stack usage monitoring revealed > that the actual used stack size was never above 4kB so allocating 1MB stack > for each coroutine is a lot of wasted memory. So reduce the stack size to > 64kB which should still give enough head room. Suggest to mention the guard page here, to make it sound less scary.