All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/6] coroutine: mmap stack memory and stack size
@ 2016-06-30  7:37 Peter Lieven
  2016-06-30  7:37 ` [Qemu-devel] [PATCH 1/6] oslib-posix: add helpers for stack alloc and free Peter Lieven
                   ` (5 more replies)
  0 siblings, 6 replies; 23+ messages in thread
From: Peter Lieven @ 2016-06-30  7:37 UTC (permalink / raw)
  To: qemu-devel
  Cc: kwolf, mreitz, pbonzini, mst, dgilbert, peter.maydell, eblake,
	Peter Lieven

I decided to split this from the rest of the Qemu RSS usage series as
it contains the more or less non contentious patches.

I omitted the MAP_GROWSDOWN flag in mmap as we are not 100% sure which
side effects it has.

I kept the guard page which is now nicely makes the stacks visible in
smaps. The old version of the relevent patch lacked the MAP_FIXED flag
in the second call to mmap.

The last patch which reduces the stack size of coroutines to 64kB
may be omitted if its found to risky.

Peter Lieven (6):
  oslib-posix: add helpers for stack alloc and free
  coroutine: add a macro for the coroutine stack size
  coroutine-ucontext: use helper for allocating stack memory
  coroutine-sigaltstack: use helper for allocating stack memory
  oslib-posix: add a configure switch to debug stack usage
  coroutine: reduce stack size to 64kB

 configure                    | 15 ++++++++++++
 include/qemu/coroutine_int.h |  2 ++
 include/sysemu/os-posix.h    | 24 +++++++++++++++++++
 util/coroutine-sigaltstack.c |  7 +++---
 util/coroutine-ucontext.c    |  9 ++++----
 util/coroutine-win32.c       |  2 +-
 util/oslib-posix.c           | 55 ++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 104 insertions(+), 10 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2016-07-04 10:48 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-30  7:37 [Qemu-devel] [PATCH 0/6] coroutine: mmap stack memory and stack size Peter Lieven
2016-06-30  7:37 ` [Qemu-devel] [PATCH 1/6] oslib-posix: add helpers for stack alloc and free Peter Lieven
2016-07-01 20:12   ` Richard Henderson
2016-07-01 20:49     ` Richard Henderson
2016-07-04  6:18       ` Peter Lieven
2016-07-04 10:19         ` Paolo Bonzini
2016-07-04 10:25           ` Peter Lieven
2016-07-04 10:34             ` Paolo Bonzini
2016-07-04 10:35               ` Peter Lieven
2016-07-04 10:48                 ` Paolo Bonzini
2016-07-04  6:16     ` Peter Lieven
2016-06-30  7:37 ` [Qemu-devel] [PATCH 2/6] coroutine: add a macro for the coroutine stack size Peter Lieven
2016-07-01 20:50   ` Richard Henderson
2016-06-30  7:37 ` [Qemu-devel] [PATCH 3/6] coroutine-ucontext: use helper for allocating stack memory Peter Lieven
2016-07-01 20:52   ` Richard Henderson
2016-06-30  7:37 ` [Qemu-devel] [PATCH 4/6] coroutine-sigaltstack: " Peter Lieven
2016-07-01 20:53   ` Richard Henderson
2016-06-30  7:37 ` [Qemu-devel] [PATCH 5/6] oslib-posix: add a configure switch to debug stack usage Peter Lieven
2016-07-01 20:55   ` Richard Henderson
2016-06-30  7:37 ` [Qemu-devel] [PATCH 6/6] coroutine: reduce stack size to 64kB Peter Lieven
2016-07-01 21:13   ` Richard Henderson
2016-07-04  6:22     ` Peter Lieven
2016-07-04 10:20       ` Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.