public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Martin Egholm Nielsen <martin@egholm-nielsen.dk>
To: linux-mtd@lists.infradead.org
Subject: Re: JFFS2 garbage collector blocking for minutes after mount
Date: Fri, 22 Jul 2005 16:47:21 +0200	[thread overview]
Message-ID: <dbr0tp$87s$1@sea.gmane.org> (raw)
In-Reply-To: <1121887042.20077.1.camel@localhost.localdomain>

Hi there,

>>I'm not comfortable with profiling the kernel... It could be arranged, 
>>but I rather see if the a recent CVS snapshot does it for me... ;-)

> Profiling isn't hard or intrusive -- all you need to do is boot with
> something like 'profile=1' on the kernel command line, then
> read /proc/profile after the GC thread has finished doing its thing.
> 
> Then the readprofile tool will be able to tell you where the time was
> spent.

First of all, I patched my 2.4.20 kernel with CVS head from today 
(2005-07-22) - it took some time, but it surely seems to work...

That reduced the mount time of my "spoiled" flash from 8m45s 
(jffs2_gcd_mtd0) to some 45seconds! So that was a factor of ~10 in 
speed! That's more or less acceptable... (I really hope my patchin 
didn't spoil some other parts!)

Second, I tried running the profiling - *with* the new kernel/mtd 
source. The time consumers are - sorted by clock ticks:

47695	idled			384,63710
2997	nand_read_buf		62,43750
1122	nand_calculate_ecc	5,84380
677	__delay			33,85000
502	nand_do_read_ecc	0,26370

Right?!

BR,
  Martin

  parent reply	other threads:[~2005-07-22 14:48 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-20  9:03 JFFS2 garbage collector blocking for minutes after mount Martin Egholm Nielsen
2005-07-20 13:45 ` David Woodhouse
2005-07-20 14:12   ` Martin Egholm Nielsen
2005-07-20 14:19     ` David Woodhouse
2005-07-20 14:34       ` Martin Egholm Nielsen
2005-07-20 19:17         ` David Woodhouse
2005-07-21  9:23           ` Stephane Fillod
2005-07-22 14:47           ` Martin Egholm Nielsen [this message]
2005-07-23 15:07             ` David Woodhouse
2005-07-24 20:09               ` Martin Egholm Nielsen
2005-07-25  9:49                 ` Artem B. Bityuckiy
2005-07-25  9:58                   ` Martin Egholm Nielsen
2005-07-27  7:10                     ` Martin Egholm Nielsen
2005-07-26 13:04   ` Ferenc Havasi
2005-07-26 13:06     ` Artem B. Bityuckiy
2005-07-26 13:16       ` Ferenc Havasi
2005-07-26 13:08     ` Martin Egholm Nielsen
2005-07-26 13:14     ` Steven Scholz
2005-07-26 14:05       ` Ferenc Havasi
2005-07-26 14:06         ` Steven Scholz

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='dbr0tp$87s$1@sea.gmane.org' \
    --to=martin@egholm-nielsen.dk \
    --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