From owner-freebsd-arch@FreeBSD.ORG Thu Jun 12 11:03:42 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3590F37B401 for ; Thu, 12 Jun 2003 11:03:42 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 564E543FBF for ; Thu, 12 Jun 2003 11:03:39 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.9/8.12.9) with ESMTP id h5CI3ahS027894; Thu, 12 Jun 2003 11:03:36 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.9/8.12.9) with ESMTP id h5CI3aiw036648; Thu, 12 Jun 2003 11:03:36 -0700 (PDT) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.9/8.12.9/Submit) id h5CI3ZTb036644; Thu, 12 Jun 2003 11:03:35 -0700 (PDT) Date: Thu, 12 Jun 2003 11:03:35 -0700 From: Marcel Moolenaar To: Poul-Henning Kamp Message-ID: <20030612180335.GA36606@dhcp01.pn.xcllnt.net> References: <20030612051553.J36168-100000@mail.chesapeake.net> <1887.1055418352@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1887.1055418352@critter.freebsd.dk> User-Agent: Mutt/1.5.4i cc: arch@freebsd.org Subject: Re: HyperThreading and CPU topologies. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 18:03:42 -0000 On Thu, Jun 12, 2003 at 01:45:52PM +0200, Poul-Henning Kamp wrote: > In message <20030612051553.J36168-100000@mail.chesapeake.net>, Jeff Roberson wr > ites: > >Index: smp.h > >=================================================================== > >RCS file: /home/ncvs/src/sys/sys/smp.h,v > >retrieving revision 1.72 > >diff -r1.72 smp.h > >19a20,46 > >> > >> /* > >> * Topology of a NUMA or HTT system. > >> * > >> * The top level topology is an array of pointers to groups. Each group > >> * contains a bitmask of cpus in its group or subgroups. It may also > >> * contain a pointer to an array of child groups. > >> * > >> * The bitmasks at non leaf groups may be used by consumers who support > >> * a smaller depth than the hardware provides. > >> * > >> * The topology may be omitted by systems where all CPUs are equal. > >> */ > >> > >> struct cpu_group { > >> int cg_mask; /* Mask of cpus in this group. */ > > u_int ? > > uint32_t ? It's best to make it MD depedendent. I prefer 64-bit masks in ia64. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net