From owner-freebsd-stable@FreeBSD.ORG Mon Mar 5 13:24:28 2007 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0A63016A401 for ; Mon, 5 Mar 2007 13:24:28 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id 49BF013C461 for ; Mon, 5 Mar 2007 13:24:24 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id l25DO766066659; Mon, 5 Mar 2007 16:24:07 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.4/Submit) id l25DNomt066647; Mon, 5 Mar 2007 16:23:50 +0300 (MSK) (envelope-from yar) Date: Mon, 5 Mar 2007 16:23:50 +0300 From: Yar Tikhiy To: Kris Kennaway Message-ID: <20070305132350.GB57253@comp.chem.msu.su> References: <20070227205351.GA72597@ravenloft.kiev.ua> <200702271603.30481@aldan> <20070304075946.GH40430@comp.chem.msu.su> <20070305035945.GA71660@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070305035945.GA71660@xor.obsecurity.org> User-Agent: Mutt/1.5.9i Cc: stable@freebsd.org, Alex Kozlov , Mikhail Teterin Subject: Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2007 13:24:28 -0000 On Sun, Mar 04, 2007 at 10:59:46PM -0500, Kris Kennaway wrote: > On Sun, Mar 04, 2007 at 10:59:46AM +0300, Yar Tikhiy wrote: > > On Tue, Feb 27, 2007 at 04:03:30PM -0500, Mikhail Teterin wrote: > > > On Tuesday 27 February 2007 15:53, Alex Kozlov wrote: > > > = > Yes, I switched to swap-backed md already. But the malloc-based variety is > > > = > currently the _default_ (see /etc/defaults/rc.conf)... > > > = Bad default. > > > > > > Filing a PR. > > > > Keep in mind that changing the default can break existing setups. > > Such setups are likely to be broken anyway, but... E.g., if we > > drop the -M flag, it will break systems with tons of RAM but little > > swap using tmpmfs. > > How will it break them? swap backing only touches swap if there is > memory pressure, i.e. precisely the situation in which malloc backing > will panic. I forgot that in BSD swap wouldn't be allocated in advance to its consumers. Then removing the -M flag and making swap backing the default is a very sound choice. Thank you for correcting me. -- Yar