Whamcloud - gitweb
LU-12988 ldiskfs: port ext4-mballoc-prefetch.patch to RHEL 8.1 11/37811/2
authorAlex Zhuravlev <bzzz@whamcloud.com>
Thu, 5 Mar 2020 23:36:32 +0000 (15:36 -0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 17 Mar 2020 03:40:26 +0000 (03:40 +0000)
commit896e12c2e4fc98cbc15c675ec2894e9511aa92a7
tree600567822a4edfc8e2547d815c69a199b744f630
parent4f94bcbfbc400e5f3e70133b126016f57f4dbc64
LU-12988 ldiskfs: port ext4-mballoc-prefetch.patch to RHEL 8.1

ext4: mballoc to prefetch groups ahead of scanning

Prefetching is done in 8 * flex_bg groups, so it should be 8 read-ahead
reads for a single allocating thread. At the end of allocation the
thread waits for read-ahead completion and initializes buddy information
so that read-aheads are not lost in case of memory pressure.

At cr=0 the number of prefetching IOs is limited per allocation context
to prevent a situation when mballoc loads thousands of bitmaps looking
for a perfect group and ignoring groups with good chunks.

Change-Id: I34e3e3dd604379fb65d711b620e8b30ae5b7df6e
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Lustre-bug-id: https://jira.whamcloud.com/browse/LU_12988
Reviewed-on: https://review.whamcloud.com/37811
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
ldiskfs/kernel_patches/patches/rhel8.1/ext4-mballoc-prefetch.patch [new file with mode: 0644]
ldiskfs/kernel_patches/series/ldiskfs-4.18-rhel8.1.series