From owner-cvs-src Mon Mar 10 1:56:56 2003 Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1971C37B401; Mon, 10 Mar 2003 01:56:55 -0800 (PST) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0122943F85; Mon, 10 Mar 2003 01:56:54 -0800 (PST) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.12) id 18sK1I-0003im-00; Mon, 10 Mar 2003 11:56:32 +0200 Date: Mon, 10 Mar 2003 11:56:32 +0200 From: Sheldon Hearn To: Poul-Henning Kamp Cc: Nate Lawson , cvs-src@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: cvs commit: src/sys/sys devicestat.h Message-ID: <20030310095632.GB12316@starjuice.net> References: <78207.1047196679@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <78207.1047196679@critter.freebsd.dk> User-Agent: Mutt/1.5.3i Sender: owner-cvs-src@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On (2003/03/09 08:57), Poul-Henning Kamp wrote: > >How about a mtx covering the structure and a read from the device returns > >the structure under lock? > > The goal is to avoid locking in the kernel and put the overhead in > userland. Remember, most of the time nobody cares about the statistics > so they should be cheap. Amen! Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message