Quota scalability patches
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest27 patches 3 repliesIn review
- v127 patches 26 repliesSuperseded
Changes in v2 from the cover letter
* Improvements from Andreas Dilger
* Added Andreas' Reviewed-by tags
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/27 | quota: Convert dqio_mutex to rwsemfs/ fs/ fs/ +4 more | +36 | 0 replies | |
| 2/27 | quota: Do more fine-grained locking in dquot_acquire()fs/ | +6 | 0 replies | |
| 3/27 | quota: Acquire dqio_sem for reading in dquot_get_next_id()fs/ | +2 | 0 replies | |
| 4/27 | quota: Acquire dqio_sem for reading in vfs_load_quota_inode()fs/ fs/ | +6 | 0 replies | |
| 5/27 | quota: Protect dquot writeout with dq_lockfs/ | +14 | 0 replies | |
| 6/27 | quota: Push dqio_sem down to ->read_dqblk()fs/ fs/ fs/ | +14 | 0 replies | |
| 7/27 | quota: Remove locking for reading from the old quota formatfs/ | +0 | 0 replies | |
| 8/27 | quota: Push dqio_sem down to ->write_dqblk()fs/ fs/ fs/ | +16 | 0 replies | |
| 9/27 | quota: Do not acquire dqio_sem for dquot overwrites in v2 formatfs/ | +14 | 0 replies | |
| 10/27 | quota: Remove locking for writing to the old quota formatfs/ | +0 | 0 replies | |
| 11/27 | quota: Push dqio_sem down to ->release_dqblk()fs/ fs/ | +10 | 0 replies | |
| 12/27 | quota: Push dqio_sem down to ->get_next_id()fs/ fs/ | +8 | 0 replies | |
| 13/27 | quota: Push dqio_sem down to ->write_file_info()fs/ fs/ fs/ +1 more | +13 | 0 replies | |
| 14/27 | quota: Push dqio_sem down to ->read_file_info()fs/ fs/ fs/ +1 more | +23 | 0 replies | |
| 15/27 | quota: Fix error codes in v2_read_file_info()fs/ | +3 | 0 replies | |
| 16/27 | quota: Propagate ->quota_read errors from v2_read_file_info()fs/ | +11 | 0 replies | |
| 17/27 | quota: Fix possible corruption of dqi_flagsfs/ fs/ | +10 | 0 replies | |
| 18/27 | quota: Do not dirty bad dquotsfs/ | +7 | 0 replies | |
| 19/27 | quota: Move locking into clear_dquot_dirty()fs/ | +6 | 0 replies | |
| 20/27 | quota: Remove dq_wait_unused from dquotfs/ include/ | +7 | 0 replies | |
| 21/27 | quota: Allow disabling tracking of dirty dquots in a listfs/ include/ | +9 | 0 replies | |
| 22/27 | ext4: Disable dirty list tracking of dquots when journalling quotasfs/ | +8 | 0 replies | |
| 23/27 | quota: Inline functions into their callsitesfs/ include/ | +28 | 0 replies | |
| 24/27 | quota: Inline inode_{incr,decr}_space() into callsitesfs/ | +28 | 0 replies | |
| 25/27 | quota: Inline dquot_[re]claim_reserved_space() into callsitefs/ | +16 | 0 replies | |
| 26/27 | fs: Provide __inode_get_bytes()fs/ include/ | +5 | 0 replies | |
| 27/27 | quota: Reduce contention on dq_data_lockfs/ fs/ fs/ +3 more | +186 | 0 replies |
Reviews trailers per patch
14 of 27 patches have a Reviewed-by or Acked-by.
| Patch | Andreas Dilger |
|---|---|
| 1/27 | |
| 2/27 | |
| 3/27 | R-b |
| 4/27 | R-b |
| 5/27 | R-b |
| 6/27 | R-b |
| 7/27 | R-b |
| 8/27 | R-b |
| 9/27 | R-b |
| 10/27 | R-b |
| 11/27 | R-b |
| 12/27 | R-b |
| 13/27 | R-b |
| 14/27 | R-b |
| 15/27 | R-b |
| 16/27 | |
| 17/27 | |
| 18/27 | |
| 19/27 | R-b |
| 20/27 | |
| 21/27 | |
| 22/27 | |
| 23/27 | |
| 24/27 | |
| 25/27 | |
| 26/27 | |
| 27/27 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/27 v2] Quota scalability patches
Hello,
this is a series of patches that address scalability issues in quota subsystem. For my testing I've used a synthetic benchmark where 50 different processes are creating files 10000 files each in separate directories (either for different or the same user). I've been testing on a machine with 48 CPUs with 64GB of RAM over either SATA drive or ramdisk. Different patches have shown improvements in different configs (see details in the changelog). Also Wang Shilong gave some testing to my patches and in his setup he saw about 100% improvement for file creation and about 50% improvement for file unlink.
The patches have passed xfstests on ext4.
First 14 patches convert users of a global dqio_mutex to rw semaphore and also avoid using the semaphore altogether in cases where we don't need it - in particular we now use dquot->dq_lock for protecting writeout of dquot (which happens very frequently on every usage change). Patches 15-18 are smaller fixes / cleanups. Patches 19-22 allow filesystem to not use dirty dquot list (as e.g. ext4 does not need it), reducing contention on global dq_list_lock significantly. Patches 23-27 remove use of global dq_data_lock for quota usage changes (by using new dquot->dq_dqb_lock).
Full series can be also fetched from my tree at:
git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git quota_scaling
Unless someone objects, I'll queue the patches in my tree for the next merge window.
Changes since v1:
* Improvements from Andreas Dilger
* Added Andreas' Reviewed-by tags
Honza