Skip to content

runtime: madvdontneed documentation is confusing #53525

Closed
@Jorropo

Description

@Jorropo

In runtime we can read:

madvdontneed: setting madvdontneed=0 will use MADV_FREE
instead of MADV_DONTNEED on Linux when returning memory to the
kernel. This is more efficient, but means RSS numbers will
drop only when the OS is under memory pressure.

I find the This here very confusing, I read this as madvdontneed=0 (MADV_FREE fast but bad RSS and MADV_DONTNEED slow but accurate) since it's the option explained in the previous sentence while in reality it's speaking about madvdontneed=1.

I belive This should just be replaced with MADV_DONTNEED or DONTNEED.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions