diff options
| author | Christoph Hellwig <hch@lst.de> | 2025-10-17 05:55:41 +0200 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2025-10-21 11:32:50 +0200 |
| commit | ca3d643a970139f5456f90dd555a0955752d70cb (patch) | |
| tree | afff7d0607e0a40f3a340de0c2d972afcf04e27c /tools/docs/parse-headers.py | |
| parent | a8c861f401b4b2f8feda282abff929fa91c1f73a (diff) | |
xfs: cache open zone in inode->i_private
The MRU cache for open zones is unfortunately still not ideal, as it can
time out pretty easily when doing heavy I/O to hard disks using up most
or all open zones. One option would be to just increase the timeout,
but while looking into that I realized we're just better off caching it
indefinitely as there is no real downside to that once we don't hold a
reference to the cache open zone.
So switch the open zone to RCU freeing, and then stash the last used
open zone into inode->i_private. This helps to significantly reduce
fragmentation by keeping I/O localized to zones for workloads that
write using many open files to HDD.
Fixes: 4e4d52075577 ("xfs: add the zoned space allocator")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Tested-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'tools/docs/parse-headers.py')
0 files changed, 0 insertions, 0 deletions
