News: 0001475997

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux 6.11 Likely To Land DM-Verity Multi-Buffer Hashing For Big Speed Boost

([Linux Storage] 2 Hours Ago DM-Verity Multi-Buffer Hashing)


One of several nice Linux performance optimizations recently by Eric Biggers of Google has been [1]speeding up DM-Verity via multi-buffer hashing . DM-Verity is used for transparent integrity checking of block devices and this multi-buffer hashing code looks like it will land with the upcoming Linux 6.11 cycle.

The DM-Verity patch to enhance the performance via multi-buffer hashing has now been queued into [2]Biggers' "crypto-pending" branch . In turn it will likely be submitted for the Linux 6.11 merge window later this month, assuming it gets picked up into the "cryptodev" in the next one~two weeks.

Biggers explains in the patch:

"When supported by the hash algorithm, use crypto_shash_finup_mb() to interleave the hashing of pairs of data blocks. On some CPUs this nearly doubles hashing performance. The increase in overall throughput of cold-cache dm-verity reads that I'm seeing on arm64 and x86_64 is roughly 35% (though this metric is hard to measure as it jumps around a lot).

For now this is only done on data blocks, not Merkle tree blocks. We could use finup_mb on Merkle tree blocks too, but that is less important as there aren't as many Merkle tree blocks as data blocks, and that would require some additional code restructuring."

About 35% better performance on ARM64 and x86_64 hardware for DM-Verity with this new multi-buffer hashing.



[1] https://www.phoronix.com/news/DM-Verity-Multi-Buffer-Hashing

[2] https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/commit/?h=crypto-pending&id=0cd9e0b8b974da5cfbba9544eb1883f80a8bb265



Kjell

Everything is farther away than it used to be. It is even twice as
far to the corner and they have added a hill. I have given up running for
the bus; it leaves earlier than it used to.
It seems to me they are making the stairs steeper than in the old
days. And have you noticed the smaller print they use in the newspapers?
There is no sense in asking anyone to read aloud anymore, as everbody
speaks in such a low voice I can hardly hear them.
The material in dresses is so skimpy now, especially around the hips
and waist, that it is almost impossible to reach one's shoelaces. And the
sizes don't run the way they used to. The 12's and 14's are so much smaller.
Even people are changing. They are so much younger than they used to
be when I was their age. On the other hand people my age are so much older
than I am.
I ran into an old classmate the other day and she has aged so much
that she didn't recognize me.
I got to thinking about the poor dear while I was combing my hair
this morning and in so doing I glanced at my own reflection. Really now,
they don't even make good mirrors like they used to.
Sandy Frazier, "I Have Noticed"