Commit Graph

10 Commits

Author SHA1 Message Date
Mark Johnston
9978bd996b 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
Ed Maste
5d64c46856 Add note that contigfree(9) does not accept NULL
Differential Revision: https://reviews.freebsd.org/D1721
2015-01-30 03:17:07 +00:00
John Baldwin
5c8d3de02b Update for adjusted types for boundary arguments in 232356. 2012-03-01 20:19:21 +00:00
Alan Cox
40e4089d34 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
Christian Brueffer
a3256b8880 Xref memguard(9) 2005-02-22 17:20:20 +00:00
Ruslan Ermilov
9cbda59000 Sort sections. 2005-01-21 08:36:40 +00:00
Joseph Koshy
1bd2c518ef Use the "normal form" for copyright text. 2004-10-12 02:04:11 +00:00
Brian Feldman
ea84c8dc30 Update "documentation date" fields. 2004-08-10 16:38:19 +00:00
Brian Feldman
5b2bbd83fc 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
Joseph Koshy
c4e99bb025 A manual page for contigmalloc(9).
Reviewed by:	ru
2004-03-06 02:09:17 +00:00