svn commit: r248592 - projects/counters/share/man/man9
Gleb Smirnoff
glebius at FreeBSD.org
Thu Mar 21 20:14:51 UTC 2013
Author: glebius
Date: Thu Mar 21 20:14:51 2013
New Revision: 248592
URL: http://svnweb.freebsd.org/changeset/base/248592
Log:
Document UMA_ZONE_PCPU.
Modified:
projects/counters/share/man/man9/zone.9
Modified: projects/counters/share/man/man9/zone.9
==============================================================================
--- projects/counters/share/man/man9/zone.9 Thu Mar 21 19:58:25 2013 (r248591)
+++ projects/counters/share/man/man9/zone.9 Thu Mar 21 20:14:51 2013 (r248592)
@@ -153,6 +153,19 @@ See
.Fn uma_find_refcnt .
.It Dv UMA_ZONE_NODUMP
Pages belonging to the zone will not be included into mini-dumps.
+.It Dv UMA_ZONE_PCPU
+An allocation from zone would have
+.Va mp_ncpu
+shadow copies, that are privately assigned to CPUs.
+A CPU can address its private copy using base allocation address plus
+multiple of current CPU id and
+.Fn sizeof "struct pcpu" :
+.Bd -literal -offset indent
+critical_enter();
+foo_pcpu = (foo *)((char *)foo_base + sizeof(struct pcpu) * curcpu);
+/* do something with foo_pcpu */
+critical_exit();
+.Ed
.It Dv UMA_ZONE_OFFPAGE
By default book-keeping of items within a slab is done in the slab page itself.
This flag explicitly tells subsystem that book-keeping structure should be
More information about the svn-src-projects
mailing list