From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([192.100.105.134] helo=mgw-mx09.nokia.com) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1LtbyG-0006FG-PL for linux-mtd@lists.infradead.org; Tue, 14 Apr 2009 06:18:19 +0000 Subject: Re: ubifs error when do bonnie++ test From: Artem Bityutskiy To: Jason Liu In-Reply-To: References: <49D47252.3020701@nokia.com> <1239366421.3390.12.camel@localhost.localdomain> Content-Type: text/plain; charset="UTF-8" Date: Tue, 14 Apr 2009 09:17:54 +0300 Message-Id: <1239689874.3390.88.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Linux mtd , Adrian Hunter Reply-To: dedekind@infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2009-04-13 at 14:50 +0800, Jason Liu wrote: > 2009/4/10 Artem Bityutskiy : > > On Thu, 2009-04-02 at 17:49 +0800, Jason Liu wrote: > >> 2009/4/2 Adrian Hunter : > >> > Jason Liu wrote: > >> >> > >> >> I'm working on the 2.6.26 with ubifs enabled, but after some stress > >> >> test, ubifs give some err. The following is the steps to reproduce. > >> > > >> > Please apply all recent UBIFS patches and enable debugging and try > >> > again. > >> > > >> > You could also enable debugging checks, but that will really slow it down. > >> > > >> > > >> After apply all the patches from users/dedekind/ubifs-v2.6.26.git > >> I still get errors with bonnie++ test and only run 3times compared 390 > >> times without the patch > >> > >> Using uid:0, gid:0. > >> Writing with putc()...done > >> Writing intelligently...done > >> Rewriting...done > >> Reading with getc()...done > >> Reading intelligently...done > >> start 'em...done...done...done... > >> Create files in sequential order...done. > >> Stat files in sequential order...Expected 16384 files but only got 16385 > >> Cleaning up test directory after error. > > > > So have you tried to enable UBIFS extra checks? > Yes, The test is in progress. It's really slow after enable UBIFS > debug and extra checks.It will cost half hour for one test.And the > test case failed without debug off after 600 round of test.So it will > cost 600 * 0,5 = 300 hours with debug on, longer than 10 days. When you reproduce this, please, do not forget to type dmesg and save the output. Also, it is good idea to save an image of your flash. Could you please tell what is your flash device? I see this: UBI: physical eraseblock size: 1048576 bytes (1024 KiB) UBI: logical eraseblock size: 1032192 bytes UBI: smallest flash I/O unit: 8192 UBI: VID header offset: 8192 (aligned 8192) UBI: data offset: 16384 So your flash have huge PEB size of 1MiB. Min I/O unit size is also huge - 8KiB. And no sub-pages. What is this device? Some kind of NAND? -- Best regards, Artem Bityutskiy (Битюцкий Артём)