From owner-svn-src-all@FreeBSD.ORG Thu Apr 9 07:53:27 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 06D20F6C; Thu, 9 Apr 2015 07:53:27 +0000 (UTC) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BE63B88C; Thu, 9 Apr 2015 07:53:26 +0000 (UTC) Received: by igblo3 with SMTP id lo3so58461295igb.0; Thu, 09 Apr 2015 00:53:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=e4tEPb8z2EPUYRhtqnniuVpl+LlvZidA7nSsZTC4B08=; b=taJqZWXKLITItMOBqE3nhPAVbjSemjTid1XEGDHUs1ri4+93ANU3axMgeMtm0d5jQ9 yTQsfOin6+KcaQ3JUjVK5JVbuDUlFqOGlS//yiBNpC4nB2SbBKboUhEz2KDuzGZH2jrW RpX/fqmsrGbWrndz4IRHs0BgbNTTnbbCFW0jZRkVYTCxtoZICP/jDAqijxCaTMJTUIqT wm3OpT0tuo2fDZ/oPM4D3jCe3J5SdWXKBATOE6befpcdKCAZoQ+MlX4PapabEQ5U0kdO 29FY0sz1W7dShml3kagcfB72fSaoKHHXE11U+nIitZCBlW3uNo/TY+1+zGMWZBErVzdV 5HvQ== X-Received: by 10.107.129.22 with SMTP id c22mr35593872iod.81.1428566006235; Thu, 09 Apr 2015 00:53:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.158.149 with HTTP; Thu, 9 Apr 2015 00:52:56 -0700 (PDT) In-Reply-To: <0342E981-09D2-4DA8-B3FC-2EC528762127@scsiguy.com> References: <201504061845.t36Ijggp094300@svn.freebsd.org> <0342E981-09D2-4DA8-B3FC-2EC528762127@scsiguy.com> From: luke Date: Thu, 9 Apr 2015 15:52:56 +0800 Message-ID: Subject: Re: svn commit: r281162 - head/sys/vm To: "Justin T. Gibbs" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Dmitry Chagin X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2015 07:53:27 -0000 On Thu, Apr 9, 2015 at 1:27 PM, Justin T. Gibbs wrote: > On Apr 6, 2015, at 12:45 PM, Dmitry Chagin wrote: > > > > Author: dchagin > > Date: Mon Apr 6 18:45:41 2015 > > New Revision: 281162 > > URL: https://svnweb.freebsd.org/changeset/base/281162 > > > > Log: > > Properly calculate "UMA Zones" per cpu cache size. Avoid allocating > > an extra struct uma_cache since the struct uma_zone already has one. > > Isn=E2=80=99t the better fix here to use a C99 style flexible array membe= r (i.e. > "struct uma_cache uz_cpu[];=E2=80=9D at the end of struct uma_zone)? > > Agree. It will save one struct uma_cache space for 5 UMA_internal zones. -- luke