From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Nelson Date: Mon, 21 Mar 2016 07:27:34 -0700 Subject: [U-Boot] [RFC PATCH 2/2] mmc: add support for block device cache In-Reply-To: <56EEFB99.2080805@nelint.com> References: <56E9A92F.5000205@nelint.com> <1458164424-15363-1-git-send-email-eric@nelint.com> <1458164424-15363-3-git-send-email-eric@nelint.com> <56EB2060.8040309@wwwdotorg.org> <56EEFB99.2080805@nelint.com> Message-ID: <56F004D6.6010003@nelint.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stephen, On 03/20/2016 12:35 PM, Eric Nelson wrote: > On 03/17/2016 02:23 PM, Stephen Warren wrote: >> On 03/16/2016 03:40 PM, Eric Nelson wrote: ... >> Do you have any stats on how many operations this saves for typical FS >> operations such as: >> >> - Partition table type identification (with various types such as >> MBR/DOS, GPT, ...) >> - Partition enumeration >> - Filesystem identification (with various filesystems such as FAT, ext, >> ...) >> - File reads >> > > Not yet, but I'm working something up that will allow this to be > gathered easily. As soon as we implement a cache, it provides a nice > spot for tracing operations. > The V2 RFC patch set implements a command (blkcache) that allows tracing block read operations as they pass through the cache, among other things: => blkcache trace => load mmc 0 10008000 /zImage miss: start 0, count 1 fill: start 0, count 1 miss: start 2000, count 1 fill: start 2000, count 1 reading /zImage hit: start 2000, count 1 miss: start 2011, count 2 miss: start 2001, count 6 miss: start 2031, count 9678 miss: start 45ff, count 1 fill: start 45ff, count 1 4955304 bytes read in 258 ms (18.3 MiB/s) http://lists.denx.de/pipermail/u-boot/2016-March/249155.html https://patchwork.ozlabs.org/patch/599942/