[LU-12043] improve Lustre single thread read performances Created: 05/Mar/19 Updated: 29/Jan/22 Resolved: 20/Apr/20 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.14.0 |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Wang Shilong (Inactive) | Assignee: | Wang Shilong (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | LTS12 | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||||||||||||||||||||||
| Description |
|
There are several efforts here and there which try to improve the performances of single this ticket is opened to track a simple enough patch to improve the performances as much Here is whole history: Currently, for sequential read IO, We grow up window dd if=/mnt/lustre/file of=/dev/null bs=1M We will do something like following: In this way, we could only use fast IO for 16M bytes and Actually, we could do this better, if we have used Without patch VS Patched: So we could gain at least 50% performance up, i supposed |
| Comments |
| Comment by Wang Shilong (Inactive) [ 05/Mar/19 ] |
|
Patch is here. |
| Comment by Wang Shilong (Inactive) [ 06/Mar/19 ] |
|
some performances numbers: We could get more than 3GB/s using default 64M redahead size. So it is 100% performances up compared to without patch for the peak numbers. |
| Comment by Shuichi Ihara [ 10/Mar/19 ] |
|
Here is test resutls with/without patch. Enviroment 1 x Client(1 x Platinum 8160 CPU @ 2.10GHz, 96GB DDR4 2667MHz memory, 1 x EDR Infiniband) Mellanox OFED-4.5 CentOS7.6 (3.10.0-957.el7.x86_64) 1 x SFA200NVE(20 x NVMe) for OSS/OST Test steps # lctl set_param osc.*.max_pages_per_rpc=16M osc.*.max_rpcs_in_flight=16 osc.*.max_dirty_mb=512 llite.*.max_read_ahead_mb=2048 llite.*.max_read_ahead_per_file_mb=512 # mkdir /cache1/dir # mkdir /cache1/sdir # lfs setstripe -c -1 -S 16M /cache1/sdir # mpirun -np 96 ior -w -t 1m -b 8g -e -vv -o /cache1/sdir/file -k # mpirun -np 96 ior -w -t 1m -b 8g -e -vv -F -o /cache1/dir/file -k -F # pdsh -w es400nv-vm[1-4],s184 "echo 3 > /proc/sys/vm/drop_caches" # mpirun -np 1 ior -r -t 1m -b 768g -e -vv -o /cache1/sdir/file -k # pdsh -w es400nv-vm[1-4],s184 "echo 3 > /proc/sys/vm/drop_caches" # mpirun -np 96 ior -r -t 1m -b 8g -e -vv -o /cache1/dir/file -k -F NOTE: chnage np value to 1, 24, 48 and 96. also transfer size is also teated with 4k and 1m. Test results NP TYPE IOSIZE master(MB/s) master+patch-34095(MB/s) 1 SSF 4KB 1038 1618 <--- +60% 24 SSF 4KB 3134 2931 48 SSF 4KB 3020 2907 96 SSF 4KB 2746 2842 1 SSF 1MB 1577 3040 <--- +100% 24 SSF 1MB 3285 3065 48 SSF 1MB 3124 3053 96 SSF 1MB 2820 2973 24 FPP 4KB 6496 7468 48 FPP 4KB 8306 8320 96 FPP 4KB 8365 9897 24 FPP 1MB 7744 7548 48 FPP 1MB 8874 8880 96 FPP 1MB 9907 9477 NOTE: multiple thread tests are just making sure no regression. |
| Comment by Wang Shilong (Inactive) [ 11/Mar/19 ] |
|
Thanks for Ihara's testing results! |
| Comment by James A Simmons [ 19/Mar/19 ] |
|
Peter I was talking to Wang about making this code CPT aware to limit noise on the client nodes. The question is do I create the patch for this under this ticket or create a new ticket? |
| Comment by Peter Jones [ 20/Mar/19 ] |
|
James I suggest a new ticket linked to this one - it'll be easiest to track that way Peter |
| Comment by Gerrit Updater [ 05/Apr/19 ] |
|
Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/34602 |
| Comment by Gerrit Updater [ 24/Apr/19 ] |
|
Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/34755 |
| Comment by Gerrit Updater [ 30/Apr/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34602/ |
| Comment by Gerrit Updater [ 04/May/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34755/ |
| Comment by Gerrit Updater [ 10/May/19 ] |
|
Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34849 |
| Comment by Gerrit Updater [ 02/Jun/19 ] |
|
Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/35033 |
| Comment by Gerrit Updater [ 13/Jun/19 ] |
|
Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/35215 |
| Comment by Gerrit Updater [ 13/Jun/19 ] |
|
Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/35216 |
| Comment by Gerrit Updater [ 13/Jun/19 ] |
|
Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/35217 |
| Comment by Gerrit Updater [ 25/Jun/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35033/ |
| Comment by Gerrit Updater [ 25/Jun/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34095/ |
| Comment by Gerrit Updater [ 07/Jul/19 ] |
|
Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/35438 |
| Comment by Gerrit Updater [ 17/Jul/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35215/ |
| Comment by Gerrit Updater [ 18/Jul/19 ] |
|
Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35559 |
| Comment by Gerrit Updater [ 21/Aug/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35216/ |
| Comment by Patrick Farrell (Inactive) [ 09/Sep/19 ] |
|
Are there any patches still not landed under this ticket, wshilong ? |
| Comment by Wang Shilong (Inactive) [ 10/Sep/19 ] |
|
Yup, still two patches not landed yet. https://review.whamcloud.com/35217 https://review.whamcloud.com/35438 I think second one will be landed soon, while the first one need be some refreshed. |
| Comment by Gerrit Updater [ 16/Sep/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35438/ |
| Comment by Gerrit Updater [ 21/Nov/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35559/ |
| Comment by Gerrit Updater [ 19/Feb/20 ] |
|
Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37620 |
| Comment by Gerrit Updater [ 01/Mar/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34849/ |
| Comment by Wang Shilong (Inactive) [ 20/Apr/20 ] |
|
All patches has been merged. |
| Comment by Gerrit Updater [ 23/Apr/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35217/ |