From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from a.ns.miles-group.at ([95.130.255.143] helo=radon.swed.at) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YuQSu-0004hh-H5 for linux-mtd@lists.infradead.org; Mon, 18 May 2015 19:12:41 +0000 Message-ID: <555A398B.8050203@nod.at> Date: Mon, 18 May 2015 21:12:11 +0200 From: Richard Weinberger MIME-Version: 1.0 To: Brian Norris Subject: Re: Tracking flash IO activity? References: <20150516205354.GK6055@norris-Latitude-E6410> <20150518175702.GO11598@ld-irv-0074> In-Reply-To: <20150518175702.GO11598@ld-irv-0074> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Cc: "valent.turkovic@gmail.com" , "linux-mtd@lists.infradead.org" List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Am 18.05.2015 um 19:57 schrieb Brian Norris: > On Sat, May 16, 2015 at 11:22:52PM +0200, Richard Weinberger wrote: >> On Sat, May 16, 2015 at 10:53 PM, Brian Norris >> wrote: >>> I don't know of any similar IO stats for MTDs, sorry. >> >> I wonder how hard it would be to integrate mtd into our current block IO stats. >> It mtd is too low level we could also do it with UBI. > > I'm not sure if blk-io's iostats would be sufficiently informative for > MTD/UBI anyway. Wouldn't we care about at least one extra > non-block-device stat: the erase stats? This coin has two sides. I agree that for MTD we have three interesting counters, read, write and erase which would deserve their own tool. Maybe something like mtdtop or mtdstat? But it would be nice if well known tools like iostat(1) could work too. > Also (and this may be more like what Valent is asking for, though he > mentions JFFS2, not UBIFS) is there a readily-available tool for reading > the erase counter information from a UBI volume? Not really. I have a very hacky tool to inspect UBI Images. Mainly to debug fastmap issues. If I find some spare time to polish it I'll happily publish it. Thanks, //richard