From owner-freebsd-arch@FreeBSD.ORG Sat Jul 6 23:53:56 2013 Return-Path: Delivered-To: freebsd-arch@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 6543DF7C for ; Sat, 6 Jul 2013 23:53:56 +0000 (UTC) (envelope-from benno@FreeBSD.org) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 3CFC119F2 for ; Sat, 6 Jul 2013 23:53:55 +0000 (UTC) Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id C4096208E8 for ; Sat, 6 Jul 2013 19:53:41 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute1.internal (MEProxy); Sat, 06 Jul 2013 19:53:41 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:content-type:subject:message-id:date :to:mime-version; s=smtpout; bh=FvTYqruILKWDE3S0DD9AfLGXmDI=; b= ZxbAUBjAOhK58LrCVTd5UV+nE6c9KzsLL0xwk1uuXa6zZfVSGWkFeA5sBC6qzu2/ 9m3T9P+FRy3JQvOw+eT5sOs1sN7aBCOJDxKhSZPMK1nb5WIzLY3UhJcko/KTq9u7 MRfaj1d7Fd+1mIHhcS7xxqGjEANf5BJQ/l4pWynWbqA= X-Sasl-enc: 0v4yUoyVyd7wikREblvcTLW2a82Fq2bc629glkK3b16R 1373154821 Received: from [172.20.10.2] (unknown [1.136.198.218]) by mail.messagingengine.com (Postfix) with ESMTPA id A37DA680239 for ; Sat, 6 Jul 2013 19:53:40 -0400 (EDT) From: Benno Rice Subject: Reworking vmmeter Message-Id: Date: Sun, 7 Jul 2013 09:53:37 +1000 To: freebsd-arch@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) X-Mailer: Apple Mail (2.1508) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jul 2013 23:53:56 -0000 So I've put together this patch: http://people.freebsd.org/~benno/vmmeter.diff This patch does a few things: - Renames the singleton "cnt" to "vmmeter". - Replaces all the per-cpu counters with counter_u64_t. - Removes the vmmeter instance from struct pcpu, due to the above = mentioned change. - Adds includes for vmmeter.h to a few files that were only getting it = via pollution in pcpu.h - Removes some entries from assym that weren't being used. This has been tested on amd64 and nothing else right now, I'm more = posting this to get general comments on whether people think this is a = good idea. My motivation for this was twofold, firstly to rename cnt and = secondly to move the counters to the common counter framework. More = testing will be done prior to commit. Cheers, Benno.=