From: "Joakim Tjernlund" <Joakim.Tjernlund@lumentis.se>
To: "Dave Ellis" <DGE@sixnetio.com>
Cc: <linux-mtd@lists.infradead.org>
Subject: Re: Disk blocks for long periods
Date: Tue, 6 Aug 2002 23:06:01 +0200 [thread overview]
Message-ID: <001f01c23d8d$11bbd240$0200a8c0@telia.com> (raw)
In-Reply-To: 00512BA4F9D3D311912A009027E9B8F407E475@NT
> joakim.tjernlund@lumentis.se said:
>
> > hmm, I just noticed that the BIG kernel lock is held while
> > the erasing thread executes, since kupdate takes it in
> > sync_old_buffers() (if I understand this code correctly).
> > Maybe that is causing current->need_resched to be set?
> >
> > Also, is it not a bad idea to hold the kernel lock for,
> > possibly, seconds while erasing sectors?
>
> If it is doing that, it doesn't seem right to me. But I
> thought jffs2/mtd bypassed the kernel buffers, so maybe
> kupdate and sync_old_buffers() are not involved here? I don't
> know much about this.
hmm, just remembered that a spin_lock() is NOP on Uni Processor computers.
Kupdate does the erasing and puts a CLEANMARKER on it when its
done. Just follow sync_old_buffers() until it ends up in jffs2_write_super()
BTW
jffs2_mark_erased_blocks() also checks the newly erased block for
0xffffffff by reading the EB back. Removing this test improves my litte test case
I wrote about in my previous post to the mtd list. The max copy time is reduced
from 20 seconds to 15 seconds.
Jocke
>
> > I assume your chip does not support buffered writes? or is it
> > just do_write_one_word() that is causing the log delays?
>
> No, it doesn't support buffered writes. The long delay I saw
> comes from sleeping for a jiffie during each call to
> do_write_oneword().
I tried your patch and it improved my write times as well. Thanks
>
> Dave Ellis
> dge@sixnetio.com
next prev parent reply other threads:[~2002-08-06 21:03 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-06 20:16 Disk blocks for long periods Dave Ellis
2002-08-06 21:06 ` Joakim Tjernlund [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-08-07 16:42 Dave Ellis
2002-08-08 7:08 ` Joakim Tjernlund
2002-08-08 8:08 ` David Woodhouse
2002-08-08 9:15 ` Joakim Tjernlund
2002-08-08 9:18 ` David Woodhouse
2002-08-06 14:53 Dave Ellis
2002-08-06 15:09 ` Joakim Tjernlund
2002-08-07 11:11 ` David Woodhouse
2002-08-05 18:50 Dave Ellis
2002-08-06 10:06 ` Joakim Tjernlund
2002-08-06 12:14 ` David Woodhouse
2002-08-06 13:52 ` Jörn Engel
2002-08-06 13:53 ` David Woodhouse
2002-08-06 16:45 ` Joakim Tjernlund
2002-08-07 9:51 ` David Woodhouse
2002-08-08 7:23 ` Joakim Tjernlund
2002-08-08 8:02 ` David Woodhouse
2002-08-08 8:32 ` Joakim Tjernlund
2002-08-08 8:40 ` David Woodhouse
2002-08-05 10:35 MTD Partition problems David Woodhouse
2002-08-05 13:35 ` Disk blocks for long periods Joakim Tjernlund
2002-08-05 13:44 ` David Woodhouse
2002-08-05 13:59 ` Joakim Tjernlund
2002-08-05 14:12 ` David Woodhouse
2002-08-05 14:32 ` Joakim Tjernlund
2002-08-05 14:42 ` David Woodhouse
2002-08-05 21:45 ` Jasmine Strong
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='001f01c23d8d$11bbd240$0200a8c0@telia.com' \
--to=joakim.tjernlund@lumentis.se \
--cc=DGE@sixnetio.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