summaryrefslogtreecommitdiff
path: root/usr/src/man/man3malloc/umem_alloc.3malloc
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2012-05-29 18:11:49 -0700
committerRobert Mustacchi <rm@joyent.com>2012-05-29 18:11:49 -0700
commitaaf809d7f3d58e48120fe39c7ed18f62d8fef56a (patch)
tree957d55065ffde93c2b16e856ea7295bc500b86a7 /usr/src/man/man3malloc/umem_alloc.3malloc
parent8c8c34cdb777834022d7093fb814ac34a91e8c89 (diff)
downloadillumos-gate-aaf809d7f3d58e48120fe39c7ed18f62d8fef56a.tar.gz
2058 libumem should allow you to specify an allocator
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com> Reviewed by: Bryan Cantrill <bryan@joyent.com> Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Eric Schrock <eric.schrock@delphix.com>
Diffstat (limited to 'usr/src/man/man3malloc/umem_alloc.3malloc')
-rw-r--r--usr/src/man/man3malloc/umem_alloc.3malloc26
1 files changed, 26 insertions, 0 deletions
diff --git a/usr/src/man/man3malloc/umem_alloc.3malloc b/usr/src/man/man3malloc/umem_alloc.3malloc
index 65bf79e5f3..cc8e3df369 100644
--- a/usr/src/man/man3malloc/umem_alloc.3malloc
+++ b/usr/src/man/man3malloc/umem_alloc.3malloc
@@ -1,5 +1,6 @@
'\" te
.\" Copyright (c) 2008 Sun Microsystems, Inc. All Rights Reserved.
+.\" Copyright (c) 2012 Joyent, Inc. All Rights Reserved.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
@@ -174,6 +175,31 @@ Set the underlying function used to allocate memory. This option can be set to
will be used.
.RE
+.ne 2
+.na
+\fB\fBallocator\fR=\fBbest\fR\fR
+.ad
+.br
+.na
+\fB\fBallocator\fR=\fBfirst\fR\fR
+.ad
+.br
+.na
+\fB\fBallocator\fR=\fBinstant\fR\fR
+.ad
+.br
+.na
+\fB\fBallocator\fR=\fBnext\fR\fR
+.ad
+.RS 16n
+Set the underlying allocation strategy. The \fBbest\fR fit strategy tells
+libumem to use the smallest free segment possible. The \fBinstant\fR fit
+strategy approximates the best fit strategy in constant cpu time. The
+\fBfirst\fR fit strategy takes the first free segment that can honor the
+allocation. The \fBnext\fR fit strategy uses the next free segment after the
+previously allocated one.
+.RE
+
.RE
.SH EXAMPLES