From owner-freebsd-mips@FreeBSD.ORG Tue Dec 18 07:02:48 2012 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3003C9A3 for ; Tue, 18 Dec 2012 07:02:48 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by mx1.freebsd.org (Postfix) with ESMTP id A332C8FC17 for ; Tue, 18 Dec 2012 07:02:47 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id o1so124135wic.0 for ; Mon, 17 Dec 2012 23:02:40 -0800 (PST) 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=eZJfAKwQc9UcjxcsGK9GG3bVyidyTPys7x8gK5DKAJ8=; b=G9wi0BKK1r093/B9YFz7uRrXwfUch23NpzqQ2b/Fxy2QXGf8hmsGY4A+TQf7Imrx+y +s9wNhU+vnNB1NTZKkYnKwMs+/BZqoJr/6bP7EJnikXs+xAMoSFbB5FDBha8MQu5L+NW j3dGmKpoTjSgMvsJr0BiIiymLTvwzAQqGGor9g/CK3dXeIu4iEXeWvwWH3Wu4nfAza+P EcfT00a74PaW2ORmgr2YL5OULYooTe3WW0/62SEgDjUqUze04x9Se57bFtZUnPakfd5X 5wX4Xw8pKQZYNEnK1ybpDFQqnN/zeHzyjIEZEzxEhzLMxZblYhuxuamZvcanO1pouER+ 669Q== MIME-Version: 1.0 Received: by 10.180.87.102 with SMTP id w6mr1806160wiz.19.1355813755896; Mon, 17 Dec 2012 22:55:55 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Mon, 17 Dec 2012 22:55:55 -0800 (PST) In-Reply-To: <129337B8-C3C2-4365-8C8D-6F5B6B45DDB1@bluezbox.com> References: <50CFE88E.3020303@bluezbox.com> <266E3514-39BC-4E3C-A5BA-50B4D7DA635E@bsdimp.com> <129337B8-C3C2-4365-8C8D-6F5B6B45DDB1@bluezbox.com> Date: Mon, 17 Dec 2012 22:55:55 -0800 X-Google-Sender-Auth: me6TDlicE4OxZslBjv3Q1ZKfg_s Message-ID: Subject: Re: Help: Reg Out of swap space From: Adrian Chadd To: Oleksandr Tymoshenko Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2012 07:02:48 -0000 i386 would suffer if it ran on say, 64 or 128mb ram. I don't think it's a tier X question, I think it's a "hey, everything has ${LOTS} of real RAM, let's make the allocator assume that!" design from Jason. Which is fine for the systems Jason is running on, but not for other situations. Honestly, I think we should write some patches to jemalloc to implement a better default set of behaviours (including run-time configuration tweaks to set default parameters like arena sizes, etc) and hand that off to Jason to push into his next install of jemalloc. Thanks, Adrian On 17 December 2012 21:57, Oleksandr Tymoshenko wrote: > > On 2012-12-17, at 8:06 PM, Warner Losh wrote: > >> >> On Dec 17, 2012, at 8:52 PM, Oleksandr Tymoshenko wrote: >> >>> On 12/17/2012 2:32 AM, Mukunda Haveri wrote: >>>> I have done that already. Hope it's correct.. >>>> Please have a look at the attached make.mips.conf. and my build script (csh >>>> script) sets, >>>> setenv __MAKE_CONF /root/mips/make.conf.mips >>>> setenv SRCCONF /root/mips/src.conf.mips >>>> >>>> I also have a new problem after updating the source to head [from 24k+ >>>> version]. Something related to . -:) >>>> >>>> >>>> >>>> On Mon, Dec 17, 2012 at 2:14 PM, Adrian Chadd wrote: >>>> >>>>> You need to define MALLOC_PRODUCTION in your build or the default >>>>> jemalloc options in -HEAD cause it to run out of RAM on embedded >>>>> platforms. >>>>> >>>>> >>> >>> As far as I can see it's MALLOC_DISTRIBUTION in make.conf. Should be MALLOC_PRODUCTION >> >> It should be WITHOUT_MALLOC_DEBUG >> > > BTW, why not make it a default for platforms with small footprint or non-tier1? As far as I understand > the idea behind having debug enabled is to make getting information from running systems > easier. I do not think this approach is applicable to ARM or MIPS targets. > > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"