From owner-freebsd-embedded@FreeBSD.ORG Wed Mar 27 18:23:35 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9D3BD210; Wed, 27 Mar 2013 18:23:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by mx1.freebsd.org (Postfix) with ESMTP id 13053377; Wed, 27 Mar 2013 18:23:34 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id l18so789041wgh.25 for ; Wed, 27 Mar 2013 11:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=laEFov2SdiIgbFav3sOvYL87Su3WhghWfBpxojqo8ZY=; b=1IwFcaGA4ZfWuCD10Z2va6w+JVJFWE2IhLlvF3uAoQlfpwPoAOGEETvOMnZwnRfifw RHiHhWb2eybL/JM6ShqKz7dVNNgGMd6R1rfhB5clrii8rRQp62o1cchU9zP50Np+XyAt glAYNsxGx3gUM0j4naGeBgSoSs5zKUsVq46AMdi96xlKCHU9Iuwrx7O8D2qH/vl0grXQ UJ9WhTx6SChhu6kMRtZnW/AWm5a2+Xc5yN9qPaVgnl5ybV7+OED9EyPOmzwuMSyowJTO BW1KEJJfamDFer1Qf8HykSIIXzSg0EqD2T8U1gTlunodUtwxXTvV5h4fLTYXhp63WVkE xawg== MIME-Version: 1.0 X-Received: by 10.180.79.6 with SMTP id f6mr11452470wix.26.1364408607795; Wed, 27 Mar 2013 11:23:27 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.108.130 with HTTP; Wed, 27 Mar 2013 11:23:27 -0700 (PDT) In-Reply-To: <1364404612.36972.59.camel@revolution.hippie.lan> References: <1364404612.36972.59.camel@revolution.hippie.lan> Date: Wed, 27 Mar 2013 11:23:27 -0700 X-Google-Sender-Auth: 4FX8xjaJZ9IG9mFUGutiHtoVFok Message-ID: Subject: Re: FreeBSD on the AP121 (AR9330) From: Adrian Chadd To: Ian Lepore Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-embedded@freebsd.org 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 18:23:35 -0000 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. [snip] > 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.) Adrian