SMP !=4.2 && 4.3?

SMP !=4.2 && 4.3?

Post by Root » Sun, 23 Sep 2001 09:24:19



Greetings and thanks to *anyone* willing to lend a hand.
I have been using 4.2-STABLE (GENERIC)for a little
over a yr. now. After all this time, it has become a "production
server". So, rather then possibly messing up this machine. I
picked up a used Dual Processor machine to experiment upon.
I installed 4.3-RELEASE on it, ran mptable. The results were
100% compatable across the board. Iattempted to build a Custom
kernel *after* reading *all* the lit. I could find. The following was
used to build it (see below). It failed with "unknown option "NAPIC".
This *is* a valid macro as listed in the handbook. When copmmenting
this out, I get error: "unknown option "NCPU"! What gives?! If you can't

define *multiple* processors, what's the point of making a SMP?!
Wouldn't this just be a UniProcessor (GENERIC)?
Snipet of the kernel file follows:
#
# -- SMP CUSTOM machine with WD/ATAPI/BTx family disks,
# DEx (SMC 10/ 100 w/ Digital 21140-AB processor) family NIC,
# yadda, yadda, yadda....
#
# $Id$

makeoptions KERNEL=DEMONSMP1

machine  i386

cpu  I586_CPU

ident  DEMONSMP1

maxusers 64

options  SMP
options  APIC_IO
options  SMP_INVLTLB
options  NCPU=2
#options NBUS=4
options  NAPIC=2
#options NINTR=24
#options SMP_PRIVPAGES
#options SMP_AUTOSTART
#options SERIAL_DEBUG
options  INET
options  INET6
options  FFS
options  FFS_ROOT
options  NFS
options  MFS
options  MD_ROOT
options  MSDOSFS
options  CD9660
options  PROCFS
options  COMPAT_43
options  SCSI_DELAY=5
options  UCONSOLE
options  USERCONFIG
options  VISUAL_USERCONFIG
options  SYSVSHM

device pci
device isa
...yadda, yadda, yadda...

Please help. The handbook indicates using quotes is nolonger the proper
syntax,
however, config bails out w/ error messages if quotes are *not* used.
Several
other inconsistencies are also involved, so this has been a *real*
challenge just to
get *this* far w/ a kernel. Phew! What a hassle.
 Thanks again for *any* help and time with this.
Sincerely,
 Frutstrated
(Chris)

 
 
 

SMP !=4.2 && 4.3?

Post by Steven G. karg » Sun, 23 Sep 2001 10:52:36



Quote:> 100% compatable across the board. Iattempted to build a Custom
> kernel *after* reading *all* the lit. I could find. The following was
> used to build it (see below). It failed with "unknown option "NAPIC".
> This *is* a valid macro as listed in the handbook. When copmmenting
> this out, I get error: "unknown option "NCPU"! What gives?! If you can't
> define *multiple* processors, what's the point of making a SMP?!
> Wouldn't this just be a UniProcessor (GENERIC)?
> Snipet of the kernel file follows:

Did you try building an SMP kernel without specifying NAPIC and NCPU?
First, try the minimum required options SMP and APIC_IO

--
steve

 
 
 

SMP !=4.2 && 4.3?

Post by Root » Sun, 23 Sep 2001 12:06:44


First, thanks for responding. In response to your suggestion,
the default for NAPIC is 1, the mptable output for my system
indicates 2. Won't this result in code inappropriate for my machine?

Thanks again,
Chris




> > 100% compatable across the board. Iattempted to build a Custom
> > kernel *after* reading *all* the lit. I could find. The following was
> > used to build it (see below). It failed with "unknown option "NAPIC".
> > This *is* a valid macro as listed in the handbook. When copmmenting
> > this out, I get error: "unknown option "NCPU"! What gives?! If you can't
> > define *multiple* processors, what's the point of making a SMP?!
> > Wouldn't this just be a UniProcessor (GENERIC)?
> > Snipet of the kernel file follows:

> Did you try building an SMP kernel without specifying NAPIC and NCPU?
> First, try the minimum required options SMP and APIC_IO

> --
> steve

 
 
 

SMP !=4.2 && 4.3?

Post by Steven G. karg » Sun, 23 Sep 2001 22:53:10



Quote:> First, thanks for responding. In response to your suggestion,
> the default for NAPIC is 1, the mptable output for my system
> indicates 2. Won't this result in code inappropriate for my machine?

I don't remember all the ins and outs of SMP, so you've been warn :-o

My understanding is that all the SMP options other than SMP and
APIC_IO are used *if you can't get a working kernel* with those
two options.  So build a kernel with SMP and APIC_IO options
only, install it, and reboot.  This will give you access to both cpus,
which makes building things going a little faster.

Now, experiment with the NPIC option.  I don't understand why
you can't build a kernel when specify this option.  Kernel configuration
has changed over the last few years.  Maybe you reading out of date
documentation.  Use the syntax in sys/i386/conf/LINT to make sure
you have it right.

--
steve

 
 
 

SMP !=4.2 && 4.3?

Post by Root » Mon, 24 Sep 2001 03:34:28



FreeBSD.org on SMP *this* time it presented information that wasn't
there on my last search. That indicates, that NAPIC, NCPU, etc..
were *removed* as of 4.2-RELEASE. However, the documentation
in both my 4.2-STABLE and my new 2-CPU 4.3-RELEASE indicate
that *all* of the afore mentioned options are defacto for my installs.
arrrggghhhh, what a needless waste of time.
 On the up-side I built (several) with your previous *and accurate*
advice. Managed to boot the last one to a Stable state. Unfortunately,
it whines about the NINTR value being incorrect. Which, of course
I can't change.
 Say, there isn't any reason I can't wipe the drives on this machine
and install 4.something-less-than-2-RELEASE, build/ tweak a
kernel, then upgrade or cvsup to 4.3 or 4.4, everything *except* the
custom kernel is there?

Thanks again,
 Chris




> > First, thanks for responding. In response to your suggestion,
> > the default for NAPIC is 1, the mptable output for my system
> > indicates 2. Won't this result in code inappropriate for my machine?

> I don't remember all the ins and outs of SMP, so you've been warn :-o

> My understanding is that all the SMP options other than SMP and
> APIC_IO are used *if you can't get a working kernel* with those
> two options.  So build a kernel with SMP and APIC_IO options
> only, install it, and reboot.  This will give you access to both cpus,
> which makes building things going a little faster.

> Now, experiment with the NPIC option.  I don't understand why
> you can't build a kernel when specify this option.  Kernel configuration
> has changed over the last few years.  Maybe you reading out of date
> documentation.  Use the syntax in sys/i386/conf/LINT to make sure
> you have it right.

> --
> steve

 
 
 

SMP !=4.2 && 4.3?

Post by Steven G. karg » Mon, 24 Sep 2001 04:47:31



Quote:>  On the up-side I built (several) with your previous *and accurate*
> advice. Managed to boot the last one to a Stable state. Unfortunately,
> it whines about the NINTR value being incorrect. Which, of course
> I can't change.

This might be automatically corrected.  The message is informative
purposes.  But, I don't recall much of the SMP details in 4.x anymore.

Quote:> Say, there isn't any reason I can't wipe the drives on this machine
> and install 4.something-less-than-2-RELEASE, build/ tweak a
> kernel, then upgrade or cvsup to 4.3 or 4.4, everything *except* the
> custom kernel is there?

I won't waste my time doing the dance you propose.  If you're going to
wipe the drives, then I would simply start at FreeBSD 4.4 which was
released last week.  Read sys/i386/conf/NOTES (or LINT).  This will
give you guidance in building the SMP kernel.  BTW, what hardware
do you have?

--
steve

 
 
 

SMP !=4.2 && 4.3?

Post by Root » Fri, 28 Sep 2001 05:02:28


"Steven G. kargl" wrote:

...
<snip>

> I won't waste my time doing the dance you propose.  If you're going to
> wipe the drives, then I would simply start at FreeBSD 4.4 which was
> released last week.  Read sys/i386/conf/NOTES (or LINT).  This will
> give you guidance in building the SMP kernel.

I did as you suggested (read NOTES, LINT in 4.4-RELEASE) found
nothing *new* from either of them. Got frustrated, read ALL docs in
the 4.1.1-RELEASE, found the info needed, wiped disks, installed
4.1.1-RELEASE.Built SMP kernel. Loaded *so* fast I couldn't believe
it! On the down side, it fails after the "Waiting 15 seconds for SCSI
devices to settle" with the following:
(Probe0: bt0 : 0 : 0 : 0) : ccb 0xc525a380 - timed out
(Probe0: bt0 : 0 : 0 : 0) : ccb 0xc525a380 - timed out
bt0: No longer in time out

So it never finishes booting :o[

 My 4.3-RELEASE kernel builds (that I built) occasionally did the same
*not* the GENERIC install kernels install made.
Here's the CONFIG file I'm using:

#
# demonSMPII -- second SMP kernel configuration file for demon.dnswatch.com

# FreeBSD/i386
#
# $FreeBSD: src/sys/i386/conf/demonSMPI,v 1.0.0.0 2001/09/25 11:30:48 nyan
Exp $

machine  i386
cpu  I586_CPU
#cpu  I686_CPU
ident  demonSMPII
maxusers 64

options  INET   #InterNETworking
options  INET6   #IPv6 communications protocols
options  FFS   #Berkeley Fast Filesystem
options  FFS_ROOT  #FFS usable as root device [keep this!]
options  SOFTUPDATES  #Enable FFS soft updates support
options  MFS   #Memory Filesystem
options  MD_ROOT   #MD is a potential root device
options  NFS   #Network Filesystem
options  NFS_ROOT  #NFS usable as root device, NFS required
options  MSDOSFS   #MSDOS Filesystem
options  CD9660   #ISO 9660 Filesystem
options  CD9660_ROOT  #CD-ROM usable as root, CD9660 required
options  PROCFS   #Process filesystem
options  COMPAT_43  #Compatible with BSD 4.3 [KEEP THIS!]
options  SCSI_DELAY=15000 #Delay (in ms) before probing SCSI
options  UCONSOLE  #Allow users to grab the console
options  USERCONFIG  #boot -c editor
options  VISUAL_USERCONFIG #visual boot -c editor
options  KTRACE   #ktrace(1) support
options  SYSVSHM   #SYSV-style shared memory
options  SYSVMSG   #SYSV-style message queues
options  SYSVSEM   #SYSV-style semaphores
options  P1003_1B  #Posix P1003_1B real-time extensions
options  _KPOSIX_PRIORITY_SCHEDULING
options  ICMP_BANDLIM  #Rate limit bad replies
options  KBD_INSTALL_CDEV # install a CDEV entry in /dev

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

# Optionally these may need tweaked, (defaults shown):
options  NCPU=2   # number of CPUs
options  NBUS=4   # number of busses
options  NAPIC=2   # number of IO APICs
options  NINTR=16  # number of INTs

device  isa
device  pci

# Floppy drives
device  fdc0 at isa? port IO_FD1 irq 6 drq 2
device  fd0 at fdc0 drive 0

# ATA and ATAPI devices
device  ata0 at pci? port IO_WD1 irq 14
device  ata
device  atadisk   # ATA disk drives
device  atapicd   # ATAPI CDROM drives
device  atapifd   # ATAPI floppy drives
device  atapist   # ATAPI tape drives
options  ATA_STATIC_ID  #Static device numbering
#options  ATA_ENABLE_ATAPI_DMA #Enable DMA on ATAPI devices

#67 SCSI Controllers
device  bt0 at isa? port IO_BT0 irq 15
#device  da0 at bt0 bus 0 target 0

# SCSI peripherals
device  scbus  # SCSI bus (required)
device  da  # Direct Access (disks)
device  sa  # Sequential Access (tape etc)
device  cd  # CD
device  pass  # Passthrough device (direct SCSI access)

# atkbdc0 controls both the keyboard and the PS/2 mouse
device  atkbdc0 at isa? port IO_KBD
device  atkbd0 at atkbdc? irq 1 flags 0x1
device  psm0 at atkbdc? irq 12

device  vga0 at isa?

# splash screen/screen saver
pseudo-device splash

# syscons is the default console driver, resembling an SCO console
device  sc0 at isa? flags 0x100

# Floating point support - do not disable.
device  npx0 at nexus? port IO_NPX irq 13

# Power management support (see LINT for more options)
device  apm0    at nexus? disable flags 0x20 # Advanced Power Management

# Serial (COM) ports
device  sio0 at isa? port IO_COM1 flags 0x10 irq 4
device  sio1 at isa? port IO_COM2 irq 3

# Parallel port
device  ppc0 at isa? flags 0x08 irq 7
device  ppbus  # Parallel port bus (required)
device  lpt  # Printer
device  plip  # TCP/IP over parallel
device  ppi  # Parallel port interface device

# PCI Ethernet NICs.
device  de0 at pci? irq 10

# Pseudo devices - the number indicates how many units to allocated.
pseudo-device loop  # Network loopback
pseudo-device ether  # Ethernet support
pseudo-device sl 1 # Kernel SLIP
pseudo-device ppp 1 # Kernel PPP
pseudo-device tun  # Packet tunnel.
pseudo-device pty  # Pseudo-ttys (telnet etc)
pseudo-device md  # Memory "disks"
pseudo-device gif 4 # IPv6 and IPv4 tunneling
pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation)

> BTW, what hardware
> do you have?

Here's a *current* dmesg/ mptable output (from the install kernel):

===============================================================================

MPTable, version 2.0.15

 looking for EBDA pointer @ 0x040e, found, searching EBDA @ 0x0009fc00
 searching CMOS 'top of mem' @ 0x0009f800 (638K)
 searching default 'top of mem' @ 0x0009fc00 (639K)
 searching BIOS @ 0x000f0000

 MP FPS found in BIOS @ physical addr: 0x000f08d0

-------------------------------------------------------------------------------

MP Floating Pointer Structure:

  location:   BIOS
  physical address:  0x000f08d0
  signature:   '_MP_'
  length:   16 bytes
  version:   1.1
  checksum:   0xa8
  mode:    Virtual Wire

-------------------------------------------------------------------------------

MP Config Table Header:

  physical address:  0x000f08e4
  signature:   'PCMP'
  base table length:  228
  version:   1.1
  checksum:   0xeb
  OEM ID:   'OEM00000'
  Product ID:   'PROD00000000'
  OEM table pointer:  0x00000000
  OEM table size:  0
  entry count:   20
  local APIC address:  0xfee00000
  extended table length: 0
  extended table checksum: 0

-------------------------------------------------------------------------------

MP Config Base Table Entries:

--
Processors: APIC ID Version State  Family Model Step Flags
   0  0x11  BSP, usable  5  2  1  0x07bf
   1  0x11  AP, usable  5  2  1  0x07bf
--
Bus:  Bus ID Type
   0  ISA
   1  PCI
--
I/O APICs: APIC ID Version State  Address
   2  0x11  usable   0xfec00000
--
I/O Ints: Type Polarity    Trigger Bus ID  IRQ APIC ID PIN#
  INT  conforms    conforms      0    1       2    1
  INT  conforms    conforms      0    0       2    2
  INT  conforms    conforms      0    3       2    3
  INT  conforms    conforms      0    4       2    4
  INT  conforms    conforms      0    5       2    5
  INT  conforms    conforms      0    6       2    6
  INT  conforms    conforms      0    7       2    7
  INT  conforms    conforms      0    8       2    8
  INT  conforms    conforms      0    9       2    9
  INT  conforms    conforms      0   10       2   10
  INT  conforms    conforms      0   11       2   11
  INT  conforms    conforms      0   12       2   12
  INT  conforms    conforms      0   13       2   13
  INT  conforms    conforms      0   14       2   14
  INT  conforms    conforms      0   15       2   15
--
Local Ints: Type Polarity    Trigger Bus ID  IRQ APIC ID PIN#

-------------------------------------------------------------------------------

# SMP kernel config file options:

# Required:
options  SMP   # Symmetric MultiProcessor Kernel
options  APIC_IO   # Symmetric (APIC) I/O

# Optional (built-in defaults will work in most cases):
#options  NCPU=2   # number of CPUs
#options  NBUS=2   # number of busses
#options  NAPIC=1   # number of IO APICs
#options  NINTR=24  # number of INTs

-------------------------------------------------------------------------------

dmesg output:

Copyright (c) 1992-2000 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
 The Regents of the University of California. All rights reserved.
FreeBSD 4.1.1-RELEASE #0: Tue Sep 26 00:46:59 GMT 2000
    j...@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium/P54C (99.55-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x525  Stepping = 5
  Features=0x3bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC>
real memory  = 58720256 (57344K bytes)
config> di lnc0
config> di ie0
config> di fe0
config> di cs0
config> di ata1
config> di aic0
config> di aha0
config> di adv0
config> en sn0
config> po sn0 0x300
config> ir sn0 11
config> f sn0 0
config> en ed0
config> po ed0 0x280
config> ir ed0 11
config> iom ed0 0xd8000
config> f ed0 0
config> en bt0
config> ir bt0 0
config> f bt0 0
config> q
avail memory = 53063680 (51820K bytes)
Preloaded elf kernel "kernel" at 0xc0416000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc041609c.
Intel Pentium detected, installing workaround for F00F bug
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <VLSI 82C592 Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
isab0: <VLSI 82C593 PCI to ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
pci0: <S3 Trio graphics accelerator> at 2.0 irq 11
de0: <Digital 21140 Fast Ethernet> port 0x6000-0x607f mem
0xf0800000-0xf080007f irq 10 at device 4.0 on pci0
de0: SMC 9332DST 21140 [10-100Mb/s] pass 1.2
de0: address 00:00:c0:36:bd:ee
de0: enabling 10baseT port
bt0: <Buslogic Multi-Master SCSI Host Adapter> port 0x6100-0x6103 irq 15 at
device 8.0 on pci0
bt0: BT-946C FW Rev. 4.28D Narrow SCSI Host Adapter, SCSI ID 7, 100 CCBs
atapci0: <CMD 646 ATA controller> port 0x3000-0x300f irq 14 at device 10.0
on pci0
ata0: at 0x1f0 irq 14 on atapci0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port ...

read more »

 
 
 

SMP !=4.2 && 4.3?

Post by Sven Esbjer » Sat, 29 Sep 2001 03:22:07



> # Optionally these may need tweaked, (defaults shown):
> options  NCPU=2   # number of CPUs
> options  NBUS=4   # number of busses
> options  NAPIC=2   # number of IO APICs
> options  NINTR=16  # number of INTs

Comment these out. Or delete those lines. They will never be needed.

Sven

--
 Fight Internet Censorship! http://www.eff.org
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 
 
 

SMP !=4.2 && 4.3?

Post by Root » Sat, 29 Sep 2001 14:06:27




> > # Optionally these may need tweaked, (defaults shown):
> > options  NCPU=2   # number of CPUs
> > options  NBUS=4   # number of busses
> > options  NAPIC=2   # number of IO APICs

options  NAPIC=2   # number of IO APICs (Default 1) --Mine has 2

Quote:

> > options  NINTR=16  # number of INTs

options  NINTR=16  # number of INTs (Default 24) --Mine has 16

Further, Why edit any of the GENERIC file, heck, why not just run
the GENERIC that the system built during install? Because *my*
system has 2 processors and I now know where everything lives (dmesg)
and I wiped my 4.3-RELEASE so that I could install 4.1.1 and fine tune
the
kernel to exactly my systems profile. The options above were removed in
4.2.

Chris

Quote:

> Comment these out. Or delete those lines. They will never be needed.

> Sven

> --
>  Fight Internet Censorship! http://www.veryComputer.com/
>  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--
...........................................
. Microsoft products, as *e *s, .
. perpetually require a fix.              .
.                    C. Hutchinson        .
...........................................
 
 
 

1. Sendmail 8.9.1a & AIX 4.2/4.3

Greetings, Sendmail gurus:

I'm having a very frustrating time getting Sendmail 8.9.1 with the patch

to work properly.  I obtained the dist and patch from sendmail.org,
got the latest m4 compiler and patch program and applied them, and
compiled
8.9.1a successfully.

Behaviour:  It starts as a daemon without complaint, and doesn't relay.
It
will accept locally composed mail and send it outbound.  However, it
will not
accept mail originating either from outside for a legit inside user, nor
will it
accept mail originating from inside to another inside user.

The error Postmaster receives is:
   ----- The following addresses had permanent fatal errors -----

   ----- Transcript of session follows -----
Cannot give this flag and people to send to.

I've been thru all the dejanews postings on this, and through the
Sendmail FAQ and
comp.unix.aix faq.  All the sendmail FAQ says is that the internal
mailer is not
accepting the hand-off of the mail Sendmail is receiving.  However, I've
checked
the sendmail.cf that was generated, and it's virtually identical to the
standard AIX
sendmail.cf in calling /bin/bellmail and passing off the same arguments.

Mailq and newaliases work without complaint.  Anyone have any
suggestions,
esp. those of  you at austin.ibm.com?  Any hints greatly appreciated!

__
Kent Hooker, Sr. Systems Programmer, Unix Support & Systems Admin.
Division of Information Technology, University of Wisconsin-Madison

PGP Public Key available at URL:  http://ra.doit.wisc.edu:8888
____________________________________________________________________

2. Harddisk copy?

3. what are the diffes (4.3.x & 4.2.X)

4. MBR virus -- uh oh!

5. &&&&----Looking for a unix shell------&&&&&

6. CDE Question.

7. ppp && PPPoE && ADSL && net && buffer(s)

8. I can start PPP but it dies!

9. &#27809;&#26377;&#20154;&#29992;&#20013;&#25991;&#21527;&#65311;

10. &&&&&& SUGGESTION ??? &&&&&&&&

11. assertion failure : ext3 & lvm , 2.4.17 smp & 2.4.18-ac1 smp

12. Hercules &&&&&& SVGA ?

13. PERL && mod_perl && FreeBSD && Apache