From owner-svn-src-projects@FreeBSD.ORG Thu Mar 21 20:14:51 2013 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A6B9D9AC; Thu, 21 Mar 2013 20:14:51 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 99EEB89F; Thu, 21 Mar 2013 20:14:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2LKEpww011664; Thu, 21 Mar 2013 20:14:51 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2LKEphU011663; Thu, 21 Mar 2013 20:14:51 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201303212014.r2LKEphU011663@svn.freebsd.org> From: Gleb Smirnoff Date: Thu, 21 Mar 2013 20:14:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r248592 - projects/counters/share/man/man9 X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Mar 2013 20:14:51 -0000 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