From jamie@thompson.bishopston.net  Wed Jun 18 14:57:29 2003
Return-Path: <jamie@thompson.bishopston.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9758137B401
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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))
	by catflap.bishopston.net (8.12.9/8.12.9) with ESMTP id h5ILvJc3028036
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Jun 2003 22:57:13 +0100 (BST)
	(envelope-from jamie@thompson.bishopston.net)
Received: from thompson.bishopston.net (localhost [IPv6:::1])
	by thompson.bishopston.net (8.12.9/8.12.3) with ESMTP id h5ILv7qK001215
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <jamie@thompson.bishopston.net>
Reply-To: Jamie Jones <jamie@thompson.bishopston.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: reproducible panic when MD /tmp partition fills up - FreeBSD 5.1-RELEASE
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 18 15:00:30 PDT 2003
>Closed-Date:    Sat Oct 11 01:14:35 PDT 2003
>Last-Modified:  Sat Oct 11 01:14:35 PDT 2003
>Originator:     Jamie Jones <jamie@bishopston.net>
>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:

From: Jamie Jones <jamie@bishopston.net>
To: freebsd-gnats-submit@FreeBSD.org, jamie@thompson.bishopston.net
Cc:  
Subject: Re: kern/53468: reproducible panic when MD /tmp partition fills up - FreeBSD 5.1-RELEASE
Date: Wed, 18 Jun 2003 23:34:07 +0100

 Sorry, I missed a line off the end of the 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
 pfs_vncache_unload: 2 entries remaining
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Sat Oct 11 01:14:15 PDT 2003 
State-Changed-Why:  
Duplicate of kern/53350 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53468 
>Unformatted:
