From owner-freebsd-current@FreeBSD.ORG Sun Jan 22 17:03:52 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A905816A41F for ; Sun, 22 Jan 2006 17:03:52 +0000 (GMT) (envelope-from pawel.worach@gmail.com) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22DA143D60 for ; Sun, 22 Jan 2006 17:03:45 +0000 (GMT) (envelope-from pawel.worach@gmail.com) Received: by uproxy.gmail.com with SMTP id j3so430764ugf for ; Sun, 22 Jan 2006 09:03:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=KON0Uppn3Dpx+wSG6A3ad5L//kdmAlhpoO3pEksXdw3Rzrw/ewWyUEK/CV0DodAlVDwQyiR0FS3iaUf0/bMWZDde1loCm76LcG9dR4y8K3c+EFFPsgYQLPbKohhTFwrOJX+isemOt2ncCBu2HwM8AttXB28Yzv4zDn/ebZ4w6pw= Received: by 10.67.23.13 with SMTP id a13mr1904200ugj; Sun, 22 Jan 2006 09:03:44 -0800 (PST) Received: from ?192.168.0.107? ( [80.217.193.226]) by mx.gmail.com with ESMTP id q40sm367747ugc.2006.01.22.09.03.43; Sun, 22 Jan 2006 09:03:44 -0800 (PST) Message-ID: <43D3BAE9.6080501@gmail.com> Date: Sun, 22 Jan 2006 18:03:37 +0100 From: Pawel Worach User-Agent: Thunderbird 1.5 (X11/20060107) MIME-Version: 1.0 To: Stefan Ehmann References: <1137681189.672.4.camel@localhost> <20060120105424.m384aenq0ck4g088@netchild.homeip.net> <1137942552.893.4.camel@localhost> In-Reply-To: <1137942552.893.4.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Alexander Leidinger , current@freebsd.org Subject: Re: panic: kmem_malloc(171642880): kmem_map too small: 31387648 total allocated X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jan 2006 17:03:52 -0000 Stefan Ehmann wrote: > I had similar problems. removing atatpicam fixed this. > > Also I could run a buildworld without a panic. Might be only by chance > though (don't know how easily the panic was reproducible). > I have a similar panic here, seems like ATAPICAM finds a bogus CD in the drive and then GEOM_ELI tries to taste it. cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: \M-@:\M-W\M-D\^P panic: kmem_malloc(536870912): kmem_map too small: 14929920 total allocated KDB: stack backtrace: kdb_backtrace(c071ee05,c0774e20,c072fcb3,e35a85ac,100) at kdb_backtrace+0x2e panic(c072fcb3,20000000,e3d000,e35a85dc,c070cfed) at panic+0xb7 kmem_malloc(c104c0a8,20000000,2,e35a862c,c068e532) at kmem_malloc+0xab page_alloc(0,20000000,e35a861f,2,c56d47bc) at page_alloc+0x27 uma_large_malloc(20000000,2,e35a8650,c04ead43,20000000) at uma_large_malloc+0x52malloc(20000000,c0746c80,2,0,c56ef9c0) at malloc+0x9e g_read_data(c56ef9c0,0,200000,20000000,0) at g_read_data+0x50 g_eli_read_metadata(c0746980,c56e0600,e35a8a7c,c0719b38,c56e0658) at g_eli_read_metadata+0xe1 g_eli_taste(c0746980,c56e0600,0,c56e0700,4) at g_eli_taste+0xdc g_new_provider_event(c56e0600,0,0,c072c28d,0) at g_new_provider_event+0x7a one_event(66666667,c4aa1bd0,0,e35a8d00,c04eb955) at one_event+0x219 g_run_events(c0772c90,0,4c,c072c28d,64) at g_run_events+0x15 g_event_procbody(0,e35a8d38,0,0,0) at g_event_procbody+0x85 fork_exit(c04eb8d0,0,e35a8d38) at fork_exit+0x7f fork_trampoline() at fork_trampoline+0x8 --- trap 0x1, eip = 0, esp = 0xe35a8d6c, ebp = 0 --- Uptime: 16m5s Dumping 1023 MB (2 chunks) chunk 0: 1MB (159 pages) ... ok chunk 1: 1023MB (261728 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:166 166 pcpu.h: No such file or directory. in pcpu.h (kgdb) bt #0 doadump () at pcpu.h:166 #1 0xc0534438 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:399 #2 0xc05347ad in panic ( fmt=0xc072fcb3 "kmem_malloc(%ld): kmem_map too small: %ld total allocated") at /usr/src/sys/kern/kern_shutdown.c:555 #3 0xc069660b in kmem_malloc (map=0xc104c0a8, size=536870912, flags=2) at /usr/src/sys/vm/vm_kern.c:299 #4 0xc068b867 in page_alloc (zone=0x0, bytes=0, pflag=0x0, wait=0) at /usr/src/sys/vm/uma_core.c:956 #5 0xc068e532 in uma_large_malloc (size=536870912, wait=2) at /usr/src/sys/vm/uma_core.c:2698 #6 0xc0525a4e in malloc (size=536870912, mtp=0xc0746c80, flags=2) at /usr/src/sys/kern/kern_malloc.c:322 #7 0xc04eb610 in g_read_data (cp=0x0, offset=Unhandled dwarf expression opcode 0x93 ) at geom.h:290 #8 0xc04e2e81 in g_eli_read_metadata (mp=0x0, pp=0xc56e0600, md=0xe35a8a7c) at /usr/src/sys/geom/eli/g_eli.c:575 #9 0xc04e407c in g_eli_taste (mp=0xc0746980, pp=0xc56e0600, flags=0) at /usr/src/sys/geom/eli/g_eli.c:917 #10 0xc04ed56a in g_new_provider_event (arg=0xc56e0600, flag=0) at /usr/src/sys/geom/geom_subr.c:459 #11 0xc04ea5a9 in one_event () at /usr/src/sys/geom/geom_event.c:206 #12 0xc04ea6c5 in g_run_events () at /usr/src/sys/geom/geom_event.c:226 #13 0xc04eb955 in g_event_procbody () at /usr/src/sys/geom/geom_kern.c:141 #14 0xc051528f in fork_exit (callout=0xc04eb8d0 , arg=0x0, ---Type to continue, or q to quit--- frame=0x0) at /usr/src/sys/kern/kern_fork.c:790 #15 0xc06d5a8c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:198 (kgdb) frame 10 #10 0xc04ed56a in g_new_provider_event (arg=0xc56e0600, flag=0) at /usr/src/sys/geom/geom_subr.c:459 459 mp->taste(mp, pp, 0); (kgdb) print *mp $1 = {name = 0xc0719b38 "ELI", version = 537137671, taste = 0xc04e3fa0 , config = 0, ctlreq = 0xc04e6c10 , init = 0, fini = 0, destroy_geom = 0xc04e3f80 , start = 0, spoiled = 0, dumpconf = 0, access = 0, orphan = 0, ioctl = 0, class = { le_next = 0xc07432c0, le_prev = 0xc0747058}, geom = { lh_first = 0xc56e0580}} (kgdb) print *pp $2 = {name = 0xc56e0658 "cd0", provider = {le_next = 0x0, le_prev = 0xc56e0694}, geom = 0xc56e0680, consumers = { lh_first = 0xc56ef9c0}, acr = 1, acw = 0, ace = 0, error = 0, orphan = { tqe_next = 0x0, tqe_prev = 0x0}, mediasize = 9007199791611904, sectorsize = 536870912, stripesize = 0, stripeoffset = 0, stat = 0xc4d88960, nstart = 0, nend = 0, flags = 0, private = 0x0, index = 0} full dmesg: GEOM_ELI[1]: Start tasting. Copyright (c) 1992-2006 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 7.0-CURRENT #0: Sun Jan 22 15:36:23 CET 2006 root@ibm-se82151:/usr/obj/usr/src/sys/IBMT41 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) M processor 1700MHz (1698.56-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x695 Stepping = 5 Features=0xa7e9f9bf Features2=0x180 real memory = 1073086464 (1023 MB) avail memory = 1041051648 (992 MB) ath_hal: 0.9.14.9 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413) ACPI: Overriding _OS definition with "Windows 2001" npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi_ec0: port 0x62,0x66 on acpi0 acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 cpu0: on acpi0 est0: on cpu0 p4tcc0: on cpu0 acpi_lid0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: on hostb0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0x3000-0x30ff mem 0xe0000000-0xe7ffffff,0xc0100000-0xc010ffff irq 11 at device 0.0 on pci1 drm0: on vgapci0 info: [drm] AGP at 0xd0000000 256MB info: [drm] Initialized radeon 1.19.0 20050911 uhci0: port 0x1800-0x181f irq 11 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x1820-0x183f irq 11 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x1840-0x185f irq 11 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xc0000000-0xc00003ff irq 11 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub3: 6 ports with 6 removable, self powered pcib2: at device 30.0 on pci0 pci2: on pcib2 pci2: at device 0.0 (no driver attached) pci2: at device 0.1 (no driver attached) em0: port 0x8000-0x803f mem 0xc0240000-0xc025ffff,0xc0200000-0xc020ffff irq 11 at device 1.0 on pci2 em0: Ethernet address: 00:11:25:d4:9c:ec em0: [FAST] ath0: mem 0xc0210000-0xc021ffff irq 11 at device 2.0 on pci2 ath0: Ethernet address: 00:05:4e:4b:76:13 ath0: mac 5.6 phy 4.1 5ghz radio 1.7 2ghz radio 2.3 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1860-0x186f at device 31.1 on pci0 ata0: on atapci0 ata1: on atapci0 pci0: at device 31.3 (no driver attached) pcm0: port 0x1c00-0x1cff,0x18c0-0x18ff mem 0xc0000c00-0xc0000dff,0xc0000800-0xc00008ff irq 11 at device 31.5 on pci0 pcm0: pci0: at device 31.6 (no driver attached) acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: port 0x2f8-0x2ff irq 3 drq 3 on acpi0 sio1: type 16550A battery0: on acpi0 acpi_acad0: on acpi0 acpi_ibm0: on acpi0 vpd0: Unable to allocate memory resource. pmtimer0 on isa0 orm0: at iomem 0xd0000-0xd0fff,0xd1000-0xd1fff,0xdc000-0xdffff pnpid ORM0000 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1698563791 Hz quality 800 Timecounters tick every 1.000 msec Fast IPsec: Initialized Security Association Processing. battery0: battery initialization start acpi_acad0: acline initialization start battery0: battery initialization done, tried 1 times acpi_acad0: On Line acpi_acad0: acline initialization done, tried 1 times ad0: 57231MB at ata0-master UDMA100 acd0: CDRW at ata1-master UDMA33 GEOM_LABEL: Label for provider ad0s2a is ufs/root. Enter passphrase for ad0s2d: GEOM_ELI[1]: Using Master Key 0 for ad0s2d. GEOM_ELI[1]: Creating device ad0s2d.eli. GEOM_ELI[0]: Device ad0s2d.eli created. GEOM_ELI[0]: Cipher: AES GEOM_ELI[0]: Key length: 256 GEOM_ELI[0]: Crypto: software GEOM_ELI[1]: Thread g_eli[0] ad0s2d started. GEOM_LABEL: Label for provider ad0s2d.eli is ufs/usr. Trying to mount root from ufs:/dev/ufs/root GEOM_LABEL: Label for provider ad0s2d.eli is ufs/usr. ath0: [00:05:5d:eb:62:94] recv auth frame with algorithm 0 seq 2 ath0: [00:05:5d:eb:62:94] assoc success: long preamble, long slot time info: [drm] Loading R200 Microcode cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: \M-@:\M-W\M-D\^P acpi_acad0: Off Line -- Pawel