[PATCH 0/3] mtd: block2mtd: convert to folios

Jörn Engel joern at barelysecure.org
Thu Oct 15 11:39:18 PDT 2026


On Wed, Oct 14, 2026 at 11:34:53PM -0400, Tal Zussman wrote:
> 
> The numbers below are from mtd_speedtest, in MiB/s, by folio size,
> except the last row, which is from the MEMERASE ioctl:
> 
> +------------------------------+-------+--------+---------+---------+
> | Test                         | Folio |   Base | Patched |  Change |
> +------------------------------+-------+--------+---------+---------+
> | Eraseblock read (128 KiB)    |   4K  |  12545 |   12863 |   +2.5% |
> |                              |  16K  |  12998 |   17229 |  +32.6% |
> |                              |  64K  |  13009 |   19135 |  +47.1% |
> +------------------------------+-------+--------+---------+---------+

Thank you!  Code size goes down, code seems subjectively easier to read
and performance goes up.  Good stuff!

The one pet complaint I have is that benchmarks should measure badness,
not goodness.  Humans tend to prioritize the big numbers.  If you
measure the bad thing (time in this case), they focus on the worst areas
where most time is spent.  If you measure the good thing, they tend to
improve things that are already too good to worry about even further.

Maybe you are immune to such psychological effects, but I am not and
measuring time instead of throughput makes a difference to my mind.

Jörn

--
The cheapest, fastest and most reliable components of a computer
system are those that aren't there.
-- Gordon Bell, DEC labratories



More information about the linux-mtd mailing list