Reduce zonefs memory usage
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | zonefs: Detect append writes at invalid locationsfs/ | +22 | 5 replies | |
| 2/7 | zonefs: Reorganize codefs/ fs/ fs/ +1 more | +955 | 1 reply | |
| 3/7 | zonefs: Simplify IO error handlingfs/ fs/ | +64 | 1 reply | |
| 4/7 | zonefs: Reduce struct zonefs_inode_info sizefs/ fs/ fs/ | +42 | 1 reply | |
| 5/7 | zonefs: Separate zone information from inode informationfs/ fs/ fs/ +1 more | +449 | 1 reply | |
| 6/7 | zonefs: Dynamically create file inodes when neededfs/ fs/ | +257 | 2 replies | |
| 7/7 | zonefs: Cache zone group directory inodesfs/ fs/ | +49 | 1 reply |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Johannes Thumshirn |
|---|---|
| 1/7 | R-b |
| 2/7 | R-b |
| 3/7 | R-b |
| 4/7 | R-b |
| 5/7 | R-b |
| 6/7 | R-b |
| 7/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/7] Reduce zonefs memory usage
This series improves memory usage by switching to using dynamically allocated inodes and dentries, similarly to regular file systems. This drastically reduces the memory consumption of zonefs when the file system is mounted. E.g., for a 26 TB SMR HDD with over 95000 zones, memory usage is decreased from about 130 MB down to a little over 5 MB.
Since zonefs does not have persistent metadata of its own and relies completely on the device zone state management, information such as the zone write pointer position (used to determine an inode size) is kept in memory at all time, even when an inode is evicted from the inode cache. Dentries can be trivially searched for and created dynamically as needed due to the static file tree structure of a zonefs volume (fully determined by a zoned device zone configuration).
The patch series is organized as follows. Patch 1 fixes a problem with synchronous write error detection and error recovery. Patch 2 reorganizes the code (splitting out file operation code into a new file) and patch 3 simplifies the IO error recovery code. Patch 4 and 5 cleanup inode zone information and split that information out of the zonefs inode structure. Finally, Patch 6 implements dynamic inode and dentry allocation and maanagement operations. Ptch 7 introduces a small optimization to reduce file open latency.
Damien Le Moal (7):
zonefs: Detect append writes at invalid locations
zonefs: Reorganize code
zonefs: Simplify IO error handling
zonefs: Reduce struct zonefs_inode_info size
zonefs: Separate zone information from inode information
zonefs: Dynamically create file inodes when needed
zonefs: Cache zone group directory inodes
fs/zonefs/Makefile | 2 +- fs/zonefs/file.c | 878 ++++++++++++++++++++ fs/zonefs/super.c | 1923 ++++++++++++++++---------------------------- fs/zonefs/trace.h | 20 +- fs/zonefs/zonefs.h | 110 ++- 5 files changed, 1684 insertions(+), 1249 deletions(-) create mode 100644 fs/zonefs/file.c
Signature · 1 line
2.39.0