From owner-freebsd-embedded@FreeBSD.ORG Sun Jul 8 11:16:49 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D07D41065670 for ; Sun, 8 Jul 2012 11:16:49 +0000 (UTC) (envelope-from harm@weites.com) Received: from server1.weites.net (server1.weites.net [89.188.29.39]) by mx1.freebsd.org (Postfix) with ESMTP id 8E1C78FC0A for ; Sun, 8 Jul 2012 11:16:49 +0000 (UTC) Received: from [192.168.99.209] (52486A57.cm-4-1b.dynamic.ziggo.nl [82.72.106.87]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: harm@weites.com) by server1.weites.net (Postfix) with ESMTPSA id 7922A71F9E for ; Sun, 8 Jul 2012 06:19:03 +0200 (CEST) Message-ID: <1341745590.2740.17.camel@manbearpig.dynamic.weites.net> From: Harm Weites To: freebsd-embedded@freebsd.org Date: Sun, 08 Jul 2012 13:06:30 +0200 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.3 (3.4.3-1.fc17) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: TP-Link wr1043nd out of swap space X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2012 11:16:49 -0000 Hi list, After flashing my firmware image on the TP-Link it apears to run out of swap space when executing /etc/rc, thus halting further system startup. My mfsroot is actually ~500KB smaller compared to the result of the standard scripts, and the mount_mfs commands in /etc/rc are building 512K devices instead of the standard 1M. What could be the issue here, since there should be even more RAM available compared to using the image produced by the standard build scripts? Furthermore, I've compiled the kernel without WITNESS, WITNESS_SKIPSPIN, INVARIANTS and INVARIANT_SUPPORT. Kernel: FreeBSD 10.0-CURRENT #3 r238194M: Thu Jan 1 01:00:00 CET 1970 Memory: real memory = 33554432 (32768K bytes) avail memory = 26382336 (25MB) Messages on console: ------------ rtl8366rb0port0: link state changed to UP pid 17 (sh), uid 0, was killed: out of swap space Jul 7 22:03:23 init: /bin/sh on /etc/rc terminated abnormally, going to single user mode Enter full pathname of shell or RETURN for /bin/sh: # vmstat procs memory page disk faults cpu r b w avm fre flt re pi po fr sr fl0 in sy cs us sy id 0 0 0 25360k 1496k 91 1 1 0 61 410 28 0 11 47 0 6 94 # /sbin/mount pid 18 (sh), uid 0, was killed: out of swap space Jul 7 22:05:17 init: single user shell terminated. ------------ Please advise. Best regards, Harm From owner-freebsd-embedded@FreeBSD.ORG Sun Jul 8 16:05:02 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C17CC106564A for ; Sun, 8 Jul 2012 16:05:02 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 462EA8FC08 for ; Sun, 8 Jul 2012 16:05:02 +0000 (UTC) Received: by bkcje9 with SMTP id je9so4883577bkc.13 for ; Sun, 08 Jul 2012 09:05:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id :x-gm-message-state; bh=y3BfwLT7+tK+emifsAGkTKe/L4Y6zy9rGYSZbULJ/6w=; b=VXSmd80kMQ457PDV8ii5odkGlKAGa+kG1C2+GRXfNJgZAv0IuVlz3qtdsRyYVJSmb6 CQQkXO+8cOCJQnFLfSNkYEgmK6NW+TNNuyok7TURIP6ac0b3iTP0+mcai89YELHyROTU GGJ0hBGoMHP80ur4aMjHk5n+H8smZZcaeblmZXPty7TVrXN6InmENAKB6RUeyCLpv6Yf it5Ueth+FRVZk4viG13FYRY1+TKOkh66zkHzYfV+f9C0tehGH+24PaR2Kgmp4SmtGMuo 7b5woZKh+FNWZ3bxLhNfv34ASY/2QFrfyCeBUvroLcDH8w+h1R4GJXrqJ1QzqheGJS74 lk2w== Received: by 10.204.145.82 with SMTP id c18mr7108389bkv.133.1341763500974; Sun, 08 Jul 2012 09:05:00 -0700 (PDT) Received: from amy.lab.techwires.net (dslb-088-067-201-092.pools.arcor-ip.net. [88.67.201.92]) by mx.google.com with ESMTPS id 14sm357622bkq.12.2012.07.08.09.04.59 (version=SSLv3 cipher=OTHER); Sun, 08 Jul 2012 09:05:00 -0700 (PDT) Sender: Bernhard Schmidt From: Bernhard Schmidt To: freebsd-embedded@freebsd.org Date: Sun, 8 Jul 2012 18:05:33 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) References: <1341745590.2740.17.camel@manbearpig.dynamic.weites.net> In-Reply-To: <1341745590.2740.17.camel@manbearpig.dynamic.weites.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201207081805.33574.bschmidt@freebsd.org> X-Gm-Message-State: ALoCoQn0FdER4oxG3FBhAV3tXedfaprxy6sybTVPUNlJ53FAMnGFKAwm+MRyLh3eTRgzYNHTHoE7 Cc: Harm Weites Subject: Re: TP-Link wr1043nd out of swap space X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2012 16:05:02 -0000 On Sunday 08 July 2012 13:06:30 Harm Weites wrote: > Hi list, > > After flashing my firmware image on the TP-Link it apears to run out of > swap space when executing /etc/rc, thus halting further system startup. > My mfsroot is actually ~500KB smaller compared to the result of the > standard scripts, and the mount_mfs commands in /etc/rc are building > 512K devices instead of the standard 1M. What could be the issue here, > since there should be even more RAM available compared to using the > image produced by the standard build scripts? > > Furthermore, I've compiled the kernel without WITNESS, WITNESS_SKIPSPIN, > INVARIANTS and INVARIANT_SUPPORT. Do you have MALLOC_PRODUCTION defined in your make.conf? If not, you should try to do so. -- Bernhard From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 9 11:07:07 2012 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 86491106564A for ; Mon, 9 Jul 2012 11:07:07 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 56D018FC1D for ; Mon, 9 Jul 2012 11:07:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q69B77S8075381 for ; Mon, 9 Jul 2012 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q69B76bl075379 for freebsd-embedded@FreeBSD.org; Mon, 9 Jul 2012 11:07:06 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 9 Jul 2012 11:07:06 GMT Message-Id: <201207091107.q69B76bl075379@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2012 11:07:07 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c 2 problems total. From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 9 13:44:14 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A12C3106564A; Mon, 9 Jul 2012 13:44:14 +0000 (UTC) (envelope-from harm@weites.com) Received: from server1.weites.net (server1.weites.net [89.188.29.39]) by mx1.freebsd.org (Postfix) with ESMTP id 5A3A28FC08; Mon, 9 Jul 2012 13:44:14 +0000 (UTC) Received: from [192.168.99.209] (52486A57.cm-4-1b.dynamic.ziggo.nl [82.72.106.87]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: harm@weites.com) by server1.weites.net (Postfix) with ESMTPSA id 6B2A071F9E; Mon, 9 Jul 2012 15:44:05 +0200 (CEST) Message-ID: <1341841445.2540.10.camel@manbearpig.dynamic.weites.net> From: Harm Weites To: Bernhard Schmidt Date: Mon, 09 Jul 2012 15:44:05 +0200 In-Reply-To: <201207081805.33574.bschmidt@freebsd.org> References: <1341745590.2740.17.camel@manbearpig.dynamic.weites.net> <201207081805.33574.bschmidt@freebsd.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.3 (3.4.3-1.fc17) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@freebsd.org Subject: Re: TP-Link wr1043nd out of swap space X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2012 13:44:14 -0000 Hi Bernard, thanks for your suggestion. I've added MALLOC_PRODUCION=YES to /etc/make.conf, and also removed make option DEBUG=-g from the kernel config. The error still exists though. Regards Bernhard Schmidt schreef op zo 08-07-2012 om 18:05 [+0200]: > On Sunday 08 July 2012 13:06:30 Harm Weites wrote: > > Hi list, > > > > After flashing my firmware image on the TP-Link it apears to run out of > > swap space when executing /etc/rc, thus halting further system startup. > > My mfsroot is actually ~500KB smaller compared to the result of the > > standard scripts, and the mount_mfs commands in /etc/rc are building > > 512K devices instead of the standard 1M. What could be the issue here, > > since there should be even more RAM available compared to using the > > image produced by the standard build scripts? > > > > Furthermore, I've compiled the kernel without WITNESS, WITNESS_SKIPSPIN, > > INVARIANTS and INVARIANT_SUPPORT. > > Do you have MALLOC_PRODUCTION defined in your make.conf? If not, you > should try to do so. > From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 9 15:28:03 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0BC13106566B; Mon, 9 Jul 2012 15:28:03 +0000 (UTC) (envelope-from araujobsdport@gmail.com) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9B7768FC08; Mon, 9 Jul 2012 15:28:02 +0000 (UTC) Received: by qcsg15 with SMTP id g15so7646783qcs.13 for ; Mon, 09 Jul 2012 08:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=x3RmdOBvHlKxQvk9nF15cKSKVxhrDHiSNB8QveXamok=; b=gnW9Aw5tq152prjy/PnTMO0eyv7z6bG7BI+tVDm2nUlGYyKbZBuq6/zvx+KKTpqxMd voGfeQy5/2w7mQU8A0ViI+4iUATQAQp0yg6JJkQZL0TvzX560z3eGS2FVzcq/XEpBOFf q9Fv0pDsYyO27JviHMB89ckxPTfmkcDec+MDStQb2+0JS1Ka9k/D88zmYqNlNLjbP/89 GLMvR/ZFU+fTHvxjVdNbFyEC4CEbsiPACSzGoSkL+vNQCfv/H75IeAEPLp5regnNYkwQ jjJiEciTTrlGPf1oBo2rKTKOX/DF/aLJNTBIdjX7EWNoTUUe4PSQtEdYtO2mUxfrgx26 rPxQ== MIME-Version: 1.0 Received: by 10.60.9.134 with SMTP id z6mr41991061oea.46.1341847675699; Mon, 09 Jul 2012 08:27:55 -0700 (PDT) Received: by 10.76.68.74 with HTTP; Mon, 9 Jul 2012 08:27:55 -0700 (PDT) In-Reply-To: <1341841445.2540.10.camel@manbearpig.dynamic.weites.net> References: <1341745590.2740.17.camel@manbearpig.dynamic.weites.net> <201207081805.33574.bschmidt@freebsd.org> <1341841445.2540.10.camel@manbearpig.dynamic.weites.net> Date: Mon, 9 Jul 2012 23:27:55 +0800 Message-ID: From: Marcelo Araujo To: Harm Weites Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-embedded@freebsd.org, Bernhard Schmidt Subject: Re: TP-Link wr1043nd out of swap space X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: araujo@FreeBSD.org List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2012 15:28:03 -0000 Hello Harm, There is a typo is must be MALLOC_PRODUCTION=YES instead of MALLOC PRODUCION=YES. Maybe you could double check! Best Regards, - Araujo 2012/7/9 Harm Weites > Hi Bernard, > > thanks for your suggestion. I've added MALLOC_PRODUCION=YES > to /etc/make.conf, and also removed make option DEBUG=-g from the kernel > config. The error still exists though. > > Regards > > Bernhard Schmidt schreef op zo 08-07-2012 om 18:05 [+0200]: > > On Sunday 08 July 2012 13:06:30 Harm Weites wrote: > > > Hi list, > > > > > > After flashing my firmware image on the TP-Link it apears to run out of > > > swap space when executing /etc/rc, thus halting further system startup. > > > My mfsroot is actually ~500KB smaller compared to the result of the > > > standard scripts, and the mount_mfs commands in /etc/rc are building > > > 512K devices instead of the standard 1M. What could be the issue here, > > > since there should be even more RAM available compared to using the > > > image produced by the standard build scripts? > > > > > > Furthermore, I've compiled the kernel without WITNESS, > WITNESS_SKIPSPIN, > > > INVARIANTS and INVARIANT_SUPPORT. > > > > Do you have MALLOC_PRODUCTION defined in your make.conf? If not, you > > should try to do so. > > > > > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.org > " > -- Marcelo Araujo araujo@FreeBSD.org From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 9 16:02:10 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA050106566C; Mon, 9 Jul 2012 16:02:10 +0000 (UTC) (envelope-from harm@weites.com) Received: from server1.weites.net (server1.weites.net [89.188.29.39]) by mx1.freebsd.org (Postfix) with ESMTP id 7FAA28FC15; Mon, 9 Jul 2012 16:02:10 +0000 (UTC) Received: from [192.168.99.209] (52486A57.cm-4-1b.dynamic.ziggo.nl [82.72.106.87]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: harm@weites.com) by server1.weites.net (Postfix) with ESMTPSA id 060FB71F9E; Mon, 9 Jul 2012 18:02:08 +0200 (CEST) Message-ID: <1341849727.2540.11.camel@manbearpig.dynamic.weites.net> From: Harm Weites To: araujo@FreeBSD.org Date: Mon, 09 Jul 2012 18:02:07 +0200 In-Reply-To: References: <1341745590.2740.17.camel@manbearpig.dynamic.weites.net> <201207081805.33574.bschmidt@freebsd.org> <1341841445.2540.10.camel@manbearpig.dynamic.weites.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.3 (3.4.3-1.fc17) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@freebsd.org, Bernhard Schmidt Subject: Re: TP-Link wr1043nd out of swap space X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2012 16:02:10 -0000 Hi, just a typo in my message, not in make.conf :) regards Marcelo Araujo schreef op ma 09-07-2012 om 23:27 [+0800]: > Hello Harm, > > > There is a typo is must be MALLOC_PRODUCTION=YES instead of MALLOC > PRODUCION=YES. Maybe you could double check! > > > Best Regards, > - Araujo > > 2012/7/9 Harm Weites > Hi Bernard, > > thanks for your suggestion. I've added MALLOC_PRODUCION=YES > to /etc/make.conf, and also removed make option DEBUG=-g from > the kernel > config. The error still exists though. > > Regards > > Bernhard Schmidt schreef op zo 08-07-2012 om 18:05 [+0200]: > > On Sunday 08 July 2012 13:06:30 Harm Weites wrote: > > > Hi list, > > > > > > After flashing my firmware image on the TP-Link it apears > to run out of > > > swap space when executing /etc/rc, thus halting further > system startup. > > > My mfsroot is actually ~500KB smaller compared to the > result of the > > > standard scripts, and the mount_mfs commands in /etc/rc > are building > > > 512K devices instead of the standard 1M. What could be the > issue here, > > > since there should be even more RAM available compared to > using the > > > image produced by the standard build scripts? > > > > > > Furthermore, I've compiled the kernel without WITNESS, > WITNESS_SKIPSPIN, > > > INVARIANTS and INVARIANT_SUPPORT. > > > > Do you have MALLOC_PRODUCTION defined in your make.conf? If > not, you > > should try to do so. > > > > > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to > "freebsd-embedded-unsubscribe@freebsd.org" > > > > > -- > Marcelo Araujo > araujo@FreeBSD.org > From owner-freebsd-embedded@FreeBSD.ORG Fri Jul 13 02:32:53 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D74C1106564A; Fri, 13 Jul 2012 02:32:53 +0000 (UTC) (envelope-from araujobsdport@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 9F1B28FC12; Fri, 13 Jul 2012 02:32:53 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so5181829pbb.13 for ; Thu, 12 Jul 2012 19:32:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=LTjoYxftLyzN+8dbbuoVS3ulWxFBvtDBxcR5Xm8biJ0=; b=hJiPVH2Y6P82+aTS+0kIjOu9afDSucDBCWef2NOfIr/mBZ8kArKR8AiCFSq8th94Jh 5JTFrZbg/+JtULNgXPEp9ppqZdRXetdF0aVfdN8UuXGFAH8Fbcy/gEFQoxAwhQ+WZxVQ apyDlT11vamN+M4QFSdQYKM08GELv0TawdrtenlNwbKJczuypMwI2YkPr4Zq7VWHkWut W+CqVvlNrIbqCOMcEeOiC4vg04HYvB91x+kl8v48LHNMfJe28GFUPnzn+m5INy8utofa d9OuqzFjlquESm5SpZOcLRx5X6ZTccUL1ETHEeLeoQi/nJj1V8Ux4hlMR9jOpUGQKLJB SgpA== MIME-Version: 1.0 Received: by 10.68.192.73 with SMTP id he9mr10718015pbc.17.1342146773414; Thu, 12 Jul 2012 19:32:53 -0700 (PDT) Received: by 10.143.36.6 with HTTP; Thu, 12 Jul 2012 19:32:53 -0700 (PDT) In-Reply-To: <1341849727.2540.11.camel@manbearpig.dynamic.weites.net> References: <1341745590.2740.17.camel@manbearpig.dynamic.weites.net> <201207081805.33574.bschmidt@freebsd.org> <1341841445.2540.10.camel@manbearpig.dynamic.weites.net> <1341849727.2540.11.camel@manbearpig.dynamic.weites.net> Date: Fri, 13 Jul 2012 10:32:53 +0800 Message-ID: From: Marcelo Araujo To: Harm Weites Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-embedded@freebsd.org, Bernhard Schmidt Subject: Re: TP-Link wr1043nd out of swap space X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: araujo@FreeBSD.org List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2012 02:32:53 -0000 Hello Harm, Did you have any progress to fix your problem, I'm quite interested on it. Best Regards, - Araujo 2012/7/10 Harm Weites > Hi, > > just a typo in my message, not in make.conf :) > > regards > > Marcelo Araujo schreef op ma 09-07-2012 om 23:27 [+0800]: > > Hello Harm, > > > > > > There is a typo is must be MALLOC_PRODUCTION=YES instead of MALLOC > > PRODUCION=YES. Maybe you could double check! > > > > > > Best Regards, > > - Araujo > > > > 2012/7/9 Harm Weites > > Hi Bernard, > > > > thanks for your suggestion. I've added MALLOC_PRODUCION=YES > > to /etc/make.conf, and also removed make option DEBUG=-g from > > the kernel > > config. The error still exists though. > > > > Regards > > > > Bernhard Schmidt schreef op zo 08-07-2012 om 18:05 [+0200]: > > > On Sunday 08 July 2012 13:06:30 Harm Weites wrote: > > > > Hi list, > > > > > > > > After flashing my firmware image on the TP-Link it apears > > to run out of > > > > swap space when executing /etc/rc, thus halting further > > system startup. > > > > My mfsroot is actually ~500KB smaller compared to the > > result of the > > > > standard scripts, and the mount_mfs commands in /etc/rc > > are building > > > > 512K devices instead of the standard 1M. What could be the > > issue here, > > > > since there should be even more RAM available compared to > > using the > > > > image produced by the standard build scripts? > > > > > > > > Furthermore, I've compiled the kernel without WITNESS, > > WITNESS_SKIPSPIN, > > > > INVARIANTS and INVARIANT_SUPPORT. > > > > > > Do you have MALLOC_PRODUCTION defined in your make.conf? If > > not, you > > > should try to do so. > > > > > > > > > _______________________________________________ > > freebsd-embedded@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > > To unsubscribe, send any mail to > > "freebsd-embedded-unsubscribe@freebsd.org" > > > > > > > > > > -- > > Marcelo Araujo > > araujo@FreeBSD.org > > > > > -- Marcelo Araujo araujo@FreeBSD.org From owner-freebsd-embedded@FreeBSD.ORG Fri Jul 13 16:13:11 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D21A31065673; Fri, 13 Jul 2012 16:13:11 +0000 (UTC) (envelope-from harm@weites.com) Received: from server1.weites.net (server1.weites.net [89.188.29.39]) by mx1.freebsd.org (Postfix) with ESMTP id 56D478FC15; Fri, 13 Jul 2012 16:13:11 +0000 (UTC) Received: from [192.168.99.209] (52486A57.cm-4-1b.dynamic.ziggo.nl [82.72.106.87]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: harm@weites.com) by server1.weites.net (Postfix) with ESMTPSA id ECB7D71C9D; Fri, 13 Jul 2012 18:13:03 +0200 (CEST) Message-ID: <1342195983.2336.35.camel@manbearpig.dynamic.weites.net> From: Harm Weites To: araujo@FreeBSD.org Date: Fri, 13 Jul 2012 18:13:03 +0200 In-Reply-To: References: <1341745590.2740.17.camel@manbearpig.dynamic.weites.net> <201207081805.33574.bschmidt@freebsd.org> <1341841445.2540.10.camel@manbearpig.dynamic.weites.net> <1341849727.2540.11.camel@manbearpig.dynamic.weites.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.3 (3.4.3-1.fc17) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@freebsd.org, Bernhard Schmidt Subject: Re: TP-Link wr1043nd out of swap space X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2012 16:13:12 -0000 Hi, the firmware posted on Adrian's google projects page works ok (which is from last December), it even says 10+M free memory. I've flashed my unit with a (old) kernel/world from r230847, it leaves ~5M mem available. The biggest difference between both is probably my inclusion of gif/pf devices, and leaving out the WITNESS/INVARIANTS stuff. Though that should probably not make such a huge difference. I've tried updating my tree to some revisions later, but at r233000 I'm left with ~4M available. There are some nice fixes in various places after that revision, so I'm eager to get something higher to work. And it would be nice to pin-point the cause of the error :) Regards Marcelo Araujo schreef op vr 13-07-2012 om 10:32 [+0800]: > Hello Harm, > > Did you have any progress to fix your problem, I'm quite interested on > it. > > Best Regards, > - Araujo > > 2012/7/10 Harm Weites > Hi, > > just a typo in my message, not in make.conf :) > > regards > > Marcelo Araujo schreef op ma 09-07-2012 om 23:27 [+0800]: > > Hello Harm, > > > > > > There is a typo is must be MALLOC_PRODUCTION=YES instead of > MALLOC > > PRODUCION=YES. Maybe you could double check! > > > > > > Best Regards, > > - Araujo > > > > 2012/7/9 Harm Weites > > Hi Bernard, > > > > thanks for your suggestion. I've added > MALLOC_PRODUCION=YES > > to /etc/make.conf, and also removed make option > DEBUG=-g from > > the kernel > > config. The error still exists though. > > > > Regards > > > > Bernhard Schmidt schreef op zo 08-07-2012 om 18:05 > [+0200]: > > > On Sunday 08 July 2012 13:06:30 Harm Weites wrote: > > > > Hi list, > > > > > > > > After flashing my firmware image on the TP-Link > it apears > > to run out of > > > > swap space when executing /etc/rc, thus halting > further > > system startup. > > > > My mfsroot is actually ~500KB smaller compared > to the > > result of the > > > > standard scripts, and the mount_mfs commands > in /etc/rc > > are building > > > > 512K devices instead of the standard 1M. What > could be the > > issue here, > > > > since there should be even more RAM available > compared to > > using the > > > > image produced by the standard build scripts? > > > > > > > > Furthermore, I've compiled the kernel without > WITNESS, > > WITNESS_SKIPSPIN, > > > > INVARIANTS and INVARIANT_SUPPORT. > > > > > > Do you have MALLOC_PRODUCTION defined in your > make.conf? If > > not, you > > > should try to do so. > > > > > > > > > _______________________________________________ > > freebsd-embedded@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > > To unsubscribe, send any mail to > > "freebsd-embedded-unsubscribe@freebsd.org" > > > > > > > > > > -- > > Marcelo Araujo > > araujo@FreeBSD.org > > > > > > > > > -- > Marcelo Araujo > araujo@FreeBSD.org From owner-freebsd-embedded@FreeBSD.ORG Fri Jul 13 16:45:13 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49E2A1065674 for ; Fri, 13 Jul 2012 16:45:13 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 001F98FC23 for ; Fri, 13 Jul 2012 16:45:12 +0000 (UTC) Received: by obbun3 with SMTP id un3so6320767obb.13 for ; Fri, 13 Jul 2012 09:45:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=Nx7E5l2ejZLNOfsMmaFL1/8NTHbTIijj99CIsTCxu8U=; b=GrbF0DUWutRfWCeHJi1QQ/hKYfYgCWw9wr+5SBFx2kvYZD0Xi6+muT9t7I9IS/PV0B XG3Rc6vCITKHCqlsMOhhpR6YRcpEIdXQefcIXlNp5JlqvyxqqPQjofAaWwN+W7qUZ7Gy 2rpaSoxd8uhM3WyvMogL88yYRCwnojk1kwXrCF6MGLmHYd2J56XAl1itIS33rdZBZ5zE 2alryTN6Mgo8XGITYnhXe4Y89GcxqrYCEznI1AQ77fMcWWkkFuTrMjhl0gJEjq+z9VOF eudFCOzEITcswqeZhap3Jfh+ZIJHJHkxmjhII+85J4PZvjRqFgk3KP3H3DhvNMnD/JdA agxg== Received: by 10.182.212.70 with SMTP id ni6mr2614479obc.44.1342197912400; Fri, 13 Jul 2012 09:45:12 -0700 (PDT) Received: from [10.30.101.53] ([209.117.142.2]) by mx.google.com with ESMTPS id l9sm5002206oeg.3.2012.07.13.09.45.11 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 Jul 2012 09:45:11 -0700 (PDT) Sender: Warner Losh Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <1342195983.2336.35.camel@manbearpig.dynamic.weites.net> Date: Fri, 13 Jul 2012 10:45:09 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <4B538596-937B-46F3-AF8F-17F34BE0C92D@bsdimp.com> References: <1341745590.2740.17.camel@manbearpig.dynamic.weites.net> <201207081805.33574.bschmidt@freebsd.org> <1341841445.2540.10.camel@manbearpig.dynamic.weites.net> <1341849727.2540.11.camel@manbearpig.dynamic.weites.net> <1342195983.2336.35.camel@manbearpig.dynamic.weites.net> To: Harm Weites X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQm9BmOjfX/iKUKPXr18AFK7c9Jhx7dQ1ktc7SfeNG+7BG4JunlS5Uvgrvduxy7LoT7hXj0r Cc: Bernhard Schmidt , araujo@FreeBSD.org, freebsd-embedded@freebsd.org Subject: Re: TP-Link wr1043nd out of swap space X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2012 16:45:13 -0000 On Jul 13, 2012, at 10:13 AM, Harm Weites wrote: > Hi, >=20 > the firmware posted on Adrian's google projects page works ok (which = is > from last December), it even says 10+M free memory. I've flashed my = unit > with a (old) kernel/world from r230847, it leaves ~5M mem available. = The > biggest difference between both is probably my inclusion of gif/pf > devices, and leaving out the WITNESS/INVARIANTS stuff. Though that > should probably not make such a huge difference. >=20 > I've tried updating my tree to some revisions later, but at r233000 = I'm > left with ~4M available. There are some nice fixes in various places > after that revision, so I'm eager to get something higher to work. And > it would be nice to pin-point the cause of the error :) It has been my experience that if you want to run general purpose things = on a device, you need at least 8M[*] of ram free after boot with the = daemons running. Any less than that, and it becomes very hard to cope = with fluctuations in load and usage. You'll likely need to go looking = for things to trim, I'm sorry to say. Warner [*] I've run certain special purpose machines closer to the edge, but = the load on them didn't vary much at all, and they had a very = constrained set of tasks they had to accomplish. And this was back in = the 4.x time frame, and dynamic memory in the kernel is somewhat more = vigorous these days. > Regards >=20 > Marcelo Araujo schreef op vr 13-07-2012 om 10:32 [+0800]: >> Hello Harm, >>=20 >> Did you have any progress to fix your problem, I'm quite interested = on >> it. >>=20 >> Best Regards, >> - Araujo >>=20 >> 2012/7/10 Harm Weites >> Hi, >>=20 >> just a typo in my message, not in make.conf :) >>=20 >> regards >>=20 >> Marcelo Araujo schreef op ma 09-07-2012 om 23:27 [+0800]: >>> Hello Harm, >>>=20 >>>=20 >>> There is a typo is must be MALLOC_PRODUCTION=3DYES instead of >> MALLOC >>> PRODUCION=3DYES. Maybe you could double check! >>>=20 >>>=20 >>> Best Regards, >>> - Araujo >>>=20 >>> 2012/7/9 Harm Weites >>> Hi Bernard, >>>=20 >>> thanks for your suggestion. I've added >> MALLOC_PRODUCION=3DYES >>> to /etc/make.conf, and also removed make option >> DEBUG=3D-g from >>> the kernel >>> config. The error still exists though. >>>=20 >>> Regards >>>=20 >>> Bernhard Schmidt schreef op zo 08-07-2012 om 18:05 >> [+0200]: >>>> On Sunday 08 July 2012 13:06:30 Harm Weites wrote: >>>>> Hi list, >>>>>=20 >>>>> After flashing my firmware image on the TP-Link >> it apears >>> to run out of >>>>> swap space when executing /etc/rc, thus halting >> further >>> system startup. >>>>> My mfsroot is actually ~500KB smaller compared >> to the >>> result of the >>>>> standard scripts, and the mount_mfs commands >> in /etc/rc >>> are building >>>>> 512K devices instead of the standard 1M. What >> could be the >>> issue here, >>>>> since there should be even more RAM available >> compared to >>> using the >>>>> image produced by the standard build scripts? >>>>>=20 >>>>> Furthermore, I've compiled the kernel without >> WITNESS, >>> WITNESS_SKIPSPIN, >>>>> INVARIANTS and INVARIANT_SUPPORT. >>>>=20 >>>> Do you have MALLOC_PRODUCTION defined in your >> make.conf? If >>> not, you >>>> should try to do so. >>>>=20 >>>=20 >>>=20 >>> _______________________________________________ >>> freebsd-embedded@freebsd.org mailing list >>>=20 >> http://lists.freebsd.org/mailman/listinfo/freebsd-embedded >>> To unsubscribe, send any mail to >>> "freebsd-embedded-unsubscribe@freebsd.org" >>>=20 >>>=20 >>>=20 >>>=20 >>> -- >>> Marcelo Araujo >>> araujo@FreeBSD.org >>>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >> --=20 >> Marcelo Araujo >> araujo@FreeBSD.org >=20 >=20 > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to = "freebsd-embedded-unsubscribe@freebsd.org"