From owner-freebsd-stable@FreeBSD.ORG Sun Dec 23 12:21:31 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 189992A5 for ; Sun, 23 Dec 2012 12:21:31 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-qc0-f180.google.com (mail-qc0-f180.google.com [209.85.216.180]) by mx1.freebsd.org (Postfix) with ESMTP id BEEE88FC0A for ; Sun, 23 Dec 2012 12:21:30 +0000 (UTC) Received: by mail-qc0-f180.google.com with SMTP id v28so3312171qcm.39 for ; Sun, 23 Dec 2012 04:21:23 -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=MRJaSNBdhiBsl3GRSOIyZLzvF2jSzIoCLMD1AfTQawA=; b=vMeAry3UuLPc2u8k/OGx3SozzanINvBR4drsx/tLNFXaNiAQkokPKNvr4JDB84uSnw xl8FY2PqYYTmWFVNATXhgHul/e/waAAC1GX1jZ9T4XGJvkgC7b1ONwhQNB/YC2o7kaEW WciS4QYusdizX1IDP4D4W+eMsdPHyrzfRhSU42zMZwy96xSKbpCbQ+mI1y7CHaKRRRKX Sm6HXNQmfeBl3ulZMCcpomKHkicx+4K3G+6i9XW1cAd9LHNxfLRAsIbhvp7m8YTLhE/z +iT4HNBKVcQqU9qV6XtBS6Sv8yqaEey969ldx2JqK/kkARQomCW4WxmVdmuRj7D7xmAz JRlg== MIME-Version: 1.0 Received: by 10.49.127.199 with SMTP id ni7mr10933824qeb.17.1356265283744; Sun, 23 Dec 2012 04:21:23 -0800 (PST) Received: by 10.229.78.96 with HTTP; Sun, 23 Dec 2012 04:21:23 -0800 (PST) In-Reply-To: <20121223150954.B81991@sola.nimnet.asn.au> References: <1356218834151-5771583.post@n5.nabble.com> <50D644E5.9070801@martenvijn.nl> <20121223150954.B81991@sola.nimnet.asn.au> Date: Sun, 23 Dec 2012 15:21:23 +0300 Message-ID: Subject: Re: 9.1 minimal ram requirements From: Sergey Kandaurov To: Ian Smith 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: Sun, 23 Dec 2012 12:21:31 -0000 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. > > A longer term workaround could be to postpone those memory allocations > > until the first call to CTL. > > 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. -- wbr, pluknet