From 4f364e7c95ee7fd9d5bbeddc1940e92405bb0e72 Mon Sep 17 00:00:00 2001 From: Robert Mustacchi Date: Sun, 29 Sep 2013 13:06:51 -0700 Subject: 4489 need ptcumem Reviewed by: Bryan Cantrill Reviewed by: Jerry Jelinek Reviewed by: Garrett D'Amore Reviewed by: Dan McDonald Reviewed by: Josef 'Jeff' Sipek Approved by: Garrett D'Amore --- usr/src/man/man3malloc/umem_alloc.3malloc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'usr/src/man') diff --git a/usr/src/man/man3malloc/umem_alloc.3malloc b/usr/src/man/man3malloc/umem_alloc.3malloc index cc8e3df369..d8680ca083 100644 --- a/usr/src/man/man3malloc/umem_alloc.3malloc +++ b/usr/src/man/man3malloc/umem_alloc.3malloc @@ -174,6 +174,19 @@ Set the underlying function used to allocate memory. This option can be set to \fBmmap\fR(2)-based source. If set to a value that is not supported, \fBsbrk\fR will be used. .RE +.sp +.ne 2 +.na +\fB\fBperthread_cache\fR=\fBsize\fR\fR +.ad +.RS 16n +libumem allows for each thread to cache recently freed small allocations for +future allocations. The size argument, which accepts k, m, g, and t, suffixes +denotes the maximum amount of memory each thread can use for this purpose. The +default amount used is 1 MB. Any buffers in the per-thread cache are freed when +the thread exits. The efficacy of the per-thread cache can be determined with +the \fB::umastat\fR \fBmdb\fR(1) \fIdcmd\fR debugger command. +.RE .ne 2 .na -- cgit v1.2.3