From owner-freebsd-stable@FreeBSD.ORG Sun Dec 23 06:39:52 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 B1650F8E for ; Sun, 23 Dec 2012 06:39:52 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 3B9938FC13 for ; Sun, 23 Dec 2012 06:39:51 +0000 (UTC) Received: by mail-wi0-f172.google.com with SMTP id o1so5828556wic.17 for ; Sat, 22 Dec 2012 22:39:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=hospbQTy7+w/YBqBGYkCPSifZ4d/B4ITkdaD4YDE0ic=; b=WtdjzUKPGldiFHh1ag/7Vyl8yCcjtnKWrwjWrirsDxI2YwjyoME9GdiCNrbLeaLFz9 GVxSCNfmtxmgFZSaCoiinNI6qq+Gfmd2sJnSc/Q9th7KhSpD0BJzI4kjf0QXk7WyZnSw hJPGH9AT/xvEtq55uWZIEKTPMcwFXv7819wIOOiRcNRmn9BciF7lmfRYe/xrRwMdou+4 QObjlwEBO8N9VwNnsY2eY+5AvxoEA5cemqIFEeeATZLBQGo9gXDrzpEHtKvMgR7s/aTx Eo4SqLC8O3uaoMpMHqd+ckOY7EycBUpLqo76dr4FNziETvhW+8RMiIyENHlXO6ztROy/ 5MTw== MIME-Version: 1.0 Received: by 10.180.72.146 with SMTP id d18mr22206626wiv.33.1356244791028; Sat, 22 Dec 2012 22:39:51 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Sat, 22 Dec 2012 22:39:50 -0800 (PST) In-Reply-To: References: <1356218834151-5771583.post@n5.nabble.com> <50D644E5.9070801@martenvijn.nl> Date: Sat, 22 Dec 2012 22:39:50 -0800 X-Google-Sender-Auth: yz59VUVe-RfdWJlZlMvvYInhy1I Message-ID: Subject: Re: 9.1 minimal ram requirements From: Adrian Chadd To: Sergey Kandaurov 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 06:39:52 -0000 Hi guys, Would someone please file a PR for this? This is a huge unused allocation of memory for something that honestly likely shouldn't have been included by default in GENERIC. I've cc'ed ken on a reply to this. Hopefully after the holidays he can chime in and figure out what's going on. Maybe just disabling it in GENERIC moving forward is enough - chances are it'll be fine being just a module. Thanks, 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"