usr/src/man/man3malloc/umem_alloc.3malloc
changeset 13708 6d0517b1a52b
parent 13476 5b2854ecc12d
equal deleted inserted replaced
13707:3f41b24ce657 13708:6d0517b1a52b
     1 '\" te
     1 '\" te
     2 .\" Copyright (c) 2008 Sun Microsystems, Inc. All Rights Reserved.
     2 .\" Copyright (c) 2008 Sun Microsystems, Inc. All Rights Reserved.
       
     3 .\" Copyright (c) 2012 Joyent, Inc. All Rights Reserved.
     3 .\" 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.
     4 .\" 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.
     4 .\" 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.
     5 .\" 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.
     5 .\" 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]
     6 .\" 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]
     6 .TH UMEM_ALLOC 3MALLOC "Mar 24, 2008"
     7 .TH UMEM_ALLOC 3MALLOC "Mar 24, 2008"
     7 .SH NAME
     8 .SH NAME
   170 .RS 16n
   171 .RS 16n
   171 Set the underlying function used to allocate memory. This option can be set to
   172 Set the underlying function used to allocate memory. This option can be set to
   172 \fBsbrk\fR (the default) for an \fBsbrk\fR(2)-based source or \fBmmap\fR for an
   173 \fBsbrk\fR (the default) for an \fBsbrk\fR(2)-based source or \fBmmap\fR for an
   173 \fBmmap\fR(2)-based source. If set to a value that is not supported, \fBsbrk\fR
   174 \fBmmap\fR(2)-based source. If set to a value that is not supported, \fBsbrk\fR
   174 will be used.
   175 will be used.
       
   176 .RE
       
   177 
       
   178 .ne 2
       
   179 .na
       
   180 \fB\fBallocator\fR=\fBbest\fR\fR
       
   181 .ad
       
   182 .br
       
   183 .na
       
   184 \fB\fBallocator\fR=\fBfirst\fR\fR
       
   185 .ad
       
   186 .br
       
   187 .na
       
   188 \fB\fBallocator\fR=\fBinstant\fR\fR
       
   189 .ad
       
   190 .br
       
   191 .na
       
   192 \fB\fBallocator\fR=\fBnext\fR\fR
       
   193 .ad
       
   194 .RS 16n
       
   195 Set the underlying allocation strategy. The \fBbest\fR fit strategy tells
       
   196 libumem to use the smallest free segment possible. The \fBinstant\fR fit
       
   197 strategy approximates the best fit strategy in constant cpu time. The
       
   198 \fBfirst\fR fit strategy takes the first free segment that can honor the
       
   199 allocation. The \fBnext\fR fit strategy uses the next free segment after the
       
   200 previously allocated one.
   175 .RE
   201 .RE
   176 
   202 
   177 .RE
   203 .RE
   178 
   204 
   179 .SH EXAMPLES
   205 .SH EXAMPLES