Re: [Qemu-devel] [PATCH V5 6/6] coroutine: reduce stack size to 64kB

2016-08-08 Thread Stefan Hajnoczi
On Tue, Jul 12, 2016 at 06:23:06PM +0200, Peter Lieven wrote: > 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 t

Re: [Qemu-devel] [PATCH V5 6/6] coroutine: reduce stack size to 64kB

2016-07-12 Thread Eric Blake
On 07/12/2016 10:23 AM, Peter Lieven wrote: > 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 sho

[Qemu-devel] [PATCH V5 6/6] coroutine: reduce stack size to 64kB

2016-07-12 Thread Peter Lieven
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. The guard page added i