From estartu@etustar.ze.tum.de  Wed Oct 11 05:48:49 2006
Return-Path: <estartu@etustar.ze.tum.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B2EFA16A403
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Oct 2006 05:48:49 +0000 (UTC)
	(envelope-from estartu@etustar.ze.tum.de)
Received: from titan.ze.tum.de (titan.ze.tum.de [129.187.39.12])
	by mx1.FreeBSD.org (Postfix) with ESMTP id F028143D55
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Oct 2006 05:48:48 +0000 (GMT)
	(envelope-from estartu@etustar.ze.tum.de)
Received: from etustar.ze.tum.de (etustar.ze.tum.de [129.187.39.96])
	by titan.ze.tum.de (8.13.4/8.12.10) with ESMTP id k9B5mluA015279
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Oct 2006 07:48:47 +0200 (CEST)
	(envelope-from estartu@etustar.ze.tum.de)
Received: from etustar.ze.tum.de (localhost [127.0.0.1])
	by etustar.ze.tum.de (8.13.6/8.13.6) with ESMTP id k9B5mlkt007447
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Oct 2006 07:48:47 +0200 (CEST)
	(envelope-from estartu@etustar.ze.tum.de)
Received: (from estartu@localhost)
	by etustar.ze.tum.de (8.13.6/8.13.6/Submit) id k9B5mlL5007446;
	Wed, 11 Oct 2006 07:48:47 +0200 (CEST)
	(envelope-from estartu)
Message-Id: <200610110548.k9B5mlL5007446@etustar.ze.tum.de>
Date: Wed, 11 Oct 2006 07:48:47 +0200 (CEST)
From: Gerhard Schmidt <estartu@etustar.ze.tum.de>
Reply-To: Gerhard Schmidt <estartu@etustar.ze.tum.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Write Errors on md0 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         104288
>Category:       kern
>Synopsis:       [md] Write Errors on md0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 11 05:50:11 GMT 2006
>Closed-Date:    Wed Oct 11 22:27:18 GMT 2006
>Last-Modified:  Wed Oct 11 22:27:18 GMT 2006
>Originator:     Gerhard Schmidt
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD etustar.ze.tum.de 6.1-STABLE FreeBSD 6.1-STABLE #8: Sat Sep 16 09:19:34 CEST 2006 root@etustar.ze.tum.de:/usr/src/sys/i386/compile/ETUSTAR i386


	
>Description:
I have my tmp filesystem in a ram-disk, setup via 
tmpmfs="YES"
tmpsize="1g"

When the filesystem get filled up (not full but above 30%) i get the
follwing errormessages  

+g_vfs_done():md0[WRITE(offset=621379584, length=16384)]error = 28
+g_vfs_done():md0[WRITE(offset=621395968, length=16384)]error = 28
+g_vfs_done():md0[WRITE(offset=621412352, length=16384)]error = 28
+g_vfs_done():md0[WRITE(offset=621428736, length=16384)]error = 28

Many of them and shoutly after, the computer reboots 

I've checked my memory without any faults. My swapspace is 2g and
my physical memory is 1g 

>How-To-Repeat:

create a large md (> 512m) in swap and fill it with data. 

>Fix:

n/k
>Release-Note:
>Audit-Trail:

From: Gerhard Schmidt <estartu@augusta.de>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/104288: Write Errors on md0
Date: Wed, 11 Oct 2006 08:47:20 +0200

 I've manage to get a core file. 
 
 it can bedownloaded at 
 http://etustar.ze.tum.de/vmcore.1.bz2 (697M) 
 
 The infofile contains the following infos 
 
 Dump header from device /dev/ad4s1b
   Architecture: i386
   Architecture Version: 2
   Dump Length: 1073020928B (1023 MB)
   Blocksize: 512
   Dumptime: Wed Oct 11 08:05:23 2006
   Hostname: etustar.ze.tum.de
   Magic: FreeBSD Kernel Dump
   Version String: FreeBSD 6.1-STABLE #8: Sat Sep 16 09:19:34 CEST 2006
     root@etustar.ze.tum.de:/usr/src/sys/i386/compile/ETUSTAR
   Panic String: kmem_malloc(16384): kmem_map too small: 335544320 total allocated
   Dump Parity: 3197890094
   Bounds: 1
   Dump Status: good
 
 ----------------------------------------------------------------------------
 Gerhard Schmidt    | Nick : estartu      IRC : Estartu  |
 Fischbachweg 3     |                                    |  PGP Public Key
 86856 Hiltenfingen | EMail: estartu@augusta.de          |  on request 
 Germany            | 					|  
 
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Wed Oct 11 22:26:59 UTC 2006 
State-Changed-Why:  
Use swap backing instead of malloc backing for your md 

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