From: Bill Pringlemeir <bpringlemeir@nbsps.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] mtd: vf610_nfc: remove caching of page in buffer
Date: Thu, 02 Apr 2015 16:30:43 -0400 [thread overview]
Message-ID: <87twwyl1cc.fsf@nbsps.com> (raw)
In-Reply-To: <1427965511-30658-1-git-send-email-stefan@agner.ch> (Stefan Agner's message of "Thu, 2 Apr 2015 11:05:10 +0200")
On 2 Apr 2015, stefan at agner.ch wrote:
> To improve performance we remember the current page in the buffer
> and avoid reading it twice. This implicit page cache increases
> complexity while does not increase performance in real world cases.
> This patch removes that feature.
> ---
> As discussed in the other patchset...
> http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/215802
> ...I did some performance measurements:
> Time to "Starting kernel ..."
> - without bad block scan & with UBIFS fastmap: 2.02s
> - with bad block scan & with UBIFS fastmap: 3.99s
> - without bad block scan & without UBIFS fastmap: 4.42s
> - with bad block scan & without UBIFS fastmap: 6.38s
> Without page cache (with this patch applied):
> Time to "Starting kernel ..."
> - without bad block scan & with UBIFS fastmap: 2.02s
> - with bad block scan & with UBIFS fastmap: 4.01s
> - without bad block scan & without UBIFS fastmap: 4.41s
> - with bad block scan & without UBIFS fastmap: 6.39s
[snip]
I also measured 'write performance' with the mtd_speedtest (performing
similar patch to the Linux driver) and I see no difference. I think a
write benchmark is more appropriate to test this functionality? While
at least it seems that neither read nor write is affected by the
simplification.
Fwiw,
Bill Pringlemeir.
next prev parent reply other threads:[~2015-04-02 20:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-02 9:05 [U-Boot] [PATCH 1/2] mtd: vf610_nfc: remove caching of page in buffer Stefan Agner
2015-04-02 9:05 ` [U-Boot] [PATCH 2/2] mtd: vf610_nfc: implement OOB only read Stefan Agner
2015-04-02 20:30 ` Bill Pringlemeir [this message]
2015-04-07 13:14 ` [U-Boot] [PATCH 1/2] mtd: vf610_nfc: remove caching of page in buffer Stefan Agner
2015-04-07 14:24 ` Bill Pringlemeir
2015-04-07 15:09 ` Stefan Agner
2015-04-07 16:48 ` Bill Pringlemeir
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=87twwyl1cc.fsf@nbsps.com \
--to=bpringlemeir@nbsps.com \
--cc=u-boot@lists.denx.de \
/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