From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 7 18:59:04 2014 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B23A7C31; Mon, 7 Jul 2014 18:59:04 +0000 (UTC) Received: from mail-qg0-x22b.google.com (mail-qg0-x22b.google.com [IPv6:2607:f8b0:400d:c04::22b]) (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 3E01E2556; Mon, 7 Jul 2014 18:59:04 +0000 (UTC) Received: by mail-qg0-f43.google.com with SMTP id z60so4184105qgd.30 for ; Mon, 07 Jul 2014 11:59:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kacfo9qopojflT/zL+Jj89/QFL5ZFj6JZorZFUtVm/o=; b=0vrXRZcQpxVbFqh/df1pHa2heqwnJ0eqK3bWn6YFsyEX9hXUmWaH48MvJlClXl4G/v 99Vn2BLtvGBpTeNNbiPkQZFSGGSsE1VHABTcz70EiRE2P7qrFI/wJKlTAYAXhHzNyxTD Fy4vG8ss5/+QyzX72FcWVUoP13bngPlv6KgBew4AnOYYCku94EmzdJoWLinGQFWwIXPD +xo3ZDahCfqkttdK2wSxlMeNukoW7gcCrA8jU/YKKhXJNnixOTlu6BYstG5mjhGMUG/J +Jno32AZFx9lWpdbHIvr6mzo925F5RXa4DlsjQazPdoW/39CQ6Co8Xuip4vlzo/9dyCT rGbQ== MIME-Version: 1.0 X-Received: by 10.229.252.130 with SMTP id mw2mr49590856qcb.12.1404759543392; Mon, 07 Jul 2014 11:59:03 -0700 (PDT) Received: by 10.96.73.39 with HTTP; Mon, 7 Jul 2014 11:59:03 -0700 (PDT) In-Reply-To: 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:59:03 -0700 Message-ID: Subject: Re: CAMBRIA and more than one atheros card From: hiren panchasara To: Adrian Chadd 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:59:04 -0000 On Mon, Jul 7, 2014 at 11:31 AM, Adrian Chadd wrote: > 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. Yes. http://lists.freebsd.org/pipermail/freebsd-mips/2013-September/003081.html I went through this for my tplink. John, can you show o/p of: sysctl -a | grep hw | grep mem and sysctl -a | grep maxmbuf Cheers, Hiren