[Top][All Lists]

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

[Qemu-devel] [PATCH 0/6] coroutine: mmap stack memory and stack size

From: Peter Lieven
Subject: [Qemu-devel] [PATCH 0/6] coroutine: mmap stack memory and stack size
Date: Thu, 30 Jun 2016 09:37:14 +0200

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(-)


reply via email to

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