From owner-freebsd-stable@FreeBSD.ORG Thu May 25 23:56:15 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02D2F16AC29 for ; Thu, 25 May 2006 23:56:15 +0000 (UTC) (envelope-from noackjr@alumni.rice.edu) Received: from mail.clickfox.com (cffw1.clickfox.com [72.16.213.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8089F43D46 for ; Thu, 25 May 2006 23:56:14 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) X-PMWin-Spam: Gauge=IIIIIIII, Probability=8%, Report='__HAS_MSGID, __SANE_MSGID, __USER_AGENT, __MIME_VERSION, __CT, __CTYPE_CHARSET_QUOTED, __CT_TEXT_PLAIN, __CTE, __CP_URI_IN_BODY, __MIME_TEXT_ONLY' X-PMWin-Version: 2.5.1s, Antispam-Engine: 2.3.0.1, Antivirus-Engine: 2.34.1 thread-index: AcaAV44U/veTK7CaQ2qf169nJQ+lrA== Content-Class: urn:content-classes:message Importance: normal Priority: normal Received: from [10.20.30.156] ([72.16.213.34]) by mail.clickfox.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Thu, 25 May 2006 20:01:35 -0400 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2663 Message-ID: <44764417.4030004@alumni.rice.edu> Date: Thu, 25 May 2006 19:56:07 -0400 From: "Jonathan Noack" User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: "Kris Kennaway" References: <20060525205414.GC30137@xor.obsecurity.org> In-Reply-To: <20060525205414.GC30137@xor.obsecurity.org> Content-Type: text/plain; format=flowed; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 26 May 2006 00:01:35.0959 (UTC) FILETIME=[8E012E70:01C68057] Cc: freebsd-stable@freebsd.org Subject: Re: kmem leak in tmpmfs? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 May 2006 23:56:16 -0000 Kris Kennaway wrote: > On Thu, May 25, 2006 at 06:01:30PM +0200, Arno J. Klaassen wrote: >> I get a very easy to reproduce panic on 6.1-STABLE : >> >> /etc/periodic/weekly/310.locate panics with >> >> panic: kmem_malloc(4096): kmem_map too small: 335544320 total allocated > > It looks like you are using a malloc-backed md and you do not have > enough RAM to handle the size. Perhaps tmpmfs does not use swap > backing, as it is supposed to? If you look in /etc/defaults/rc.conf you'll note that malloc-backed is the default: tmpmfs_flags="-S -M" # Extra mdmfs options for the mfs /tmp I don't really understand why malloc-backed is the default as the performance difference between malloc- and swap-backed md's was resolved long ago: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/md/md.c#rev1.117 Ah, it looks like this was just for compatibility: http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/defaults/rc.conf#rev1.259 I am currently running with the following in /etc/rc.conf and haven't experienced any problems: tmpmfs_flags="-S -o async" -Jonathan