From owner-svn-src-head@freebsd.org Mon Sep 11 08:24:37 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2ADE9E228FE; Mon, 11 Sep 2017 08:24:37 +0000 (UTC) (envelope-from rlibby@gmail.com) Received: from mail-pg0-f43.google.com (mail-pg0-f43.google.com [74.125.83.43]) (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 A04FB76B1C; Mon, 11 Sep 2017 08:24:36 +0000 (UTC) (envelope-from rlibby@gmail.com) Received: by mail-pg0-f43.google.com with SMTP id v66so14080541pgb.5; Mon, 11 Sep 2017 01:24:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=myqUI/i9PDNN8Z7TUanq5/5WhbTtGPLVzTw4w9YW0Gg=; b=Lbl9vvqhHVNa9s5VUdMoU2274RaZHlOWrpDmAu1MXFuBbfkmAN4nOQLJJE0SNFAdQc aMg3hCBQ/Qbg5/skPpUZ6cBfN7mhjZe12MFEjG7yDA9UW+sq8hDCEiU1nOhUNBCHn+vc /5v0Zvu/5s2oxUEUXCLcVqoVH2N1sgFdgxESc7973Z8DKde7XfQjUWeBm388XQQgq3j9 SRic3C0oeu2fyqq+yOlffyzrfxxbQwE++79GeF2Y2N0GfnIs095jZb+6v7LGv3zC9+sN lLekMPlDRtA//0Y2QkmO2kmPCVpv1VmnwX/w5MZKeV0oeoBvN4wW2PmtTBClmjCRz7G/ DvlQ== X-Gm-Message-State: AHPjjUjoLsrZOGuQien5qgzlJWBSHQvJSFygM8WnMWfbLknEt/FjepWC zJ4iHt8JQnAPYcoLp7fE8A== X-Received: by 10.84.218.7 with SMTP id q7mr12964467pli.111.1505118269902; Mon, 11 Sep 2017 01:24:29 -0700 (PDT) Received: from mail-pg0-f42.google.com (mail-pg0-f42.google.com. [74.125.83.42]) by smtp.gmail.com with ESMTPSA id i63sm16320050pfk.34.2017.09.11.01.24.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Sep 2017 01:24:29 -0700 (PDT) Received: by mail-pg0-f42.google.com with SMTP id i130so6765782pgc.3; Mon, 11 Sep 2017 01:24:29 -0700 (PDT) X-Google-Smtp-Source: ADKCNb4wFbimr43Mcpc5cqzEZAh/Z/rl0NsDBNUqNdU4MOGYoicFvZzSVP+IO87RlBPznBxgv2u70ZiOF9iFumK1hnY= X-Received: by 10.98.74.4 with SMTP id x4mr10946767pfa.222.1505118268555; Mon, 11 Sep 2017 01:24:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.189.73 with HTTP; Mon, 11 Sep 2017 01:24:27 -0700 (PDT) In-Reply-To: References: <201709101900.v8AJ0c2N059845@repo.freebsd.org> <20170911111127.B870@besplex.bde.org> From: Ryan Libby Date: Mon, 11 Sep 2017 01:24:27 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r323393 - in head/sys: sys vm To: Mateusz Guzik Cc: Bruce Evans , Mateusz Guzik , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 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, 11 Sep 2017 08:24:37 -0000 On Mon, Sep 11, 2017 at 12:30 AM, Mateusz Guzik wrote: [...] > That said, looking now at the struct I think its use should be retired > from the kernel. It can remain in headers for userspace use. > > First, there is a bunch of counter(9) fields. I don't know the original > reasoning. I would expect these counters to be statically defined in a > per-cpu struct. The actual counter(9) counters are per-CPU. These are just offsets into the PCPU area. See r317061 / D10156 (recent work by glebius).