From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 7 18:31:05 2014 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 584EC341; Mon, 7 Jul 2014 18:31:05 +0000 (UTC) Received: from mail-qa0-x231.google.com (mail-qa0-x231.google.com [IPv6:2607:f8b0:400d:c00::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EA2A322A8; Mon, 7 Jul 2014 18:31:04 +0000 (UTC) Received: by mail-qa0-f49.google.com with SMTP id w8so3878962qac.36 for ; Mon, 07 Jul 2014 11:31:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=a5Djti8u6LpcWgz70K8P88vmU32CS9SerJD0ELfHsbM=; b=sVyMf8aQSNwV5CW+UvWaN6z6Sbsj4H2SmoqVl2DrpMQWtgJVE7N29XS67ycriFz+na dU6oTAKSy2YGn3uw46mp/s5V71NqF3IfDm3qI/CjDpe1vIZy3op5Xzk2wC+gtTIAwzc7 WF/FlhaABdl855VkztpdSHo7Rcxnzf4pomXPiA6DxEM/TD1Z6MKtjRxekwmSDf5hCeR6 wT2pHB8OA6fAyHyibpq562ZKSzT8JwMyDwQxagKys/fU/X+3FZaPotSYhlfLUA5RkUIQ kNY6/d5FQRvTqAY8IHOlTbiuJlPfFKA08vQomUqwCt0UuyOoGtLAFqNMqRyrp+FXYhVt cxlQ== MIME-Version: 1.0 X-Received: by 10.140.80.49 with SMTP id b46mr46919556qgd.102.1404757864164; Mon, 07 Jul 2014 11:31:04 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.202.193 with HTTP; Mon, 7 Jul 2014 11:31:04 -0700 (PDT) In-Reply-To: <20140707182814.GA75629@zibbi.meraka.csir.co.za> References: <20140707142538.GA43661@zibbi.meraka.csir.co.za> <1404753166.65432.10.camel@revolution.hippie.lan> <20140707182814.GA75629@zibbi.meraka.csir.co.za> Date: Mon, 7 Jul 2014 11:31:04 -0700 X-Google-Sender-Auth: 1Rfsn0QtDVdof5grrqu6X4ssjFA Message-ID: Subject: Re: CAMBRIA and more than one atheros card From: Adrian Chadd To: John Hay Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-wireless@freebsd.org" , "freebsd-embedded@freebsd.org" , Ian Lepore X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2014 18:31:05 -0000 On 7 July 2014 11:28, John Hay wrote: > On Mon, Jul 07, 2014 at 11:22:46AM -0700, Adrian Chadd wrote: >> On 7 July 2014 10:12, Ian Lepore wrote: >> > On Mon, 2014-07-07 at 09:25 -0700, Adrian Chadd wrote: >> >> hi, >> >> >> >> That call is returning ENOMEM. I'm not sure why. It allocated an mbuf >> >> fine, but it couldn't allocate the DMA map. >> >> >> >> What's the output of "vmstat -z" ? I wonder if it's failing an allocation. >> >> >> >> >> >> >> >> -a >> > >> > Lack of bounce buffers is a posibility that won't show up in vmstat >> > output. >> >> right, but there's a bunch of already failing vmstat entries. >> >> >> John - there's a vmscale parameter somewhere. Hiren had to drop it >> down for his APs to work in 64MB of RAM. I think it's >> vm.kmem_size_scale . What's it say for you? >> > > :~ # sysctl vm.kmem_size_scale > vm.kmem_size_scale: 3 Ok. Search the archives for an email from Hiren titled "mbuf autotuning effect". TL;DR - set it to 1 and recompile. There's a kernel option somewhere to do exactly that. -a