svn commit: r328916 - in head/sys: kern vm

Peter Holm peter at holm.cc
Wed Feb 7 17:44:34 UTC 2018


On Wed, Feb 07, 2018 at 08:46:19AM -0800, Gleb Smirnoff wrote:
> On Wed, Feb 07, 2018 at 07:46:17AM +0100, Peter Holm wrote:
> P> On Tue, Feb 06, 2018 at 04:45:49PM -0800, Gleb Smirnoff wrote:
> P> > On Tue, Feb 06, 2018 at 04:42:13PM -0800, Gleb Smirnoff wrote:
> P> > T>   Hi Peter,
> P> > T> 
> P> > T>   can you please try this patch? In either case success
> P> > T> or not, please provide me with dmesg. Thanks a lot!
> P> > 
> P> > Sorry, patch was missing one file. 99.9% this is a no-op,
> P> > but better use full patch.
> 
> Let's do one more attempt. I found where I miss one keg.
> 

Yes, that boots after two tweaks to the patch:
#define        DIAGNOSTIC	(already defined in my build)
printf("ksize %d zsize %d slab %lu\n", ksize, zsize, sizeof(struct uma_slab)); (lu -> u)


GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2018 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #4 r328956M: Wed Feb  7 18:28:57 CET 2018
    pho at x4.osted.lan:/usr/src/sys/i386/compile/PHO i386
FreeBSD clang version 6.0.0 (branches/release_60 321788) (based on LLVM 6.0.0)
WARNING: WITNESS option enabled, expect reduced performance.
WARNING: DIAGNOSTIC option enabled, expect reduced performance.
ksize 204 zsize 292 slab 88
boot_pages master 1
boot_pages zones 3
boot_pages kegs 5
boot_pages hash 6
boot_pages vmem 7
boot_pages kmap 8
Entering uma_startup with 10 boot pages configured
startup_alloc from "UMA Kegs", 9 boot pages left
startup_alloc from "UMA Zones", 8 boot pages left
startup_alloc from "UMA Hash", 7 boot pages left
startup_alloc from "UMA Zones", 6 boot pages left
startup_alloc from "vmem btag", 5 boot pages left
startup_alloc from "MAP", 4 boot pages left
startup_alloc from "UMA Kegs", 3 boot pages left
startup_alloc from "KMAP ENTRY", 2 boot pages left
startup_alloc from "vmem", 1 boot pages left
Entering uma_startup1 with 0 boot pages left
VT(vga): resolution 640x480
CPU: AMD Phenom(tm) 9150e Quad-Core Processor (1800.02-MHz 686-class CPU)
  Origin="AuthenticAMD"  Id=0x100f23  Family=0x10  Model=0x2  Stepping=3
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x802009<SSE3,MON,CX16,POPCNT>
  AMD Features=0xee500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x7ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS>
  SVM: NP,NAsids=64
  TSC: P-state invariant
real memory  = 8589934592 (8192 MB)
avail memory = 3525746688 (3362 MB)
Event timer "LAPIC" quality 100
ACPI APIC Table: <060508 APIC1048>
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s)
random: unblocking device.
ioapic0 <Version 2.1> irqs 0-23 on motherboard
SMP: AP CPU #1 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #2 Launched!
Timecounter "TSC" frequency 1800017912 Hz quality 800
random: entropy device external interface
kbd1 at kbdmux0
[ath_hal] loaded
module_register_init: MOD_LOAD (vesa, 0xc11af130, 0) error 19
nexus0
vtvga0: <VT VGA driver> on motherboard
cryptosoft0: <software crypto> on motherboard
acpi0: <060508 RSDT1048> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0xc000-0xc0ff mem 0xf0000000-0xf7ffffff,0xfe9f0000-0xfe9fffff,0xfe800000-0xfe8fffff irq 18 at device 5.0 on pci1
vgapci0: Boot video device
hdac0: <ATI RS690 HDA Controller> mem 0xfe9e8000-0xfe9ebfff irq 19 at device 5.2 on pci1
pcib2: <ACPI PCI-PCI bridge> at device 7.0 on pci0
pci2: <ACPI PCI bus> on pcib2
re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xd800-0xd8ff mem 0xfeaff000-0xfeafffff irq 19 at device 0.0 on pci2
re0: Using 1 MSI message
re0: Chip rev. 0x38000000
re0: MAC rev. 0x00000000
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re0: Using defaults for TSO: 65518/35/2048
re0: Ethernet address: 00:21:85:15:33:7d
ahci0: <AMD SB600 AHCI SATA controller> port 0xb000-0xb007,0xa000-0xa003,0x9000-0x9007,0x8000-0x8003,0x7000-0x700f mem 0xfe7ff800-0xfe7ffbff irq 22 at device 18.0 on pci0
ahci0: AHCI v1.10 with 4 3Gbps ports, Port Multiplier supported
ahci0: quirks=0x7000<NOMSI,ATI_PMP_BUG,MAXIO_64K>
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich3: <AHCI channel> at channel 3 on ahci0
ohci0: <OHCI (generic) USB controller> mem 0xfe7fe000-0xfe7fefff irq 16 at device 19.0 on pci0
usbus0 on ohci0
usbus0: 12Mbps Full Speed USB v1.0
ohci1: <OHCI (generic) USB controller> mem 0xfe7fd000-0xfe7fdfff irq 17 at device 19.1 on pci0
usbus1 on ohci1
usbus1: 12Mbps Full Speed USB v1.0
ohci2: <OHCI (generic) USB controller> mem 0xfe7fc000-0xfe7fcfff irq 18 at device 19.2 on pci0
usbus2 on ohci2
usbus2: 12Mbps Full Speed USB v1.0
ohci3: <OHCI (generic) USB controller> mem 0xfe7fb000-0xfe7fbfff irq 17 at device 19.3 on pci0
usbus3 on ohci3
usbus3: 12Mbps Full Speed USB v1.0
ohci4: <OHCI (generic) USB controller> mem 0xfe7fa000-0xfe7fafff irq 18 at device 19.4 on pci0
usbus4 on ohci4
usbus4: 12Mbps Full Speed USB v1.0
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfe7ff000-0xfe7ff0ff irq 19 at device 19.5 on pci0
ehci0: AMD SB600/700 quirk applied
usbus5: EHCI version 1.0
usbus5 on ehci0
usbus5: 480Mbps High Speed USB v2.0
atapci0: <ATI IXP600 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 20.1 on pci0
ata0: <ATA channel> at channel 0 on atapci0
hdac1: <ATI SB600 HDA Controller> mem 0xfe7f4000-0xfe7f7fff irq 16 at device 20.2 on pci0
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
pcib3: <ACPI PCI-PCI bridge> at device 20.4 on pci0
pci3: <ACPI PCI bus> on pcib3
pci3: <serial bus, FireWire> at device 6.0 (no driver attached)
amdtemp0: <AMD CPU On-Die Thermal Sensors> on hostb4
amdtemp0: Erratum 319: temperature measurement may be inaccurate
acpi_button0: <Power Button> on acpi0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: console (115200,n,8,1)
fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
ppc0: parallel port not found.
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
NULL mp in getnewvnode(9), tag crossmp
Timecounters tick every 1.000 msec
hdacc0: <ATI RS690/780 HDA CODEC> at cad 0 on hdac0
hdaa0: <ATI RS690/780 Audio Function Group> at nid 1 on hdacc0
pcm0: <ATI RS690/780 (Digital)> at nid 3 on hdaa0
hdacc1: <Realtek ALC888 HDA CODEC> at cad 3 on hdac1
hdaa1: <Realtek ALC888 Audio Function Group> at nid 1 on hdacc1
pcm1: <Realtek ALC888 (Rear Analog 7.1/2.0)> at nid 20,22,21,23 and 24,26 on hdaa1
pcm2: <Realtek ALC888 (Front Analog)> at nid 27 and 25 on hdaa1
pcm3: <Realtek ALC888 (Digital)> at nid 30 on hdaa1
ugen1.1: <ATI OHCI root HUB> at usbus1
ugen0.1: <ATI OHCI root HUB> at usbus0
uhub0: ugen2.1: <ATI OHCI root HUB> at usbus2
ugen5.1: <ATI EHCI root HUB> at usbus5
<ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
uhub2: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
uhub3: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
uhub1: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus5
ugen4.1: <ATI OHCI root HUB> at usbus4
ugen3.1: <ATI OHCI root HUB> at usbus3
uhub4: Expensive timeout(9) function: 0xc05fdc10(0xd5ff9000) 0.009115125 s
(aprobe0:ahcich0:0:15:0): NOP FLUSHQUEUE. ACB: 00 00 00 00 00 00 00 00 00 00 00 00
<ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
(aprobe0:ahcich0:0:15:0): CAM status: Command timeout
uhub5: (aprobe0:ahcich0:0:15:0): Error 5, Retries exhausted
<ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <ST3500418AS CC38> ATA8-ACS SATA 2.x device
ada0: Serial Number 9VMJ99G5
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 476940MB (976773168 512 byte sectors)
cd0 at ata0 bus 0 scbus4 target 1 lun 0
cd0: <_NEC DVD_RW ND-4550A 1.06> Removable CD-ROM SCSI device
cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: Att
WARNING: WITNESS option enabled, expect reduced performance.
WARNING: DIAGNOSTIC option enabled, expect reduced performance.
Trying to mount root from ufs:/dev/ada0s1a [rw]...
uhub3: 2 ports with 2 removable, self powered
uhub0: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
uhub5: 2 ports with 2 removable, self powered
uhub4: 2 ports with 2 removable, self powered
Setting hostuuid: 00000000-0000-0000-0000-00218515337d.
Setting hostid: 0x6b64ac17.
Starting ddb.
eval: limits: not found
/etc/rc: WARNING: failed to start ddb
warning: total configured swap (4194304 pages) exceeds maximum recommended amount (1725680 pages).
warning: increase kern.maxswzone or reduce amount of swap.
Starting file system checks:
/dev/ada0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ada0s1a: clean, 491799 free (2239 frags, 61195 blocks, 0.2% fragmentation)
/dev/ada0s1f: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ada0s1f: clean, 849938 free (11154 frags, 104848 blocks, 1.1% fragmentation)
/dev/label/tmp: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/label/tmp: clean, 46221764 free (41964 frags, 5772475 blocks, 0.0% fragmentation)
/dev/ada0s1d: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ada0s1d: clean, 1924117 free (393013 frags, 191388 blocks, 3.9% fragmentation)
/dev/ada0s1e: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ada0s1e: clean, 5609067 free (232203 frags, 672108 blocks, 0.9% fragmentation)
Mounting local filesystems:.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/arduino/lib /usr/local/lib/compat /usr/local/lib/compat/pkg /usr/local/lib/gcc49 /usr/local/lib/mysql /usr/local/lib/nss /usr/local/lib/perl5/5.24/mach/CORE /usr/local/lib/pth /usr/local/lib/qt4 /usr/local/llvm37/lib /usr/local/llvm39/lib
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout
Setting hostname: x4.osted.lan.
Setting up harvesting: [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy: .
uhub1: 10 ports with 10 removable, self powered
re0: link state changed to DOWN
Starting Network: lo0 re0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128 
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 
	inet 127.0.0.1 netmask 0xff000000 
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
	groups: lo 
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
	ether 00:21:85:15:33:7d
	inet 192.168.1.101 netmask 0xffffff00 broadcast 192.168.1.255 
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: Ethernet autoselect (none)
	status: no carrier
Starting devd.
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add net default: gateway 192.168.1.1
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Creating and/or trimming log files.
Starting syslogd.
Starting rpcbind.
NFS access cache time=60
Starting watchdogd.
No core dumps found.
Additional ABI support: linux.
lock order reversal:
 1st 0xcb1dc088 bufwait (bufwait) @ kern/vfs_bio.c:3564
 2nd 0xd86c4600 dirhash (dirhash) @ ufs/ufs/ufs_dirhash.c:289
stack backtrace:
#0 0xc0cdf5e1 at witness_debugger+0x81
#1 0xc0cdf4a8 at witness_checkorder+0xcd8
#2 0xc0c80b34 at _sx_xlock+0x64
#3 0xc0f9b273 at ufsdirhash_add+0x53
#4 0xc0f9fddf at ufs_direnter+0x4df
#5 0xc0fa8f52 at ufs_mkdir+0x852
#6 0xc1285b86 at VOP_MKDIR_APV+0xf6
#7 0xc0d5c5de at kern_mkdirat+0x21e
#8 0xc0d5c3b1 at sys_mkdir+0x31
#9 0xc1251a1e at syscall+0x6ee
#10 0xc123b0eb at Xint0x80_syscall+0x2b
Clearing /tmp (X related).
Starting nfsuserd.
Starting mountd.
Starting nfsd.
Starting statd.
Starting lockd.
Recovering vi editor sessions:.
Updating motd:.
Mounting late filesystems:.
Starting ntpd.
Starting powerd.
Starting smartd.
Feb  7 18:32:31 x4 smartd[639]: Device: /dev/ada0, WARNING: A firmware update for this drive may be available,
Feb  7 18:32:31 x4 smartd[639]: see the following Seagate web pages:
Feb  7 18:32:31 x4 smartd[639]: http://knowledge.seagate.com/articles/en_US/FAQ/207931en
Feb  7 18:32:31 x4 smartd[639]: http://knowledge.seagate.com/articles/en_US/FAQ/213891en
Configuring vt: keymap blanktime.
Performing sanity check on sshd configuration.
Starting sshd.
Starting sendmail_submit.
Starting sendmail_msp_queue.
Starting cron.
Local package initialization: backuplock order reversal:
 1st 0xd87d3a0c ufs (ufs) @ kern/vfs_subr.c:2607
 2nd 0xcb1dc088 bufwait (bufwait) @ ufs/ffs/ffs_vnops.c:282
 3rd 0xdbe55cdc ufs (ufs) @ kern/vfs_subr.c:2607
stack backtrace:
#0 0xc0cdf5e1 at witness_debugger+0x81
#1 0xc0cdf4a8 at witness_checkorder+0xcd8
#2 0xc0c4b3e6 at __lockmgr_args+0x796
#3 0xc0f95837 at ffs_lock+0xa7
#4 0xc128698a at VOP_LOCK1_APV+0xda
#5 0xc0d5fb91 at _vn_lock+0x61
#6 0xc0d4ba81 at vget+0xc1
#7 0xc0d3ccf2 at vfs_hash_get+0xd2
#8 0xc0f90534 at ffs_vgetf+0x44
#9 0xc0f854d7 at softdep_sync_buf+0x357
#10 0xc0f966df at ffs_syncvnode+0x2df
#11 0xc0f939a8 at ffs_sync+0x248
#12 0xc0d61324 at vfs_write_suspend+0x1c4
#13 0xc0d61555 at vfs_write_suspend_umnt+0x45
#14 0xc0f93084 at ffs_unmount+0xb4
#15 0xc0d43413 at dounmount+0x583
#16 0xc0d42d85 at sys_unmount+0x315
#17 0xc1251a1e at syscall+0x6ee
lock order reversal:
 1st 0xd87d419c ufs (ufs) @ kern/vfs_mount.c:1280
 2nd 0xd85b946c devfs (devfs) @ ufs/ffs/ffs_softdep.c:1912
stack backtrace:
#0 0xc0cdf5e1 at witness_debugger+0x81
#1 0xc0cdf4a8 at witness_checkorder+0xcd8
#2 0xc0c4ab87 at lockmgr_lock_fast_path+0x1c7
#3 0xc0d38e2b at vop_stdlock+0x3b
#4 0xc128698a at VOP_LOCK1_APV+0xda
#5 0xc0d5fb91 at _vn_lock+0x61
#6 0xc0f729f5 at softdep_flushworklist+0x65
#7 0xc0f93c1a at ffs_sync+0x4ba
#8 0xc0d61324 at vfs_write_suspend+0x1c4
#9 0xc0d61555 at vfs_write_suspend_umnt+0x45
#10 0xc0f93084 at ffs_unmount+0xb4
#11 0xc0d43413 at dounmount+0x583
#12 0xc0d42d85 at sys_unmount+0x315
#13 0xc1251a1e at syscall+0x6ee
#14 0xc123b0eb at Xint0x80_syscall+0x2b
** /dev/label/tmp
** Last Mounted on /tmp
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames

- Peter


More information about the svn-src-head mailing list