Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to release all freelists back to system? #1374

Open
infn-ke opened this issue Nov 10, 2022 · 0 comments
Open

How to release all freelists back to system? #1374

infn-ke opened this issue Nov 10, 2022 · 0 comments

Comments

@infn-ke
Copy link

infn-ke commented Nov 10, 2022

Invoking ReleaseFreeMemory seems to only release the "page heap freelist". How can I release the other freelists?

------------------------------------------------
MALLOC:         784216 (    0.7 MiB) Bytes in use by application
MALLOC: +        49152 (    0.0 MiB) Bytes in page heap freelist
MALLOC: +       465456 (    0.4 MiB) Bytes in central cache freelist
MALLOC: +       144640 (    0.1 MiB) Bytes in transfer cache freelist
MALLOC: +      1169784 (    1.1 MiB) Bytes in thread cache freelists
MALLOC: +       409600 (    0.4 MiB) Bytes in malloc metadata
MALLOC:   ------------
MALLOC: =      3022848 (    2.9 MiB) Actual memory used (physical + swap)
MALLOC: +       532480 (    0.5 MiB) Bytes released to OS (aka unmapped)
MALLOC:   ------------
MALLOC: =      3555328 (    3.4 MiB) Virtual address space used
MALLOC:
MALLOC:            391              Spans in use
MALLOC:              6              Thread heaps in use
MALLOC:           4096              Tcmalloc page size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant