From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 10 20:58:41 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5ED216A4B3 for ; Fri, 10 Oct 2003 20:58:41 -0700 (PDT) Received: from c211-28-27-130.belrs2.nsw.optusnet.com.au (c211-28-27-130.belrs2.nsw.optusnet.com.au [211.28.27.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 436AE43F3F for ; Fri, 10 Oct 2003 20:58:40 -0700 (PDT) (envelope-from peterjeremy@optushome.com.au) Received: from server.c211-28-27-130.belrs2.nsw.optusnet.com.au (localhost.c211-28-27-130.belrs2.nsw.optusnet.com.au [127.0.0.1]) ESMTP id h9B3wTdb007825; Sat, 11 Oct 2003 13:58:29 +1000 (EST) peter@server.c211-28-27-130.belrs2.nsw.optusnet.com.au) Received: (from peter@localhost) (8.12.9p1/8.12.9/Submit) id h9B3wRYO007824; Sat, 11 Oct 2003 13:58:27 +1000 (EST) (envelope-from peter) Date: Sat, 11 Oct 2003 13:58:27 +1000 From: Peter Jeremy To: Andrew Gallatin Message-ID: <20031011035827.GD75796@server.c211-28-27-130.belrs2.nsw.optusnet.com.au> References: <20031010103640.6F5A216A4BF@hub.freebsd.org> <20031010134400.GE803@saboteur.dek.spc.org> <16263.1019.939450.708832@grasshopper.cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16263.1019.939450.708832@grasshopper.cs.duke.edu> User-Agent: Mutt/1.4.1i cc: freebsd-hackers@freebsd.org Subject: Re: Determining CPU features / cache organization from userland X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2003 03:58:41 -0000 On Fri, Oct 10, 2003 at 03:09:47PM -0400, Andrew Gallatin wrote: > >Bruce M Simpson writes: > > I've been thinking we should definitely make the cache organization > > info available via sysctl. I am thinking we should do this to make > > the UMA_ALIGN_CACHE definition mean something... > >If you do this, it may make sense to use the same names as MacOSX. > >g51% sysctl hw | grep cache >hw.cachelinesize: 128 >hw.l1icachesize: 65536 >hw.l1dcachesize: 32768 >hw.l2cachesize: 524288 What if your hardware has different linesizes for different caches? Peter