Subject: Re: 1.5 ALPHA snapshot kernel build hangs
To: Matthew Fredette <fredette@MIT.EDU>
From: Chuck McManis <cmcmanis@mcmanis.com>
List: port-vax
Date: 09/01/2000 11:47:35
It has only accumulated 10 minutes of CPU time, how do you know its hung?
With an 8MB system it will probably take 5 - 6 hours to build the kernel. 
However, that being said, check to see if it is stuck in a disk wait, and 
if so check the termination on your SCSI bus. I have seen the SCSI driver 
hang on poorly terminated busses because it lost the handshake to the disk. 
However, if it is just cc1 that is running and you can still get a shell 
prompt (ie the scheduler is in fact running) then I'd bet it is just 
working hard to compile your kernel.

--Chuck

At 01:18 PM 9/1/00 -0400, Matthew Fredette wrote:

> > Subject: 1.5 vax snapshot available
> > To: None <port-vax@netbsd.org>
> > From: NetBSD list <netbsd@mrynet.com>
> > Date: 08/15/2000 07:14:41
>
> > Chuck McManis has created a 1.5 ALPHA VAX snapshot based on August 1, 2000
> > sources.  It is now available for download at:
> >        ftp://ftp.mrynet.com/pub/os/NetBSD/snapshots/vax-1.5ALPHA-20000801
> > This includes a tarball snapshot of the kernel sources.
> >
> > Thanks to Chuck for providing this!
> >
> > Cheers,
> > -skots
>
>Hi.  I installed this snapshot from scratch last night on a VS3100m38
>with 8MB and 2G.  Installed no problem (thanks, Chuck!).  Today I
>started compiling a custom kernel, using the matched kernel sources
>tarball, and it gets stuck compiling kern/init_main.c.  The machine
>doesn't crash, the build doesn't fail, cc1 just spins:
>
>load averages:  1.69,  1.62,  1.59
>9 processes:   2 runnable, 6 sleeping, 1 on processor
>CPU states:  1.7% user,  0.0% nice, 54.6% system, 20.0% interrupt, 23.7% idle
>Memory: 2036K Act, 904K Inact, 52K Wired, 284K Free, 7408K Swap, 57M Swap free
>
>   PID USERNAME PRI NICE   SIZE   RES STATE     TIME   WCPU    CPU COMMAND
>   847 root      -5    0  4464K 1852K run       9:58 53.81% 53.81% cc1
>   850 root      34    0   152K  192K onproc    0:04  3.34%  3.17% top
>   838 root      10    0  2388K    0K sleep     0:57  0.00%  0.00% <make>
>    92 root      -5    0    80K   48K run       0:15  0.00%  0.00% syslogd
>   175 root      10    0    88K   12K sleep     0:12  0.00%  0.00% <cron>
>   211 root      18    0   368K  172K sleep     0:06  0.00%  0.00% <csh>
>   845 root      10    0   108K    0K sleep     0:01  0.00%  0.00% <cc>
>     1 root      10    0   276K   12K sleep     0:00  0.00%  0.00% <init>
>   844 root      10    0   388K    0K sleep     0:00  0.00%  0.00% <sh>
>
>Any ideas?  I've included the kernel configuration below.  It's GENERIC
>with everything I think I don't need commented out.
>
>Thanks,
>
>Matt
>
>--
>Matt Fredette
>fredette@aquery.com, fredette@mit.edu, fredette@theory.lcs.mit.edu
>http://mit.edu/fredette/www
>"If you understood everything I said, you'd be me."  - Miles Davis
>
>#       $NetBSD: GENERIC,v 1.71.2.2 2000/06/28 13:52:49 ragge Exp $
>#
># GENERIC VAX configuration file; all supported devices.
>#
>
>include         "arch/vax/conf/std.vax"
>
>#ident          "GENERIC-$Revision: 1.71.2.2 $"
>
># Here are all different supported CPU types listed.
>options         "VAX8600"
>options         "VAX8200"
>options         "VAX780"
>options         "VAX750"
>options         "VAX630"        # MV II
>#options        "VAX640"        # MV 3400
>options         "VAX650"        # MV III, 3600, 3800, 3900
>#options        "VAX660"        # VAX 4000/200
>#options        "VAX670"        # VAX 4000/300
>#options        "VAX680"        # VAX 4000/500
>#options        "VAX410"        # VS 2000
>#options        "VAX43"         # VS 3100/76
>#options        "VAX46"         # VS 4000/60
>#options        "VAX48"         # VS 4000 VLC
>#options        "VAX49"         # VS 4000/90
>#options        "VAX53"         # VAX 4000/105A
>
># Max users on system; this is just a hint
>maxusers        12
>
># Kernel compiled-in symbolic debugger & system call tracer
>#makeoptions    DEBUG="-g"
>options         DDB
>#options        DDB_HISTORY_SIZE=100    # enable history editing in DDB
>options         KTRACE
>#options        DIAGNOSTIC
>#options        DEBUG,KMEMSTATS,PMAPDEBUG,TRAPDEBUG
>
>options         SCSIVERBOSE             # Verbose SCSI errors
>
># Network support
>#options        GATEWAY
>options         NTP             # NTP kernel support
>options         INET            # IPv4
>#options        INET6           # IPV6
>#options        IPSEC           # IP security
>#options        IPSEC_ESP       # IP security (encryption part; define 
>w/IPSEC)
>#options        IPSEC_DEBUG     # debug for IP security
>
># All supported filesystem types
>file-system     FFS
>#file-system    LFS
>file-system     MFS
>file-system     NFS
>file-system     FDESC
>file-system     KERNFS
>file-system     NULLFS
>file-system     OVERLAY         # overlay file system
>file-system     PROCFS
>file-system     UMAPFS
>file-system     UNION
>file-system     CD9660
>
>options         QUOTA
>#options        FFS_EI          # FFS Endian Independant support
>#options        SOFTDEP         # FFS soft updates support.
>options         NFSSERVER
>#options        NFS_BOOT_BOOTP,NFS_BOOT_DHCP    # Use bootp <> dhcp
>#options        NFS_BOOT_BOOTPARAM      # Use the Sun way for netbooting.
>
># WS console uses VT100 terminal emulation
>options         WSEMUL_VT100
>options         WSDISPLAY_DEFAULTSCREENS=8
>
># System V shared memory & semaphores support.
>options         SYSVMSG
>options         SYSVSEM
>options         SYSVSHM
>
># Old compat stuff; needed to run 4.3BSD Reno programs.
># Note that if COMPAT_ULTRIX is set, you lose compatibility with
># 4.3BSD Reno programs and get Ultrix compatibility instead.
># (They cannot coexist).
>options         COMPAT_VAX1K    # Must be present to run pre-1.4 binaries.
>options         COMPAT_43
>options         COMPAT_09
>options         COMPAT_10
>options         COMPAT_11
>options         COMPAT_12
>options         COMPAT_13
>options         COMPAT_14
>#options        COMPAT_ULTRIX
>options         COMPAT_IBCS2    # DEC SVR.3 compatilibity
>
>options         LKM
>
># Kernel(s) to compile
>config          netbsd root on sd0a type ffs
>
>mainbus0        at root
>
># All buses; from the beginning attached to mainbus.
>#abus0          at mainbus0             # Master bus on VAX 8600
>#sbi0           at mainbus0             # SBI, master bus on 11/780.
>#cmi0           at mainbus0             # 11/750 internal bus.
>#bi0            at mainbus0             # VAX 8200
>vsbus0          at mainbus0             # All VAXstations
>#ibus0          at mainbus0             # All MicroVAX
>#nbi0           at mainbus0             # VAX 8800
>#xmi0           at mainbus0             # VAX 6000
>
># Vsbus, the virtual VAXstation bus, and possible devices.
>le0             at vsbus0 csr 0x200e0000 # LANCE ethernet
>#ze0            at vsbus0 csr 0x20008000 # SGEC ethernet
>dz0             at vsbus0 csr 0x200a0000 # DC-367 DZ-11 lookalike ctlr
>#dz0            at vsbus0 csr 0x25000000 # VS4000/90 serial line
>#hdc0           at vsbus0 csr 0x200c0000 # HDC9224 MFM/floppy ctlr
>si0             at vsbus0 csr 0x200c0080 # VS2000/3100 SCSI-ctlr
>#asc0           at vsbus0 csr 0x200c0080 # VS4000/60 (or VLC) SCSI-ctlr
>#asc0           at vsbus0 csr 0x26000080 # VS4000/90 SCSI-ctlr
>si1             at vsbus0 csr 0x200c0180 # VS2000/3100 SCSI-ctlr
>smg0            at vsbus0 csr 0x200f0000 # Small monochrome display ctlr.
>#clr0           at vsbus0 csr 0x30000000 # 4- or 8-bitplans color graphics
>
>#rd*            at hdc0 drive?          # RD5x disks
>#ry*            at hdc0 drive?          # RX floppies
>
># Ibus, the internal bus on most Microvaxen
>#uba0           at ibus0                # Qbus adapter
>#ze0            at ibus0                # SGEC on-board ethernet
>#le0            at ibus0                # LANCE ethernet (MV3400)
>#dz0            at ibus0                # VAX 4000/105A serial lines
>#shac0          at ibus0                # DSSI controller
>
># Devices connected at VAXBI
>#cpu*           at bi? node?            # KA820/KA825 cpu
>#mem*           at bi? node?            # Memory subsystems
>#uba*           at bi? node?            # DWBUA BI-Unibus adapter
>#ni*            at bi? node?            # DEBNA/DEBNT ethernet adapter
>#kdb*           at bi? node?            # KDB50 MSCP disk ctlr
>
># CMI (VAX 11/750)
>#mem*           at cmi? tr?             # Memory subsystems
>#uba*           at cmi? tr?             # Unibus adapters
>#mba*           at cmi? tr?             # Massbus adapters
>
># SBI (VAX 11/780, VAX 8600)
>#sbi*           at abus0                # VAX 8600 can have up to 4 SBI's.
>
>#mem*           at sbi? tr?             # Memory subsystems
>#uba*           at sbi? tr?             # Unibus adapters
>#mba*           at sbi? tr?             # Massbus adapters
>
># Devices on Massbus adapters
>#hp*            at mba? drive?          # RM/RP disk drives
>
># Devices on Unibus/Qbus adapters
>#uda0           at uba? csr 0172150     # UDA50/RQDX?
>#uda1           at uba? csr 0160334
>#mtc0           at uba? csr 0174500     # Tape MSCP ctlr
>#ts0            at uba? csr 0172520     # TS11/TSV05 tape.
>#qd0            at uba? csr 0177400     # 4- or 8-bitplans color graphics
>#qv0            at uba? csr 0177400     # Monochrome graphics
>#de0            at uba? csr 0174510     # DELUA/DEUNA
>#qe0            at uba? csr 0174440     # DEQNA/DELQA
>#dhu0           at uba? csr 0160440     # DHU-11
>#dz0            at uba? csr 0160100     # DZ-11
>#dl0            at uba? csr 0176500     # DL-11
>#rlc0           at uba? csr 0174400     # RL11/RLV11 controller
>#rl*            at rlc? drive?          # RL01/RL02 disk drive
>
># MSCP devices
>#mscpbus*       at uda?
>#mscpbus*       at mtc?
>#mscpbus*       at kdb?
>
>#ra*            at mscpbus? drive?      # MSCP disk
>#rx*            at mscpbus? drive?      # MSCP floppy
>#mt*            at mscpbus? drive?      # MSCP tape
>
># VS2000 builtin MFM controller (HDC9224)
>#hdc0           at vsbus0               # The strange builtin MFM controller
>
># SCSI devices
>#scsibus*       at asc?
>scsibus*        at si?
>
>sd*             at scsibus? target? lun?
>st*             at scsibus? target? lun?
>cd*             at scsibus? target? lun?
>ch*             at scsibus? target? lun?
>ss*             at scsibus? target? lun?
>uk*             at scsibus? target? lun?
>
># VAXstation graphics support
>wsdisplay0      at smg0
>#wsdisplay0     at clr0
>#wsdisplay0     at qd0
>#wsdisplay0     at qv0
>lkc0            at dz0
>
>pseudo-device   loop    1
>pseudo-device   pty     48
>pseudo-device   bpfilter 4              # Not supported by de yet.
>#pseudo-device  sl      2
>#pseudo-device  ppp     2
>#pseudo-device  tun     2
>#pseudo-device  gre     2               # generic L3 over IP tunnel
>#pseudo-device  gif     4               # IPv[46] over IPv[46] tunnel 
>(RFC1933)
>#pseudo-device  faith   1               # IPv[46] tcp relay translation i/f
>#pseudo-device  stf     1               # 6to4 IPv6 over IPv4 encapsulation
>#pseudo-device  tb      1
>pseudo-device   vnd     4
>#pseudo-device  ccd     4
>#pseudo-device  raid    4               # RAIDframe disk driver
>#options        RAID_AUTOCONFIG         # auto-configuration of RAID 
>components
># rnd is EXPERIMENTAL
>#pseudo-device  rnd                     # /dev/random and in-kernel generator