News: 0001600014

  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 Patches Begin Adapting RAID Code To Use Folios

([Linux Storage] 97 Minutes Ago Folios For RAID)


A new set of patches posted today to the Linux kernel mailing list begin adapting the Linux software RAID code paths to begin making use of the [1]folio data structure.

Folios have continued to see continued usage throughout the Linux kernel since [2]their merging back in 2021 with Linux 5.16. Folios allow more efficiently managing a groups of contiguous memory pages for better performance while often simplifying the kernel code too.

[3]

Huawei engineer Li Nan posted the patches to begin making use of folios for sync I/O within the Linux RAID code. Initially folios are used for sync operations in RAID1 and RAID10 modes. Where up to this point the RAID code relied on 16 x 4K pages for 64K sync I/O, with the proposed patches it's consolidated into a single 64K folio.

"This patchset adds folio support to sync operations in raid1/10. Previously, we used 16 * 4K pages for 64K sync I/O. With this change, we'll use a single 64K folio instead.

This is the first step towards full folio support in RAID. Going forward, I will replace the remaining page-based usage with folio.

The patchset was tested with mdadm. Additional fault injection stress tests were run under file systems."

More details for those interested in this initial folio adoption in the Linux MD RAID code via [4]the LKML patch series .



[1] https://www.phoronix.com/search/folio

[2] https://www.phoronix.com/news/Memory-Folios-Lands-Linux-5.16

[3] https://www.phoronix.com/image-viewer.php?id=2025&image=folio_raid_lrg

[4] https://lore.kernel.org/lkml/20251217120013.2616531-1-linan666@huaweicloud.com/



Well I looked at my watch and it said a quarter to five,
The headline screamed that I was still alive,
I couldn't understand it, I thought I died last night.
I dreamed I'd been in a border town,
In a little cantina that the boys had found,
I was desperate to dance, just to dig the local sounds.
When along came a senorita,
She looked so good that I had to meet her,
I was ready to approach her with my English charm,
When her brass knuckled boyfriend grabbed me by the arm,
And he said, grow some funk of your own, amigo,
Grow some funk of your own.
We no like to with the gringo fight,
But there might be a death in Mexico tonite.
...
Take my advice, take the next flight,
And grow some funk, grow your funk at home.
-- Elton John, "Grow Some Funk of Your Own"