Multiple CPUs...verifying

2003-10-22 Thread Marco Greene (Home)


Does FreeBSD autodetect multiple CPU's or do you specifically have to
configure the kernel and recompile?

I tried downloading the latest code using cvsup..commenting out the
following two lines...and tried to follow the make world procedure as
outline in the handbook.  However, when I try to boot with the new
kernel...it doesn't work.

Also, how do you verify whether or not both CPUs have been configured in the
kernel...and that they are in fact being used?

Other flavours of UNIX have mpstat or prtdiag...

Thanks,
Marco

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Multiple CPUs...verifying

2003-10-22 Thread Gerald Freymann
On Wed, 22 Oct 2003 22:27:13 -0400
Marco Greene (Home) [EMAIL PROTECTED] wrote:

|O|Does FreeBSD autodetect multiple CPU's or do you specifically have to
|O|configure the kernel and recompile?

 In my experiences with FreeBSD 4-4.8R, you have to uncomment two lines in
the kernel config file.

# To make an SMP kernel, the next two are needed
optionsSMP # Symmetric MultiProcessor Kernel
optionsAPIC_IO # Symmetric (APIC) I/O

 and then rebuildworld and kernel. 

 World because there are programs that will compile differently if there
are multiple CPU's (at least I think that's right!)

 Kernel for obvious reason.

|O|outline in the handbook.  However, when I try to boot with the new
|O|kernel...it doesn't work.

 I think you're going to have to give more information than it doesn't
work if you expect anybody to attempt to offer advice.

|O|Also, how do you verify whether or not both CPUs have been configured
|O|in the kernel...and that they are in fact being used?

 type:   dmesg |more

 and look through the results. When my dual-cpu loads up, I see where
there 2nd CPU is acknowledged. Even doing a 'top' shows me which CPU is in
use for each program.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Scary Gerry -- Senior Systems Manager
 [EMAIL PROTECTED]
 -For web-hosting, Perl, PHP  MySql 
  programming see http://www.interpool.ca
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]