From owner-freebsd-embedded@FreeBSD.ORG Wed Mar 27 21:15:39 2013 Return-Path: Delivered-To: freebsd-embedded@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 B1AA5E3F for ; Wed, 27 Mar 2013 21:15:39 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ia0-x22b.google.com (mail-ia0-x22b.google.com [IPv6:2607:f8b0:4001:c02::22b]) by mx1.freebsd.org (Postfix) with ESMTP id 83F8E135 for ; Wed, 27 Mar 2013 21:15:39 +0000 (UTC) Received: by mail-ia0-f171.google.com with SMTP id z13so7760542iaz.2 for ; Wed, 27 Mar 2013 14:15:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=R2lohC3cP1O1+RP5XRTv7VjP2yTga24Bq00r3mRIr4Y=; b=evJ5UVMtvHkf4DNqLep4VSpYLFl8wYhSC+kj+qDPo3FaEY7ZqNaW1c8o0gGQ2HfAGK GLog1T/xhA2tqGOLGjhY7+9TTBmn543EIPI12w/q22JVwlydbm9tbVg2wjBzT2VMMMVk X6OTKBfR45Joq+1X8FUyX6C0gZhBsbOg+rjBYDWQ7Lkqt9UYbAIkTT/IUxlMjQwls56q eboZRnxgZ4d0Wq1g6teUifpr0q4LIcC67BrJ7IBj5gyrlTVadKiU04mFyAQ8xG7lilLB HmGjxwjHbHKnM3nKPxvDP5AMjr3RqnQ8/oeigMj58l+FgnDvfc4tGrMewmPR/S5GfWcv Kc/Q== X-Received: by 10.42.203.68 with SMTP id fh4mr12728186icb.36.1364418939214; Wed, 27 Mar 2013 14:15:39 -0700 (PDT) Received: from 53.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPS id hi4sm8855608igc.6.2013.03.27.14.15.37 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Mar 2013 14:15:38 -0700 (PDT) Sender: Warner Losh Subject: Re: FreeBSD on the AP121 (AR9330) Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Wed, 27 Mar 2013 15:15:36 -0600 Content-Transfer-Encoding: 7bit Message-Id: <65064C0E-1C1F-4C07-9CFB-DEEC1638A78D@bsdimp.com> References: <1364404612.36972.59.camel@revolution.hippie.lan> To: Adrian Chadd X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQl6Gojrm2w2VBSFzdlLsZNiLUvSQ8NybQjK4iRDfbmLEwdPMzeaRWiQd+7Yw3Fj0stICP94 Cc: freebsd-embedded@freebsd.org, Ian Lepore X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Mar 2013 21:15:39 -0000 On Mar 27, 2013, at 12:23 PM, Adrian Chadd wrote: > On 27 March 2013 10:16, Ian Lepore wrote: > >> For starters you might try disabling WITNESS and other things you can't >> afford in a slimmed-down kernel. On the other hand, kernel bloat is > > Well, the only thing I can't really afford here is the -head > debugging. But it doesn't actually slim down things significantly. > I'll re-post the sizes later. Maybe if you posted the config file, I can tell you what you're missing. >> If the system isn't doing heavy IO, try "option NBUF=128" to seriously >> slim down the amount of memory for buffers (by default it'll use 1/4 of >> total ram up to 64MB). It would be nice to know more about the >> implications of tweaking this number, but when I asked on a mailing list >> once I didn't get much useful info. > > There's that; I think the problem here is deadlock if there's not > enough buffers available. Guess that bug should be fixed. > > The other immediate thing is the umtx hash array. It's rather large > (512) and it doesn't need to be. > > I haven't even started with the subsystem memory allocations yet > either. They get even scarier. > > (And userland is doubly-scary on this platform. Sigh.) Can't comment here... Warner