[LU-9618] Connect readahead to prep_partial_page to improve small (< 1 page) write performance Created: 07/Jun/17 Updated: 30/Aug/19 Resolved: 20/Jan/18 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.11.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Patrick Farrell (Inactive) | Assignee: | Patrick Farrell (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | patch | ||
| Issue Links: |
|
||||||||||||||||
| Severity: | 3 | ||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||
| Description |
|
When writing to a region of a file less than file size (either an already existing file or a shared file with multiple writers), writes of less than one page in size must first read in that page. This results in extremely poor performance. For the random I/O case, there's no easy improvements available, but the sequential case can benefit enormously by using readahead to bring in those pages. This can be done by using the normal read code w/readahead from the ll_prepare_partial_page function. This works well in the sequential case (3-10x performance improvement) and has no effect on the random case. Patch & benchmark #s forthcoming shortly. |
| Comments |
| Comment by Gerrit Updater [ 09/Jun/17 ] |
|
Patrick Farrell (paf@cray.com) uploaded a new patch: https://review.whamcloud.com/27544 |
| Comment by Gerrit Updater [ 20/Jan/18 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/27544/ |
| Comment by Peter Jones [ 20/Jan/18 ] |
|
Patrick As you will have seen this has landed to master. I saw your most recent musings in gerrit and wondered if you are ok with this or would prefer this reverted while you think some more? Peter |
| Comment by Patrick Farrell (Inactive) [ 20/Jan/18 ] |
|
Ah, no, it's fine. It's just a little complicated - Does that make sense? It's probably on Dmitry to fix it as part of landing Short version: |
| Comment by Peter Jones [ 20/Jan/18 ] |
|
ok sounds good. Your review of the |
| Comment by Gerrit Updater [ 25/Jan/18 ] |
|
Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/31012 |