Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

set madvdontneed=1 to shrink RSS after GC #1268

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

bobotu
Copy link

@bobotu bobotu commented Apr 13, 2020

Go 1.13 use MADV_FREE which will cause RSS don't shrink even if heap size is shrunk.

Set madvdontneed=1 in GODEBUG will ask runtime use MADV_DONTNEED, which will shrink RSS size more quickly.

Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jackysp jackysp merged commit b2aaaa5 into pingcap:release-3.1 Apr 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants