From owner-svn-src-head@FreeBSD.ORG Sun Apr 12 15:27:04 2009 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D31D9106566C; Sun, 12 Apr 2009 15:27:04 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 943C18FC18; Sun, 12 Apr 2009 15:27:04 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.64.3]) by phk.freebsd.dk (Postfix) with ESMTP id B9A4178CCA; Sun, 12 Apr 2009 15:11:55 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.3/8.14.3) with ESMTP id n3CFBsCT030874; Sun, 12 Apr 2009 15:11:54 GMT (envelope-from phk@critter.freebsd.dk) To: Robert Watson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 12 Apr 2009 15:28:48 +0100." Date: Sun, 12 Apr 2009 15:11:54 +0000 Message-ID: <30873.1239549114@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, Luigi Rizzo Subject: Re: per-cpu counters (Re: svn commit: r190967 - head/sys/netinet) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 12 Apr 2009 15:27:05 -0000 In message , Robert Wats on writes: >I have a project along these lines in progress, and will post the proposal to >arch@ once I've finished prototyping it. In particular, it provides common >implementations of "reset" and "report" in order to expose a single userspace >version of the structure via sysctl. Please don't export them via sysctl. Export them via mmap(2) like we already do with the disk I/O statistics. That way monitoring the counters becomes a no-syscall operation. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.