nfs41: allow layoutget at pnfs_do_multiple_writes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 41 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | nfsv41: export pnfs_find_alloc_layoutfs/ fs/ | +6 | 0 replies | |
| 2/4 | nfsv41: add and export pnfs_find_get_layout_lockedfs/ fs/ | +30 | 0 replies | |
| 3/4 | nfsv41: get lseg before issue LD IO if pgio doesn't carry lsegfs/ | +46 | 2 replies | |
| 4/4 | pnfsblock: do ask for layout in pg_initfs/ | +52 | 4 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] nfs41: allow layoutget at pnfs_do_multiple_writes
Issuing layoutget at .pg_init will drop the IO size information and ask for 4KB layout every time. However, the IO size information is very valuable for MDS to determine how much layout it should return to client.
The patchset try to allow LD not to send layoutget at .pg_init but instead at pnfs_do_multiple_writes. So that real IO size is preserved and sent to MDS.
Tests against a server that does not aggressively pre-allocate layout, shows that the IO size informantion is really useful to block layout MDS.
The generic pnfs layer changes are trival to file layout and object as long as they still send layoutget at .pg_init.
iozone cmd:
./iozone -r 1m -s 4G -w -W -c -t 10 -i 0 -F /mnt/iozone.data.1 /mnt/iozone.data.2 /mnt/iozone.data.3 /mnt/iozone.data.4 /mnt/iozone.data.5 /mnt/iozone.data.6 /mnt/iozone.data.7 /mnt/iozone.data.8 /mnt/iozone.data.9 /mnt/iozone.data.10
Befor patch: around 12MB/s throughput
After patch: around 72MB/s throughput
Peng Tao (4):
nfsv41: export pnfs_find_alloc_layout
nfsv41: add and export pnfs_find_get_layout_locked
nfsv41: get lseg before issue LD IO if pgio doesn't carry lseg
pnfsblock: do ask for layout in pg_init
fs/nfs/blocklayout/blocklayout.c | 54 ++++++++++++++++++++++++++- fs/nfs/pnfs.c | 74 +++++++++++++++++++++++++++++++++++++- fs/nfs/pnfs.h | 9 +++++ 3 files changed, 134 insertions(+), 3 deletions(-)