From: Artem Bityutskiy <dedekind@infradead.org>
To: KeunO Park <lastnite@gmail.com>
Cc: linux-mtd <linux-mtd@lists.infradead.org>
Subject: Re: ubifs, ubiblk(formatted with vfat) and yaffs2 test.
Date: Mon, 02 Jun 2008 09:10:34 +0300 [thread overview]
Message-ID: <1212387034.31023.166.camel@sauron> (raw)
In-Reply-To: <5ed5c4730805300808v79f7fd7dpe3550cd8fc1b0db5@mail.gmail.com>
Hi,
On Sat, 2008-05-31 at 00:08 +0900, KeunO Park wrote:
> 2008/5/30, Artem Bityutskiy <dedekind@infradead.org>:
> > On Fri, 2008-05-30 at 22:00 +0900, KeunO Park wrote:
> > > > But I have to add that of course, YAFFS/JFFS2 are more light-weight
> > > > file-system, because they do not maintain the FS index on the flash
> > > > media. UBIFS does and this costs extra CPU cycles and extra I/O.
> > > >
> > >
> > > actually I did write & fsync the file during test. :-)
> > > anyway thank you for your comment.
> >
> > Could you please send your test? And how you measure the load average?
> >
>
> ok. here is my simple test.
>
> 1. make a random dumped file in sdram area.
> # cd /dev/shm/tmp
> # dd if=/dev/urandom of=test.out bs=1M count=10
> because ubifs uses compressor, I made a random data file for test.
>
> 2. make another shell script.
> # cat test_write.sh
> #!/bin/sh
> /bin/cp /dev/shm/tmp/test.out /nand_partition
> /bin/sync
In my previous mail, I described why the load will jump up when you do
like this, please refer to that mail again.
I suggest you to mount the file-system with '-o sync' option and measure
load average.
> 3. check that there is no other application running.
> write down the load avg using 'top'
>
> 4. just use 'time' utility to know how long it takes.
> # time ./test_write.sh
>
> 5. write down the load avg again using 'top'.
>
> using 'top' may be inadaquate choice. but, I think that
> this would be helpful more or less.
Yes, using top is not nice. But if the file is large enough, and you
watch 'top' for, say, several minutes, and then calculate the average
accurately, this should be good enough.
> 3.1 while I run 'cp test.out /nand_partition;sync' in ubifs partition
> with 6800 files, suddenly I cut off the power. then check the speed in
> next mount time.
> real 0m 3.64s
> user 0m 0.00s
> sys 0m 1.32s
> 3.2 while I run 'cp test.out /nand_partition;sync' in clean ubifs
> partition with a few files, suddenly I cut off the power. then check
> the speed in next mount time.
> real 0m 1.62s
> user 0m 0.00s
> sys 0m 0.45s
Mount time depends on how full is your journal, so it will be slightly
different each time you reboot uncleanly.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
next prev parent reply other threads:[~2008-06-02 6:09 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-30 6:01 ubifs, ubiblk(formatted with vfat) and yaffs2 test KeunO Park
2008-05-30 6:33 ` Artem Bityutskiy
2008-05-30 7:15 ` KeunO Park
2008-05-30 11:34 ` Josh Boyer
2008-05-30 12:51 ` KeunO Park
2008-05-30 12:02 ` Artem Bityutskiy
2008-05-30 12:05 ` Artem Bityutskiy
2008-05-30 13:00 ` KeunO Park
2008-05-30 13:49 ` Artem Bityutskiy
2008-05-30 15:08 ` KeunO Park
2008-06-02 6:10 ` Artem Bityutskiy [this message]
2008-06-04 4:06 ` KeunO Park
2008-06-04 8:05 ` Artem Bityutskiy
2008-10-24 11:41 ` Artem Bityutskiy
[not found] <5ed5c4730805291914h187e0b0et2de31d595b52f125@mail.gmail.com>
2008-05-30 15:17 ` KeunO Park
-- strict thread matches above, loose matches on Subject: below --
2008-06-02 5:29 References:ubifs, " Nancy
2008-06-02 6:18 ` ubifs, " Artem Bityutskiy
2008-06-02 6:47 ` Nancy
[not found] <bae050c10806012138p6167f30eu9450563efa5429ab@mail.gmail.com>
2008-06-02 5:55 ` KeunO Park
2008-06-02 6:06 ` Nancy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1212387034.31023.166.camel@sauron \
--to=dedekind@infradead.org \
--cc=lastnite@gmail.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox