HomeFreeBSD

Make anon clustering more compatible.

Description

Make anon clustering more compatible.

Make the clustering enabling knob more fine-grained by providing a
setting where the allocation with hint is not clustered. This is aimed
to be somewhat more compatible with e.g. go 1.4 which expects that
hinted mmap without MAP_FIXED does not change the allocation address.

Now the vm.cluster_anon can be set to 1 to only cluster when no hints,
and to 2 to always cluster. Default value is 1.

Requested by: peter
Reviewed by: emaste, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 month
Differential revision: https://reviews.freebsd.org/D19194

Details

Provenance
kibAuthored on
Reviewer
emaste
Differential Revision
D19194: Make anon clustering more compatible.
Parents
rS344127: MFC r343480,343482: Silence Clang Scan warning about unsafe use of strcpy.
Branches
Unknown
Tags
Unknown