From owner-freebsd-bugs@FreeBSD.ORG Wed Jun 18 15:00:33 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2B4737B401 for ; Wed, 18 Jun 2003 15:00:32 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54A6F43FCB for ; Wed, 18 Jun 2003 15:00:31 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h5IM0VUp076178 for ; Wed, 18 Jun 2003 15:00:31 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h5IM0Vqr076177; Wed, 18 Jun 2003 15:00:31 -0700 (PDT) Resent-Date: Wed, 18 Jun 2003 15:00:31 -0700 (PDT) Resent-Message-Id: <200306182200.h5IM0Vqr076177@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jamie Jones Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9758137B401 for ; Wed, 18 Jun 2003 14:57:29 -0700 (PDT) Received: from mailhost1.bishopston.net (mailhost1.bishopston.net [68.147.148.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D69243F85 for ; Wed, 18 Jun 2003 14:57:28 -0700 (PDT) (envelope-from jamie@thompson.bishopston.net) Received: from tiffany.bishopston.net (tiffany.bishopston.net [IPv6:3ffe:b80:c3c:1::1] (may be forged))h5ILvJc3028036 for ; Wed, 18 Jun 2003 22:57:21 +0100 (BST) (envelope-from jamie@thompson.bishopston.net) Received: from thompson.bishopston.net (thompson.bishopston.net [3ffe:b80:c3c:1::100]) by tiffany.bishopston.net (8.11.6/8.11.6) with ESMTP id h5ILvDC01377 for ; Wed, 18 Jun 2003 22:57:13 +0100 (BST) (envelope-from jamie@thompson.bishopston.net) Received: from thompson.bishopston.net (localhost [IPv6:::1]) h5ILv7qK001215 for ; Wed, 18 Jun 2003 22:57:07 +0100 (BST) (envelope-from jamie@thompson.bishopston.net) Received: (from jamie@localhost) by thompson.bishopston.net (8.12.9/8.12.6/Submit) id h5ILulbA001213; Wed, 18 Jun 2003 22:56:47 +0100 (BST) (envelope-from jamie) Message-Id: <200306182156.h5ILulbA001213@thompson.bishopston.net> Date: Wed, 18 Jun 2003 22:56:47 +0100 (BST) From: Jamie Jones To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/53468: reproducible panic when MD /tmp partition fills up - FreeBSD 5.1-RELEASE X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jamie Jones List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2003 22:00:33 -0000 >Number: 53468 >Category: kern >Synopsis: reproducible panic when MD /tmp partition fills up - FreeBSD 5.1-RELEASE >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 18 15:00:30 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Jamie Jones >Release: FreeBSD 5.1-RELEASE i386 >Organization: >Environment: System: FreeBSD thompson.bishopston.net 5.1-RELEASE FreeBSD 5.1-RELEASE #5: Tue Jun 17 00:15:06 BST 2003 root@thompson.bishopston.net:/usr/obj/usr/src/sys/THOMPSON i386 malloc Memory Disk (MD_MALLOC) mounted on /tmp/ from /etc/fstab with the following line: md /tmp mfs rw,nosuid,nodev,-M,-s=1000000 0 0 22:47 (75) "tmp" root@thompson# df -k /tmp Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/md0 484110 678 444704 0% /tmp 22:47 (76) "tmp" root@thompson# swapinfo Device 1K-blocks Used Avail Capacity Type /dev/ad0s3b 524288 0 524288 0% Interleaved /dev/ad1s1b 524288 0 524288 0% Interleaved Total 1048576 0 1048576 0% 22:47 (77) "jamie" jamie@thompson% sysctl hw.physmem hw.usermem hw.physmem: 530747392 hw.usermem: 454123520 >Description: Under certain conditions, filling up of the /tmp disk as mounted above causes the system to panic. On certain conditions, the system doesn't panic - instead it says "disk full". I'm not sure why it trips up some times, but it's easily reproducable. Panic message: panic: kmem_malloc (4096) : kmem_map too small: 217788416 total allocated Syncing disks, bufferes remaining... ad0: out of memory in start ad0: out of memory in start ad0: out of memory in start ad0: out of memory in start ad0: out of memory in start .. .. .. Dumping 511MB Dump failed. Partition too small >How-To-Repeat: 22:54 (62) "tmp" jamie@thompson% cd /tmp 22:55 (63) "tmp" jamie@thompson% cat p #!/bin/sh while true do cat /COPYRIGHT done 22:55 (64) "tmp" jamie@thompson% sh p > pp then wait for partition to fill up.. >Fix: unknown. >Release-Note: >Audit-Trail: >Unformatted: