Re: Need help with crash analysis
I had another crash and this time ran kgdb and typed bt full with the following output. As a last resort I rebuilt the kernel with HZ=2000, instead of 1000 and haven't had a crash since. My wireless card seems more responsive under load too. Ping times are lower when I'm transferring large files across the network. [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol ps_pglobal_lookup] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-marcel-freebsd. Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x10 fault code = supervisor read, page not present instruction pointer = 0x20:0xc066ccec stack pointer = 0x28:0xe36198bc frame pointer = 0x28:0x0 code segment= base 0x0, limit 0xf, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags= interrupt enabled, resume, IOPL = 0 current process = 38 (swi1: net) trap number = 12 panic: page fault cpuid = 0 Uptime: 3m17s Dumping 1023 MB (2 chunks) chunk 0: 1MB (158 pages) Fatal trap 12: page fault while in kernel mode cpuid = 1; apic id = 01 fault virtual address = 0x1c fault code = supervisor write, page not present instruction pointer = 0x20:0xc0549f20 stack pointer = 0x28:0xe5084c8c frame pointer = 0x28:0xe5084ccc code segment= base 0x0, limit 0xf, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags= interrupt enabled, resume, IOPL = 0 current process = 36 (swi4: clock) trap number = 12 ... ok chunk 1: 1023MB (261802 pages) 1007 991 975 959 943 927 911 895 879 863 847 831 815 799 783 767 751 735 719 703 687 671 655 639 623 607 591 575 559 543 527 511 495 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15 #0 doadump () at pcpu.h:165 165 pcpu.h: No such file or directory. in pcpu.h (kgdb) bt full #0 doadump () at pcpu.h:165 No locals. #1 0xc053b467 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:399 first_buf_printf = 1 #2 0xc053b818 in panic (fmt=0xc06dc865 %s) at /usr/src/sys/kern/kern_shutdown.c:555 td = (struct thread *) 0xc22ec4b0 bootopt = 260 newpanic = 0 ap = 0xc22ec4b0 buf = page fault, '\0' repeats 245 times #3 0xc06b4b14 in trap_fatal (frame=0xe361987c, eva=0) at /usr/src/sys/i386/i386/trap.c:831 code = 40 type = 12 ss = 40 esp = 0 softseg = {ssd_base = 0, ssd_limit = 1048575, ssd_type = 27, ssd_dpl = 0, ssd_p = 1, ssd_xx = 0, ssd_xx1 = 0, ssd_def32 = 1, ssd_gran = 1} #4 0xc06b480d in trap_pfault (frame=0xe361987c, usermode=0, eva=16) at /usr/src/sys/i386/i386/trap.c:742 va = 0 vm = (struct vmspace *) 0x0 map = 0xc073d820 rv = 1 ftype = 1 '\001' td = (struct thread *) 0xc22ec4b0 p = (struct proc *) 0xc234b000 #5 0xc06b43f3 in trap (frame= {tf_fs = -480182264, tf_es = 40, tf_ds = 40, tf_edi = 0, tf_esi = -315641204, tf_ebp = 0, tf_isp = -480143192, tf_ebx = -315638608, tf_edx = 791735, tf_ecx = -1073475471, tf_eax = 1, tf_trapno = 12, tf_err = 0, tf_eip = -1067004692, tf_cs = 32, tf_eflags = 66050, tf_esp = 16777216, tf_ss = 0}) at /usr/src/sys/i386/i386/trap.c:432 td = (struct thread *) 0xc22ec4b0 p = (struct proc *) 0xc234b000 sticks = 3814824188 i = 0 ucode = 0 type = 12 code = 0 eva = 16 #6 0xc06a041a in calltrap () at /usr/src/sys/i386/i386/exception.s:139 No locals. #7 0xc066ccec in zz0e373a4d () No symbol table info available. (kgdb) quit On Fri, 2005-12-16 at 18:17 -0500, Peter D. Quilty wrote: I have a Dell Inspiron 9100 laptop that has been crashing lately. It seems to happen when there is a moderate disk load and the network load is 6 Mbits/sec. I can usually replicate it by running portsdb -fUu while downloading or copying large files across the network. I have tried the following in an attempt to isolate the problem, but nothing has worked. * disabling ACPI * disabling hyperthreading * disabling SMP * switching back to the 4BSD scheduler from ULE I ran kgdb against kernel.debug and the crash dump, but don't quite know how to interpret it or where to go from here. I've attached my kernel config file, dmesg.boot, and the outputs from kldstat and kgdb. I recently upgraded my router/access point at home from
Need help with crash analysis
I have a Dell Inspiron 9100 laptop that has been crashing lately. It seems to happen when there is a moderate disk load and the network load is 6 Mbits/sec. I can usually replicate it by running portsdb -fUu while downloading or copying large files across the network. I have tried the following in an attempt to isolate the problem, but nothing has worked. * disabling ACPI * disabling hyperthreading * disabling SMP * switching back to the 4BSD scheduler from ULE I ran kgdb against kernel.debug and the crash dump, but don't quite know how to interpret it or where to go from here. I've attached my kernel config file, dmesg.boot, and the outputs from kldstat and kgdb. I recently upgraded my router/access point at home from 802.11b to 802.11g to take advantage of the faster network cards in my laptops and I am wondering if that could be exposing a bug or race condition. I tried putting my network card back in 11b mode (instead of 11g) and I don't see the problem nearly as often. Does anyone have any suggestions as to how to troubleshoot this further? I have saved the relevant kernel files and crash dumps, in case I need to reference them again. -- Peter D. Quilty [EMAIL PROTECTED] 703-906-5633 GnuPG Key: http://users.adelphia.net/~pdquilty/gpg-pubkey.asc GnuPG Key Fingerprint: A46A 0E56 D13E 5617 4696 2B04 0D0C E34D CB6D D107 makeoptions DEBUG=-g machine i386 cpu I686_CPU ident PDQ.9100 options INCLUDE_CONFIG_FILE options ROOTDEVNAME=\ufs:ad0s1a\ options SMP options SCHED_ULE options PREEMPTION options MPTABLE_FORCE_HTT options IPI_PREEMPTION options INET options FFS options SOFTUPDATES options UFS_DIRHASH options MSDOSFS options SMBFS options CD9660 options PROCFS options PSEUDOFS options COMPAT_LINUX options LINPROCFS options COMPAT_43 options KTRACE options SYSVSHM options SYSVMSG options SYSVSEM options _KPOSIX_PRIORITY_SCHEDULING options KBD_INSTALL_CDEV options ADAPTIVE_GIANT options NETSMB options NETSMBCRYPTO options LIBMCHAIN options LIBICONV device apic device isa device pci device ata device atadisk device atapicd device atapicam options ATA_STATIC_ID device scbus device da device cd device pass device atkbdc device atkbd device psm device vga device splash device sc device npx device pmtimer device cbb device pccard device cardbus device sio device miibus device bfe device wlan device wlan_wep device ath_hal device ath_rate_sample device ath device loop device mem device io device random device ether device pty device snp device bpf device uhci device ehci device usb device umass device ums device firewire device sbp device sound device snd_ich Copyright (c) 1992-2005 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 6.0-RELEASE #16: Wed Dec 14 14:34:52 EST 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/PDQ.9100 ACPI APIC Table: DELL CPi R Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (2992.51-MHz 686-class CPU) Origin = GenuineIntel Id = 0xf29 Stepping = 9 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE Features2=0x4400CNTX-ID,b14 Hyperthreading: 2 logical CPUs real memory = 1073389568 (1023 MB) avail memory = 1041309696 (993 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 Version 2.0 irqs 0-23 on motherboard netsmb_dev: loaded kqemu version 0x00010200 kqemu: KQEMU installed, max_instances=4 max_locked_mem=129932kB. ath_hal: 0.9.14.9 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413) npx0: [FAST] npx0: math processor on motherboard npx0: INT 16 interface acpi0: DELL CPi R on motherboard pci_link0: ACPI PCI Link LNKA irq 11 on acpi0 pci_link1: ACPI PCI Link LNKB irq 11 on acpi0 pci_link2: ACPI PCI Link LNKC irq 11 on acpi0 pci_link3: ACPI PCI Link LNKD irq 11 on acpi0 pci_link4: ACPI PCI Link LNKE on acpi0 pci_link5: ACPI PCI Link LNKH irq 11 on acpi0 Timecounter ACPI-fast frequency 3579545 Hz quality 1000 acpi_timer0: 24-bit timer at 3.579545MHz port 0x1008-0x100b on acpi0 cpu0: ACPI CPU on acpi0
Re: High interrupts w/ Cisco 350 card
On Wed, 2005-09-21 at 18:01 +1000, Peter Jeremy wrote: On Tue, 2005-Sep-20 19:44:07 -0400, Peter D. Quilty wrote: I'm running 5.4-RELEASE-p6 on a Toshiba Tecra M2 laptop. My network card is a Cisco 350 PCMCIA card. I'm experiencing a very high rate of interrupts during heavy network traffic. Not quite. vmstat -i reports 173 interrupts/sec. That's not high. systat -iostat shows a ludicrously high interrupt load though. I notice that almost all the hardware on your laptop maps to irq 11 - that's undesirable. Can you convince your BIOS to use different interrupt mappings? No, the PCI bus is hardcoded to use only irqs 10 11. The video card uses 10 and everything else shares 11. This Cisco card works fine in every other laptop I have. What OS? All are running FreeBSD 5.4-RELEASE. I suspect it might be a cardbus problem, but I don't know how to resolve it or troubleshoot it any further. The PCCard bus is fairly atrocious (basically ISA) but isn't that bad. I can get roughly wire speed from a 10baseT NIC without serious CPU strain on a P-233 laptop. Have you tried anything other that FreeBSD 5.4 on your Tecra? No, I haven't. It is my primary laptop and I would prefer not to have to load another OS merely for testing. interrupt total rate ... irq11: cbb0 cbb1+++ 6773905173 ... /0 /10 /20 /30 /40 /50 /60 /70 /80 /90 /100 cpu user|X nice| system|X interrupt|XXX idle|XXX ... ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
High interrupts w/ Cisco 350 card
:00:39:00:00:51:65:81 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: IEEE1394(FireWire) bus on fwohci0 sbp0: SBP-2/SCSI over FireWire on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop = 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) em0: Intel(R) PRO/1000 Network Connection, Version - 1.7.35 port 0xcdc0-0xcdff mem 0xfc5c-0xfc5d irq 11 at device 9.0 on pci2 em0: Ethernet address: 00:0e:7b:0f:7a:01 em0: Speed:N/A Duplex:N/A cbb0: ToPIC100 PCI-CardBus Bridge at device 11.0 on pci2 cardbus0: CardBus bus on cbb0 pccard0: 16-bit PCCard bus on cbb0 cbb1: ToPIC100 PCI-CardBus Bridge at device 11.1 on pci2 cardbus1: CardBus bus on cbb1 pccard1: 16-bit PCCard bus on cbb1 pci2: base peripheral at device 13.0 (no driver attached) isab0: PCI-ISA bridge at device 31.0 on pci0 isa0: ISA bus on isab0 atapci0: Intel ICH4 UDMA100 controller port 0xbfa0-0xbfaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 irq 11 at device 31.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pcm0: Intel ICH4 (82801DB) port 0xbdc0-0xbdff,0xbe00-0xbeff mem 0xfc4ffd00-0xfc4ffdff,0xfc4ffe00-0xfc4f irq 11 at device 31.5 on pci0 pcm0: Analog Devices AD1981B AC97 Codec pci0: simple comms, generic modem at device 31.6 (no driver attached) acpi_button0: Power Button on acpi0 acpi_lid0: Control Method Lid Switch on acpi0 acpi_cmbat0: Control Method Battery on acpi0 acpi_cmbat1: Control Method Battery on acpi0 acpi_acad0: AC Adapter on acpi0 acpi_toshiba0: Toshiba HCI Extras on acpi0 acpi_tz0: Thermal Zone on acpi0 atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0 atkbd0: AT Keyboard irq 1 on atkbdc0 kbd0 at atkbd0 psm0: PS/2 Mouse irq 12 on atkbdc0 psm0: model GlidePoint, device ID 0 sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A orm0: ISA Option ROMs at iomem 0xe-0xe,0xc-0xc on isa0 pmtimer0 on isa0 sc0: System console at flags 0x100 on isa0 sc0: VGA 16 virtual consoles, flags=0x300 vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0 ums0: Sun Microsystems Type 6 USB mouse, rev 1.10/1.05, addr 2, iclass 3/1 ums0: 3 buttons. Timecounter TSC frequency 598494220 Hz quality 800 Timecounters tick every 10.000 msec ad0: 38154MB TOSHIBA MK4026GAX/PA103H [77520/16/63] at ata0-master UDMA100 an0: Cisco Systems 350 Series Wireless LAN Adapter at port 0xc000-0xc03f irq 11 function 0 config 5 on pccard0 an0: got RSSI - dBM map an0: supported rates: 1Mbps 2Mbps 5.5Mbps 11Mbps an0: Ethernet address: 00:07:0e:b9:2e:d5 ata1-slave: FAILURE - ATAPI_IDENTIFY timed out ata1-slave: FAILURE - ATAPI_IDENTIFY timed out ata1-slave: FAILURE - ATAPI_IDENTIFY timed out acd0: CDRW UJDA750 DVD/CDRW/1.60 at ata1-master UDMA33 cd0 at ata1 bus 0 target 0 lun 0 cd0: MATSHITA UJDA750 DVD/CDRW 1.60 Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed Mounting root from ufs:/dev/ad0s1a -- Peter D. Quilty [EMAIL PROTECTED] 703-906-5633 GnuPG Key: http://users.adelphia.net/~pdquilty/gpg-pubkey.asc GnuPG Key Fingerprint: A46A 0E56 D13E 5617 4696 2B04 0D0C E34D CB6D D107 ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CALL FOR TESTERS: new candidate for libusb port
This seems to work well. I used it with audio/ifp-line for my MP3 player and with graphics/gphoto2 for my camera. No problems at all. It was a perfect drop in replacement for 0.1.7. All I had to do was add a symlink because of the version number differences. PDQ On Sat, 2005-02-26 at 16:57 -0700, John Reynolds wrote: Hello all, I know that I have been very slow in arriving at this point. My life has been sucked away recently with a large project at work. Such is open source But at long last I have devoted some cycles to updating the libusb port for FreeBSD. However, since there has been such a long cycle between updates, and many changes to the code I wanted to roll a binary package file and have people test out with existing apps before I submitted the PR to have the port files themselves changed. The version in the tree right now is 0.1.7. Johannes has released 0.1.10a just a few weeks ago and it looks like it has many changes to the BSD code (with what looks like some the integration of some patches which previously were applied by the port itself). So, for those who enjoy libusb on a daily basis like me, can you please fetch the following: http://www.reynoldsnet.org/libusb-0.1.10a.tbz and pkg_add it then test out your apps? You might have to go swizzle some soft links in /usr/local/lib if your apps linked to libusb-0.1.so.7 because he's changed the version number of the lib to 8 so what this pkg installs is libusb-0.1.so.8. I only use libusb with a single application to snarf pictures off my digital camera, but I'm sure others use it for many other things. The wider the testing, the better. I will roll the port changes and have them ready to send-pr if I receive all thumbs up messages. Thank you, -Jr ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]