From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 18 15:27:51 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B59D106566B for ; Tue, 18 Sep 2012 15:27:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4B3EC8FC08 for ; Tue, 18 Sep 2012 15:27:50 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so256831pbb.13 for ; Tue, 18 Sep 2012 08:27:50 -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 :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=oMsnRb8HQDSkQ8+0NRuGm3B+1B1xToazXOX9VZ0kWT8=; b=fzUF1U3vYo+unfSRgi0AUj8JRACRYwAFuNs575Em+50eRtV24kypfNFY7bafJY/DdM LBnkcA19oJY181VdWB4VVu6wwpkkeIaTBk88LPFTAPoO0KvE/QQLKV4Yaq1RPWzhdTqV NKme+2pcX+8AK2zdU1en93/kEikDrhXySFgytO8UKNSb61WYNRDWOdR5DbKJ13Et9rZR hjzAshP07WrRhKyW3yBW79yAsXrRQhy9EQM3jhM1kg1aUPA29HmRlvFmV+zTEmL7pVdJ viJEbC3RRzuQFINDDxdg99th/1ofQFszs0C6TNlowcYSpTOMErmD2F+kjO5e4xQw8C9E ++AA== MIME-Version: 1.0 Received: by 10.68.197.167 with SMTP id iv7mr205356pbc.113.1347982070468; Tue, 18 Sep 2012 08:27:50 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.36.106 with HTTP; Tue, 18 Sep 2012 08:27:50 -0700 (PDT) In-Reply-To: <201209181611.10751.jhugo@meraka.csir.co.za> References: <201209181611.10751.jhugo@meraka.csir.co.za> Date: Tue, 18 Sep 2012 08:27:50 -0700 X-Google-Sender-Auth: Aj_w5lieLU16-PzU3muz6PaeGlw Message-ID: From: Adrian Chadd To: Johann Hugo Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Heads up: AR7241 + PCIe and AR9287 on-board stuff works X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 15:27:51 -0000 Is this -HEAD? Did you define MALLOC_PRODUCTION? Adrian On 18 September 2012 07:11, Johann Hugo wrote: > On Wednesday 05 September 2012 01:20:10 Adrian Chadd wrote: >> On 28 August 2012 21:00, Adrian Chadd wrote: >> > The default (most things as modules) kernel build is still ~ 3.5mb. >> > That's rather large for a board with 16MB of RAM. >> > >> > Additionally, I can't load the ath device after the system has come up >> > single user - the driver fails to allocate descriptors/buffer entries. >> > I'll do some digging about it in a couple of weeks. I'd like some >> > pointers on how to dump the current state of memory so I can see >> > exactly what's going on. >> > >> > For reference, 'sysctl vm.vmtotal' shows the total free RAM is around >> > 1 to 1.5MB. I'm guessing some are allocated to buffers but I'd like to >> > see what else is actually holding onto memory.. >> >> It turns out memory fragmentation due to a huge (for embedded) >> userland are to blame. >> >> I'll see if I can get ray@ to help me port phkmalloc to -HEAD again >> and try to tweak the default allocator parameters to not pre-allocate >> large pools for each process. >> >> Seeing login, sh, etc have an RSS of 1MB is kind of scary. >> >> I'll do some more digging with procstat (when I fit it into the >> current image) and report back. >> >> There's also the problem of a 3.5MB "stripped down nothing but what's >> needed to boot and read the rootfs from SPI flash + FFS" kernel size >> problem. That seems slightly(!) too big.. > > Hi Adrian > > Did you manage make any progress with this ? > > I'm also seeing the same symptoms on our ARM boards. > > PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND > 45 root 1 40 0 10936K 10044K RUN 0:00 6.46% top > 39 root 1 8 0 10416K 10080K wait 0:00 0.24% sh > > Johann > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"