From owner-freebsd-stable@FreeBSD.ORG Sun Dec 23 17:50:26 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 4355AC18 for ; Sun, 23 Dec 2012 17:50:26 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 7FA8D8FC13 for ; Sun, 23 Dec 2012 17:50:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id qBNHoMnB001363; Mon, 24 Dec 2012 04:50:22 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Mon, 24 Dec 2012 04:50:22 +1100 (EST) From: Ian Smith To: Sergey Kandaurov Subject: Re: 9.1 minimal ram requirements In-Reply-To: Message-ID: <20121224041301.W83325@sola.nimnet.asn.au> References: <1356218834151-5771583.post@n5.nabble.com> <50D644E5.9070801@martenvijn.nl> <20121223150954.B81991@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: Sun, 23 Dec 2012 17:50:26 -0000 On Sun, 23 Dec 2012 15:21:23 +0300, Sergey Kandaurov wrote: > On 23 December 2012 10:22, Ian Smith wrote: > > On Sun, 23 Dec 2012 03:45:39 +0300, Sergey Kandaurov wrote: > > > 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. > > > > I've just added that, thanks Sergey, but it's sadly not an option for > > installation. I guess it's too late for the release notes - which at > > RC3 made no mention of CAM CTL at all - but it's not yet clear to me > > whether even 256MB is enough to boot, install and run 9.1 GENERIC? > > If you perform clean installation (e.g. from ISO), you can escape to the > loader prompt and set the tunable there w/o the need for /boot/loader.conf. > I experimented with Vbox and AFAIK 256MB was enough even with CAM CTL. Ah right; I'd booted and installed from memstick, where escape to loader prompt is not an option. I'll burn a disc1 and try that with the 128MB again, and make sure that 256MB is comfortable - after holiday madness. > > > A longer term workaround could be to postpone those memory allocations > > > until the first call to CTL. That would seem to make sense, while making it a module is still on the todo list. I guess there must be systems that need CAM CTL to boot? > > Under what circumstances is CAM CTL needed? What would leaving it out > > of GENERIC cost, and whom? Is it loadable? dmesg.boot reports loading, > > but I don't see a module, nor can I find much information about CTL in > > cam(3|4) or /sys/conf/NOTES. apropos found ctladm and ctlstat, but I'm > > little the wiser as to when it may be needed, beyond CAM/SCSI debugging? > > The purpose and current status are well documented in the initial commit > message (r229997) and the supplied README.ctl.txt. To my modest knowledge, > it should be safe to just comment out 'device ctl' in GENERIC. Thanks for the reference, seems that I won't be needing it just now; it just wasn't clear to me what if any other subsystems might hang off it. cheers, Ian