diff options
author | Robert Mustacchi <rm@joyent.com> | 2013-09-29 13:06:51 -0700 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2014-01-21 18:20:39 -0800 |
commit | 4f364e7c95ee7fd9d5bbeddc1940e92405bb0e72 (patch) | |
tree | 8f95ebd8dfeb9ab49e53704d900b2d0f0f217b37 /usr/src/man | |
parent | 38849194df07385a46363bb46861688fde59a98a (diff) | |
download | illumos-gate-4f364e7c95ee7fd9d5bbeddc1940e92405bb0e72.tar.gz |
4489 need ptcumem
Reviewed by: Bryan Cantrill <bryan@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/man')
-rw-r--r-- | usr/src/man/man3malloc/umem_alloc.3malloc | 13 |
1 files changed, 13 insertions, 0 deletions
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 |