there is a description of the conditions that GC will activate in HowYaffsWorks from memory. On Wed, Aug 3, 2011 at 9:17 AM, Charles Manning wrote: > On Wednesday 03 August 2011 02:20:32 you wrote: > > Hi, > > > > I saw those code: > > if (!dev->is_checkpointed) { > > urgency = yaffs_bg_gc_urgency(dev); > > gc_result = yaffs_bg_gc(dev, urgency); > > if (urgency > 1) > > next_gc = now + HZ / 20 + 1; > > else if (urgency > 0) > > next_gc = now + HZ / 10 + 1; > > else > > next_gc = now + HZ * 2; > > } > > > > Does it means yaffs will perform gc at least HZ*2? I mean nomorlly the HZ > > is around 1sec, does the gc frequence too often? Thank you. > > It will only do the gc checking this often. > > That does not necessarily mean actual gc will happen. > > > > > > From: manningc2@actrix.gen.nz > > > To: yaffs@lists.aleph1.co.uk > > > Date: Tue, 2 Aug 2011 09:48:56 +1200 > > > Subject: Re: [Yaffs] When yaffs perform GC? > > > > > > On Tuesday 02 August 2011 04:10:11 HuangAlex wrote: > > > > Hi guys, > > > > > > > > I wonder when yaffs2 perform garbage collection, is every time power > > > > on/off the device or just perform gc when the reseved blocks is less > > > > than some specific value. Thank you. > > > > > > Have you read HowYaffsWorks? > > > > > > If you look at yaffs_guts.c and search for garbage or gc you will see > the > > > conditions under which gc is done. > > > > > > -- CHarles > > > > > > _______________________________________________ > > > yaffs mailing list > > > yaffs@lists.aleph1.co.uk > > > http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs > > > > _______________________________________________ > yaffs mailing list > yaffs@lists.aleph1.co.uk > http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs >