From owner-freebsd-smp Mon Nov 9 03:24:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA16514 for freebsd-smp-outgoing; Mon, 9 Nov 1998 03:24:47 -0800 (PST) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA16501; Mon, 9 Nov 1998 03:24:43 -0800 (PST) (envelope-from peter@netplex.com.au) Received: from spinner.netplex.com.au (localhost [127.0.0.1]) by spinner.netplex.com.au (8.9.1/8.9.1/Spinner) with ESMTP id TAA29164; Mon, 9 Nov 1998 19:21:41 +0800 (WST) (envelope-from peter@spinner.netplex.com.au) Message-Id: <199811091121.TAA29164@spinner.netplex.com.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Bruce Evans cc: narvi@haldjas.folklore.ee, current@FreeBSD.ORG, jc@irbs.com, mike@smith.net.au, smp@FreeBSD.ORG Subject: Re: Dog Sloooow SMP In-reply-to: Your message of "Mon, 09 Nov 1998 21:22:30 +1100." <199811091022.VAA22031@godzilla.zeta.org.au> Date: Mon, 09 Nov 1998 19:21:40 +0800 From: Peter Wemm Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Bruce Evans wrote: > >> FreeBSD should use its own bitmap of capabilities and not test the Intel > >> flags except once to translate them. 32 general flags might even be > >> enough. > >> > > > >How about 64 for the odd case that K7 actually materialises as promised > >and people start putting them in dual motherboards? > > That would be almost twice as slow for CC=gcc. CC=egcs handles 64-bit > bit tests better, especially for the low 32 bits. 32 vs. 64 is almost irrelevant.. There's no limit to the number of 32 bit variables that we can use with flags in them, so there's no reason why we'd use a 64 bit variable in the first place. However.. One thing that bugs me is that we presently can optimize out code and tests for a runtime boost when compiled for a specific cpu. eg: if we support 386 cpus, we test for whether we have an invlpg instruction or not - but if we are not compiling with a 386 option then this code and the test for >= 486 goes away. > Bruce Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message