From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25660 invoked by alias); 13 Jul 2004 08:09:52 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 25652 invoked from network); 13 Jul 2004 08:09:51 -0000 Received: from unknown (HELO mail.broadpark.no) (217.13.4.2) by sourceware.org with SMTP; 13 Jul 2004 08:09:51 -0000 Received: from famine (217-13-20-38.dd.nextgentel.com [217.13.20.38]) by mail.broadpark.no (Postfix) with ESMTP id 59E1A1B08; Tue, 13 Jul 2004 10:10:21 +0200 (MEST) From: =?ISO-8859-1?Q?=D8yvind?= Harboe To: Andrew Lunn Cc: ecos-discuss@sources.redhat.com In-Reply-To: <20040713075318.GP18802@lunn.ch> References: <1089643331.3951.42.camel@famine> <20040713074052.GO18802@lunn.ch> <20040713075318.GP18802@lunn.ch> Content-Type: text/plain; charset=iso-8859-1 Message-Id: <1089706190.5995.10.camel@famine> Mime-Version: 1.0 Date: Tue, 13 Jul 2004 08:09:00 -0000 Content-Transfer-Encoding: 8bit Subject: Re: [ECOS] JFFS2 eats memory X-SW-Source: 2004-07/txt/msg00169.txt.bz2 On Tue, 2004-07-13 at 09:53, Andrew Lunn wrote: > > > Presumably when the raw nodes in the file fragement list are marked as > > > obsolete, they are no longer required, but are not freed. > > One other thing. You might consider try gettting the garbage collect > code runnig. This might help solve your problem. I just took it for a spin: no change. This is not surprising. There is nothing to garbage collect, i.e. there is plenty of free space on the JFFS2 drive and very few deleted raw nodes. > I guess as a proof of concept just call > jffs2_garbage_collect_pass(JFFS2_SB_INFO(jffs2_sb)); > > This is not strictly correct since you need to add locking to one of > the lists to make this thread safe. I forget which and i've forgotten > where i read about this, but im sure google will find it for you. > > Andrew -- Øyvind Harboe http://www.zylin.com -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss