Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2002 10:36:29 -0500
From:      "Jack L. Stone" <jackstone@sage-one.net>
To:        Walter <walterk1@earthlink.net>, "freebsd-questions@FreeBSD.org" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: kernel optimization
Message-ID:  <3.0.5.32.20021024103629.00e357f8@mail.sage-one.net>
In-Reply-To: <3DB80C07.9BDDFE63@earthlink.net>
References:  <3DB80AF6.4559ED25@earthlink.net>

next in thread | previous in thread | raw e-mail | index | archive | help
At 10:04 AM 10.24.2002 -0500, Walter wrote:
>Never mind...   I just found the explanation further down (from
>the "machine  i386" line in LINT.  Sorry.
>
># CPU OPTIONS
>
>#
># You must specify at least one CPU (the one you intend to run on);
># deleting the specification for CPUs you don't need to use may make
># parts of the system run faster.  This is especially true removing
># I386_CPU.
>#
>cpu             I386_CPU
>cpu             I486_CPU
>cpu             I586_CPU                # aka Pentium(tm)
>cpu             I686_CPU                # aka Pentium Pro(tm)
>
>
>Walter wrote:
>
>> I haven't yet found notes on optimizing the kernel by
>> telling the compiler I have a Pentium rather than just
>> a 386-compatible processor.  I presume these lines
>> in the kernel configuration file deal with this:
>>
>> machine         i386
>> cpu             I386_CPU
>> cpu             I486_CPU
>> cpu             I586_CPU
>> cpu             I686_CPU
>>
>> Q: Do I comment out the "I386_CPU" and "I486_CPU"
>> lines to optimize for a Pentium, (& if not, how do I,) and
>> Q: Does it make a significant difference?

You should run "dmesg" and see what it says at the top, like this
"686-class CPU":
CPU: AMD Athlon(TM) MP 1900+ (1600.07-MHz 686-class CPU)

Make your kernel conf agree with that.

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
jackstone@sage-one.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.20021024103629.00e357f8>