From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19795 invoked by alias); 7 Oct 2003 16:42:40 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 19780 invoked from network); 7 Oct 2003 16:42:38 -0000 Received: from unknown (HELO proxy.baslerweb.com) (145.253.187.130) by sources.redhat.com with SMTP; 7 Oct 2003 16:42:38 -0000 Received: from comm1.baslerweb.com ([172.16.13.2]) by proxy.baslerweb.com (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id com for ; Tue, 7 Oct 2003 18:40:52 +0200 Received: from 172.16.13.253 (VCLINUX-1 [172.16.13.253]) by comm1.baslerweb.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id 32J5GADA; Tue, 7 Oct 2003 18:41:21 +0200 From: Thomas Koeller Organization: Basler AG To: ecos-discuss@sources.redhat.com Date: Tue, 07 Oct 2003 16:42:00 -0000 User-Agent: KMail/1.5.2 References: <1065524219.5485.43.camel@famine> <1065532608.5999.8.camel@famine> <20031007134301.GC15932@lunn.ch> In-Reply-To: <20031007134301.GC15932@lunn.ch> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_F3ug/v0cfVbauMg" Message-Id: <200310071845.57157.thomas.koeller@baslerweb.com> Subject: Re: [ECOS] Stress testing JFFS2 X-SW-Source: 2003-10/txt/msg00111.txt.bz2 --Boundary-00=_F3ug/v0cfVbauMg Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-length: 2530 I also wrote a test program (attached) that runs on my target hardware as w= ell as the synth target. The only thing that's special about it is that main() = must be called from initialization context, it wants to start the scheduler itse= lf. The results I obtained from running it are the same as =D8yvind did: the am= ount of RAM used by JFFS2 is ever-increasing over time as the program executes. On my real target, it eventually hits the limit, while on the synthetic tar= get i have not seen this so far. Just like =D8yvind I was surprised that JFFS2 needs such huge amounts of RAM (it is targeted at embedded systems after all), but I could not spend any more time on the investigation. What I found out so far is that the memory does not seem to be lost permanently, if the file system is unmounted, it's all there again. I'd be delighted if someone came up with a solution! tk Andrew Lunn wrote: > On Tue, Oct 07, 2003 at 03:16:48PM +0200, ?yvind Harboe wrote: > > > Please could you give us a complete test case. Something we can run > > > ourselves. Create a new bugzilla bug on bugs.ecos.sourceware.org and > > > include the source code and the ecos configuration you are using. > > > > > > That will make it much easier for us to see whats happening. > > > > OK. > > > > But I need a few pointers. Clearly this standalone test case > > should not be EB40a specific. > > > > Ideally anyone should be able to run the testcase, but setting up a > > JFFS2 mount consists of a fair bit of hardware specific ecos.ecc > > manipulations, etc. > > Yep. Ideally would be to write a test case which runs on the synth > target. We can all work with that. This does work, i've run the > standard test case on synth before. > > > This might not be eCos specific, but I would expect the eCos community > > having greater interest in this kind of bug being fixed than > > non-embedded applications. > > Actually, it could be ecos specific. There is an wrapper round jffs2 > which implements the interface between eCos fileio and jffs2. The > problem could be in there. Also, its easier to debug jffs2 in eCos > than inside a linux kernel. > > Andrew --=20 -------------------------------------------------- Thomas Koeller, Software Development Basler Vision Technologies An der Strusbek 60-62 22926 Ahrensburg Germany Tel +49 (4102) 463-162 Fax +49 (4102) 463-239 mailto:thomas.koeller@baslerweb.com http://www.baslerweb.com =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D --Boundary-00=_F3ug/v0cfVbauMg Content-Type: application/x-bzip2; name="jffs2_exerciser.c.bz2" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="jffs2_exerciser.c.bz2" Content-length: 3819 QlpoOTFBWSZTWRflKMYABYnfgHVwf//9H7//3/6////+YAx/e6a7OB0M7tp2 6k1x2LSqEqTbFQQpQioQkiImRqPQ1NNGh6keTUzSepoYmhpoNHogDQ09TT1A GmiATU9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hEtzw6HBaw LUw+ZI1brCmzUkZRlrhtiuxWJtvPBJWQkau7GADyHyAVRU0uDJY4HGxNDbjd 4Kr2gHToI52dBK8rsqCfmlI4NTq6KxyzHFCzv6WKipIspraDLaE2oImqapot 721rF0jNG4yVxgjyWypAGIHFYcI4nes4O2AIuwaV9nAtZKoCLhRRJDQEMwNs Q1yZnSCqS2ypdXXOOzuGxlZni4SWyN4JoMib4Wbzb3iIUuVdoFRa7ty7Ptcc BgvuflQlUDtvA8+qEJvjt0doH0352ZtFrCH2MJLEBB6D6ukWJs19W19QxGYb w04TCjwY3MhqhED4QLge5cplplWQ2JiX87QXqc5YQahG1GAGQeJIS0i4i4pe COVFkfY7soGERdK6LW/+LuSKcKEgL8pRjA== --Boundary-00=_F3ug/v0cfVbauMg Content-Type: text/plain; charset=us-ascii Content-length: 146 -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss --Boundary-00=_F3ug/v0cfVbauMg--