From owner-freebsd-stable@FreeBSD.ORG Sun Dec 23 00:45:47 2012 Return-Path: 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 15796A8A for ; Sun, 23 Dec 2012 00:45:47 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-qa0-f50.google.com (mail-qa0-f50.google.com [209.85.216.50]) by mx1.freebsd.org (Postfix) with ESMTP id BDA378FC0C for ; Sun, 23 Dec 2012 00:45:46 +0000 (UTC) Received: by mail-qa0-f50.google.com with SMTP id cr7so4270713qab.16 for ; Sat, 22 Dec 2012 16:45:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=R861vO3pyKrO0DsbDxIMxMf8JpagZcvfzjluk5BWSzk=; b=KisKs0jdQ4kuQcyfZQuWEv7QEMEG5EGghvFEeK+518g+m8ZM3fopefr8CywLYa8x92 6mQItsU9OGHzr9pyvMARUk7MshIj6NermETMUoou8/ivTzs9xVBdqRjpykxgG4F5xNEr +EEL1IwnRgA57acVNJve+vDSNy7rn/oF5t1ylAJ9j/1CVRl/WMt6k7bPlEgGkm4WGec5 ebxrVY+YfJdpCemhFVzYACQoDqu9OfCrc4UdP1DuX39kl4rozjDE19LrW5I1Fn0ZEbCT 1fkxaEjJYzwDW7+EV8C5Wt4PiOCe+RdJjP2k1K/u8+F1A8ESA5PSqTCJjgTEXfXdAAf+ 2n9w== MIME-Version: 1.0 Received: by 10.224.184.143 with SMTP id ck15mr9025148qab.67.1356223539897; Sat, 22 Dec 2012 16:45:39 -0800 (PST) Received: by 10.229.78.96 with HTTP; Sat, 22 Dec 2012 16:45:39 -0800 (PST) In-Reply-To: <50D644E5.9070801@martenvijn.nl> References: <1356218834151-5771583.post@n5.nabble.com> <50D644E5.9070801@martenvijn.nl> Date: Sun, 23 Dec 2012 03:45:39 +0300 Message-ID: Subject: Re: 9.1 minimal ram requirements From: Sergey Kandaurov To: Marten Vijn , jakub_lach@mailplus.pl Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Dec 2012 00:45:47 -0000 On 23 December 2012 03:40, Marten Vijn wrote: > On 12/23/2012 12:27 AM, Jakub Lach wrote: >> >> Guys, I've heard about some absurd RAM requirements >> for 9.1, has anybody tested it? >> >> e.g. >> >> http://forums.freebsd.org/showthread.php?t=36314 > > > jup, I can comfirm this with nanobsd (cross) compiled > for my soekris net4501 which has 64 MB mem: > > from dmesg: real memory = 67108864 (64 MB) > > while the same config compiled against a 9.0 tree still works... > This (i.e. the "kmem_map too small" message seen with kernel memory shortage) could be due to CAM CTL ('device ctl' added in 9.1), which is quite a big kernel memory consumer. Try to disable CTL in loader with kern.cam.ctl.disable=1 to finish boot. A longer term workaround could be to postpone those memory allocations until the first call to CTL. # cam ctl init allocates roughly 35 MB of kernel memory at once # three memory pools, somewhat under M_DEVBUF, and memory disk # devbuf takes 1022K with kern.cam.ctl.disable=1 Type InUse MemUse HighUse Requests Size(s) devbuf 213 20366K - 265 16,32,64,128,256,512,1024,2048,4096 ctlmem 5062 10113K - 5062 64,2048 ctlblk 200 800K - 200 4096 ramdisk 1 4096K - 1 ctlpool 532 138K - 532 16,512 -- wbr, pluknet