Commit Graph

10 Commits

Author SHA1 Message Date
markj
f931b753dd Add malloc_domainset(9) and _domainset variants to other allocator KPIs.
Remove malloc_domain(9) and most other _domain KPIs added in r327900.
The new functions allow the caller to specify a general NUMA domain
selection policy, rather than specifically requesting an allocation from
a specific domain.  The latter policy tends to interact poorly with
M_WAITOK, resulting in situations where a caller is blocked indefinitely
because the specified domain is depleted.  Most existing consumers of
the _domain KPIs are converted to instead use a DOMAINSET_PREF() policy,
in which we fall back to other domains to satisfy the allocation
request.

This change also defines a set of DOMAINSET_FIXED() policies, which
only permit allocations from the specified domain.

Discussed with:	gallatin, jeff
Reported and tested by:	pho (previous version)
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D17418
2018-10-30 18:26:34 +00:00
emaste
d4eed58eee Add note that contigfree(9) does not accept NULL
Differential Revision: https://reviews.freebsd.org/D1721
2015-01-30 03:17:07 +00:00
jhb
0b4e8b5716 Update for adjusted types for boundary arguments in 232356. 2012-03-01 20:19:21 +00:00
alc
a2df1122c7 Document support for M_NOWAIT by the new implementation of contigmalloc(9)
in HEAD.

Approved by:	re (hrs)
Reviewed by:	Michael Plass
2007-07-19 17:23:20 +00:00
brueffer
fdf635c9c0 Xref memguard(9) 2005-02-22 17:20:20 +00:00
ru
7a3e657c56 Sort sections. 2005-01-21 08:36:40 +00:00
jkoshy
50bf852114 Use the "normal form" for copyright text. 2004-10-12 02:04:11 +00:00
green
70cf64bec6 Update "documentation date" fields. 2004-08-10 16:38:19 +00:00
green
7ba2118516 Update contigmalloc(9)'s manpage to reflect usage of the malloc_type
argument and that allocation occurs from the end of the address space
backward (still first-fit).
2004-08-10 14:47:12 +00:00
jkoshy
c01775c228 A manual page for contigmalloc(9).
Reviewed by:	ru
2004-03-06 02:09:17 +00:00