]> Cypherpunks repositories - gostls13.git/commit
runtime: flush each idle P's page cache at the end of each GC cycle
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 28 Nov 2022 19:53:20 +0000 (19:53 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 5 Apr 2023 21:45:24 +0000 (21:45 +0000)
commit8d68b388d4d1debec8d349adac58dd9f1cb03d25
treef6d4383189471f5c536bd5c68cfa7a839083d76d
parent96e8e62821ddb862e947fc9a1609e8e5b713cf14
runtime: flush each idle P's page cache at the end of each GC cycle

Currently pages may linger in an idle P's page cache, hiding the memory
from the scavenger precisely when it's useful to return memory to the OS
and reduce the application's footprint.

Change-Id: I49fbcd806b6c66991d1ca87949f76a9f06708e70
Reviewed-on: https://go-review.googlesource.com/c/go/+/453622
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
src/runtime/mgc.go