From owner-freebsd-stable@FreeBSD.ORG Thu Feb 28 02:26:29 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B9AAEA54; Thu, 28 Feb 2013 02:26:29 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x22f.google.com (mail-we0-x22f.google.com [IPv6:2a00:1450:400c:c03::22f]) by mx1.freebsd.org (Postfix) with ESMTP id 37D7C263; Thu, 28 Feb 2013 02:26:29 +0000 (UTC) Received: by mail-we0-f175.google.com with SMTP id x8so1104948wey.34 for ; Wed, 27 Feb 2013 18:26:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=d/6soJ4dnNeuk/6K2S1XIlzY8pwAr5daE3jY8qWfz9o=; b=N2lPiS7lTssu9bX93j0fiVVbwMD+lO1XmHjaivLux3hFi/CVYW2LStFFX5IrS/o5kv iKs0oLmZTfnx/z2aUBR5VSMoFlSuSI/T6NhrLNpr3+18DvJ5/iknogKcsL7wkAYL6ZS8 ++Pod+vuSrgdYv4OQXScOmUT0MrEYx/xD1KG2whg9klWge25jON6BJTDzrdZv5/tFlbY OfMnCs61uQtybWXhINj3oUIIUpA6SXiRnQIKMCWQ7exk3WINlj8QMCY01bBqlZ6dO2h3 IRxkICECU4NyyVK0qujj465V5d2vg+J8ZrdLUoy/uoks+CuQKejYG1iEnMGbSfneBi4Z mJAg== MIME-Version: 1.0 X-Received: by 10.194.110.69 with SMTP id hy5mr7921580wjb.1.1362018388366; Wed, 27 Feb 2013 18:26:28 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.114.201 with HTTP; Wed, 27 Feb 2013 18:26:28 -0800 (PST) In-Reply-To: References: <1356218834151-5771583.post@n5.nabble.com> <50D644E5.9070801@martenvijn.nl> Date: Wed, 27 Feb 2013 18:26:28 -0800 X-Google-Sender-Auth: JfGHpJ8mbJCexaeaLHB1PmBHe_Y Message-ID: Subject: Re: 9.1 minimal ram requirements From: Adrian Chadd To: Sergey Kandaurov , ken@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Marten Vijn , freebsd-stable@freebsd.org, jakub_lach@mailplus.pl 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: Thu, 28 Feb 2013 02:26:29 -0000 Hi Ken, I'd like to fix this for 9.2 and -HEAD. Would you mind if I disabled CTL in GENERIC (but still build it as a module) until you've fixed the initial RAM reservation that it requires? Thanks, Adrian On 22 December 2012 22:32, Adrian Chadd wrote: > Ken, > > Does CAM CTL really need to pre-allocate 35MB of RAM at startup? > > > > Adrian > > On 22 December 2012 16:45, Sergey Kandaurov wrote: >> 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 >> _______________________________________________ >> freebsd-stable@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-stable >> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"