From owner-svn-src-head@FreeBSD.ORG Mon Apr 8 19:42:06 2013 Return-Path: Delivered-To: svn-src-head@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 22140899; Mon, 8 Apr 2013 19:42:06 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) by mx1.freebsd.org (Postfix) with ESMTP id F2817690; Mon, 8 Apr 2013 19:42:05 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 48BE3B915; Mon, 8 Apr 2013 15:42:05 -0400 (EDT) From: John Baldwin To: Gleb Smirnoff Subject: Re: svn commit: r249265 - in head/sys: amd64/include arm/include i386/include ia64/include mips/include powerpc/include sparc64/include sys Date: Mon, 8 Apr 2013 15:41:27 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p25; KDE/4.5.5; amd64; ; ) References: <201304081919.r38JJAvB088644@svn.freebsd.org> In-Reply-To: <201304081919.r38JJAvB088644@svn.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201304081541.27408.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 08 Apr 2013 15:42:05 -0400 (EDT) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Apr 2013 19:42:06 -0000 On Monday, April 08, 2013 3:19:10 pm Gleb Smirnoff wrote: > Author: glebius > Date: Mon Apr 8 19:19:10 2013 > New Revision: 249265 > URL: http://svnweb.freebsd.org/changeset/base/249265 > > Log: > Merge from projects/counters: > > Pad struct pcpu so that its size is denominator of PAGE_SIZE. This > is done to reduce memory waste in UMA_PCPU_ZONE zones. > > Sponsored by: Nginx, Inc. > > Modified: head/sys/sys/pcpu.h > ============================================================================== > --- head/sys/sys/pcpu.h Mon Apr 8 19:10:45 2013 (r249264) > +++ head/sys/sys/pcpu.h Mon Apr 8 19:19:10 2013 (r249265) > @@ -180,6 +180,14 @@ struct pcpu { > PCPU_MD_FIELDS; > } __aligned(CACHE_LINE_SIZE); Why not change this to be PAGE_SIZE rather than putting explicit padding in all the pcpu fields? That would seem to be more maintainable. -- John Baldwin