From owner-freebsd-stable@FreeBSD.ORG Sun Dec 23 06:32:15 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 6474EE53; Sun, 23 Dec 2012 06:32:15 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id C08848FC13; Sun, 23 Dec 2012 06:32:14 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id u54so2836500wey.41 for ; Sat, 22 Dec 2012 22:32:07 -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=DaqLI4I0tkW/VQOQcaXwdkFHrK82oLC0T6cAekAf7Ug=; b=VeKXwlzrG5DKWFNFow+Uc1thfBrZmsLqawfmYbV3znGQRTohq+iuL2c1R3AaRscIA0 /SvIj2J+GD0/dBgKWRFG6SPbqpDj75uPux790Zav2lnpDn7iRzCTucfeZzHXJUDclUUu fvs2Ik/TDZW28wJu7CIPJOH3gdKBlciZAeBTAqvZaDXsQ87mtJlFMas/WA628GttXBtV 03wRDEAbvORyMjDGgMwB87OrJQEoqXodn53Q3ycKh/7DPFJBzYPo7w6gW/aG6Wk8aEPS IhtXS9w/Ig7S/ZA4sosgQ0vTlLnlCWvoBjIWpBqGv6jCAxEqIH5350KDR/pEBmvo6Xs8 frtg== MIME-Version: 1.0 Received: by 10.194.93.40 with SMTP id cr8mr30865883wjb.16.1356244327872; Sat, 22 Dec 2012 22:32:07 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Sat, 22 Dec 2012 22:32:07 -0800 (PST) In-Reply-To: References: <1356218834151-5771583.post@n5.nabble.com> <50D644E5.9070801@martenvijn.nl> Date: Sat, 22 Dec 2012 22:32:07 -0800 X-Google-Sender-Auth: ghsBar_5nEAYnDp3h5p4e58gaBI 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: Sun, 23 Dec 2012 06:32:15 -0000 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"