From owner-svn-src-all@freebsd.org Sat Mar 4 20:49:36 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A9AD4CF942C for ; Sat, 4 Mar 2017 20:49:36 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1.freebsd.org (Postfix) with SMTP id 86CAE1082 for ; Sat, 4 Mar 2017 20:49:35 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: (qmail 93996 invoked by uid 99); 4 Mar 2017 20:49:34 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Mar 2017 20:49:34 +0000 Received: from [192.168.0.104] (unknown [190.157.139.67]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 2612E1A0029; Sat, 4 Mar 2017 20:49:31 +0000 (UTC) From: Pedro Giffuni Message-Id: Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: svn commit: r314669 - head/sys/i386/conf Date: Sat, 4 Mar 2017 15:49:52 -0500 In-Reply-To: <2368011.hGEX4V32U5@ralph.baldwin.cx> Cc: Slawa Olhovchenkov , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org To: John Baldwin References: <201703041504.v24F4HMh023937@repo.freebsd.org> <20170304153228.GM15630@zxy.spb.ru> <2368011.hGEX4V32U5@ralph.baldwin.cx> X-Mailer: Apple Mail (2.3259) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Mar 2017 20:49:36 -0000 > Il giorno 04 mar 2017, alle ore 14:43, John Baldwin = ha scritto: >=20 > On Saturday, March 04, 2017 10:52:46 AM Pedro Giffuni wrote: >>=20 >> On 03/04/17 10:32, Slawa Olhovchenkov wrote: >>> On Sat, Mar 04, 2017 at 03:04:17PM +0000, Pedro F. Giffuni wrote: >>>=20 >>>> Author: pfg >>>> Date: Sat Mar 4 15:04:17 2017 >>>> New Revision: 314669 >>>> URL: https://svnweb.freebsd.org/changeset/base/314669 >>>>=20 >>>> Log: >>>> Drop i486 from the default i386 GENERIC kernel configuration. >>>>=20 >>>> 80486 production was stopped by Intel on September 2007. Dropping = the 486 >>>> configuration option from the GENERIC kernel improves performance >>>> slightly. >>>>=20 >>>> Removing I486_CPU is consistent at this time: we don't support any >>>> processor without a FPU and the PC-98 arch, which frequently = involved i486 >>>> CPUs, is also gone so we don't test such platforms anymore. >>>=20 >>> What is realy mean? >>=20 >> This means we don't do work-arounds that would be required for raw = 486. >> Instead we will use the 586 instructions by default. >=20 > This doesn't change that. The kernel already has runtime tests in = place > for new things on 486 and later via cpuid. >=20 Hmm ..then I am wondering if I effectively changed anything? >>> Some Via CPU is like i486 (by instruction set). >>>=20 >>> CPU: VIA Ezra (800.04-MHz 686-class CPU) >>> Origin=3D"CentaurHauls" Id=3D0x678 Family=3D0x6 Model=3D0x7 = Stepping=3D8 >>> Features=3D0x803035 >>> AMD Features=3D0x80000000<3DNow!> >>>=20 >>=20 >> 486 never had MMX extensions. >> This is a 686, performance should improve ~4%. >=20 > How did you measure the improvement? Keeping I486_CPU doesn't really > do anything except remove a some #ifdef'd conditionals in identcpu.c > and initcpu.c. It doesn't affect whether we use the TSC, MMX, etc. = Those > are all runtime checks based the CPU feature flags from cpuid. >=20 The number came out from an old posting involving buildworld times, = which I can=E2=80=99t find now :(. Things seem to have changed a lot: it was surely using GCC back then, I = don=E2=80=99t believe clang does much distinction about 486 at all. BTW, does it make sense to keep i586 in the configuration still? Both = i486 and i586 were once removed but later re-instated in r205336. Pedro.