Hi, > Hi, > > > Wang Yugui has a workload which would be improved by using large folios. > > Until now, we've only created large folios in the readahead path, > > but this workload writes without reading. The decision of what size > > folio to create is based purely on the size of the write() call (unlike > > readahead where we keep history and can choose to create larger folios > > based on that history even if individual reads are small). > > > > The third patch looks like it's an optional extra but is actually needed > > for the first two patches to work in the write path, otherwise it limits > > the length that iomap_get_folio() sees to PAGE_SIZE. > > > > Matthew Wilcox (Oracle) (3): > > filemap: Allow __filemap_get_folio to allocate large folios > > iomap: Create large folios in the buffered write path > > iomap: Copy larger chunks from userspace > > The [PATCH 2/3] is a little difficult to backport to 6.1.y(LTS), > it need some patches as depency. > > so please provide those patches based on 6.1.y(LTS) and depency list? > then we can do more test on 6.1.y(LTS) too. I selected 8 patches as depency d7b64041164c :Dave Chinner: iomap: write iomap validity checks 7a70a5085ed0 :Andreas Gruenbacher: iomap: Add __iomap_put_folio helper 80baab88bb93 :Andreas Gruenbacher: iomap/gfs2: Unlock and put folio in page_done handler 40405dddd98a :Andreas Gruenbacher: iomap: Rename page_done handler to put_folio 98321b5139f9 :Andreas Gruenbacher: iomap: Add iomap_get_folio helper 9060bc4d3aca :Andreas Gruenbacher: iomap/gfs2: Get page in page_prepare handler 07c22b56685d :Andreas Gruenbacher: iomap: Add __iomap_get_folio helper c82abc239464 :Andreas Gruenbacher: iomap: Rename page_prepare handler to get_folio then rebased path 1, 2 ( see attachment files). Now we can test patch 1,2,3 on 5.1.31. Best Regards Wang Yugui (wangyugui@xxxxxxxxxxxx) 2023/05/31
Attachment:
0001-filemap-Allow-__filemap_get_folio-to-allocate-large-.patch
Description: Binary data
Attachment:
0002-iomap-Create-large-folios-in-the-buffered-write-path.patch
Description: Binary data