public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Bjorn Wesen <bjornw@axis.com>
Cc: Finn Hakansson <finn@axis.com>,
	"mtd@infradead.org" <mtd@infradead.org>,
	jffs-dev@axis.com
Subject: Re: jffs_file_write
Date: Tue, 25 Jul 2000 14:19:44 +0100	[thread overview]
Message-ID: <26128.964531184@cygnus.co.uk> (raw)
In-Reply-To: <Pine.LNX.3.96.1000725145702.8086O-100000@fafner.axis.se>


bjornw@axis.com said:
>  It usually takes about 1-2 seconds to erase a sector, so if you
> really need to erase the entire 16 mb flash during GC, that's 250
> sectors times 2 seconds, about 8 minutes. Mileage may vary depending
> on flash manufacturer - I've never used 16 mbyte flashes in anything..
> 

On these chips, erases only take a second. At the time, it was also 128
microseconds per _word_ write. So although a complete erase only takes 128
seconds, writing the whole device was more like 20 minutes.

Even so, it should be far less than the 90 minutes that I observed. Is it
possible that the GC was compacting the data on the flash repeatedly, before
it had completed removing all the files? The command I was running was:
 rm -r /mnt/usr

If it removed a couple of MB, then garbage collected, then removed another 
couple of MB, then would it have ended up moving the same data twice?



--
dwmw2




To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

  reply	other threads:[~2000-07-25 13:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-21 23:41 jffs_file_write Rogelio M. Serrano Jr.
2000-07-24 15:09 ` jffs_file_write Finn Hakansson
2000-07-25  9:29   ` jffs_file_write David Woodhouse
2000-07-25  9:44     ` jffs_file_write Finn Hakansson
2000-07-25 10:01       ` jffs_file_write David Woodhouse
2000-07-25 10:11         ` jffs_file_write Finn Hakansson
2000-07-25 13:02           ` jffs_file_write Bjorn Wesen
2000-07-25 13:19             ` David Woodhouse [this message]
2000-07-25 13:54           ` jffs_file_write David Woodhouse
2000-07-25 10:02     ` jffs_file_write Bjorn Wesen
2000-07-25 10:15       ` jffs_file_write David Woodhouse
2000-07-25 14:29     ` jffs_file_write Philipp Rumpf
2000-07-25 15:12       ` jffs_file_write David Woodhouse
2000-07-25 15:24         ` jffs_file_write Philipp Rumpf

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=26128.964531184@cygnus.co.uk \
    --to=dwmw2@infradead.org \
    --cc=bjornw@axis.com \
    --cc=finn@axis.com \
    --cc=jffs-dev@axis.com \
    --cc=mtd@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