Reviewers: golang-dev_googlegroups.com,
Message:
Hello golang-dev@googlegroups.com (cc: msolomon@google.com,
sougou@google.com),
I'd like you to review this change to
https://dvyukov%40google.com@code.google.com/p/go/
Description:
runtime: less aggressive per-thread stack segment caching
Introduce global stack segment cache and limit per-thread cache size.
This greatly reduces StackSys memory on workloads that create lots of
threads.
TestStackMem old,MB old,sec new,MB new,sec
Run #1 310 3.22 8 1.83
Run #2 296 2.43 8 1.84
Run #3 479 2.50 8 1.88
Run #4 264 2.46 8 1.82
Run #5 296 2.53 8 2.00
Please review this at https://codereview.appspot.com/6997052/
Affected files:
M src/pkg/runtime/malloc.goc
M src/pkg/runtime/malloc.h
M src/pkg/runtime/mfixalloc.c
M src/pkg/runtime/proc.c
M src/pkg/runtime/stack.h
M src/pkg/runtime/stack_test.go