[LU-15092] Fix logic for unaligned transfer with o2iblnd Created: 12/Oct/21 Updated: 23/Jan/23 Resolved: 20/Nov/21 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.15.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Chris Horn | Assignee: | Chris Horn |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
It's possible for there to be an offset for the first page of a The first is that this use-case will require LNET_MAX_IOV + 1 local The second issue is that the logic in kiblnd_setup_rd_iov() and |
| Comments |
| Comment by Gerrit Updater [ 12/Oct/21 ] |
|
"Chris Horn <chris.horn@hpe.com>" uploaded a new patch: https://review.whamcloud.com/45216 |
| Comment by Gerrit Updater [ 20/Nov/21 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45216/ |
| Comment by Peter Jones [ 20/Nov/21 ] |
|
Landed for 2.15 |
| Comment by Andreas Dilger [ 04/Feb/22 ] |
|
Chris, Sereguei, For example, if an application allocates a 1MB buffer in userspace today with glibc malloc(), it is only guaranteed to be aligned on the word size (i.e. 8 bytes). If the client tries to write this unaligned 1MB buffer to a 1MB file-aligned offset, the kernel has to copy all of the data into aligned kernel page cache and then send those page cache pages to LNet for RDMA. It would be ideal for large read/write operations if the client LNet could RDMA the unaligned userspace buffer directly into aligned server pages with O_DIRECT, but I don't know if this is a capability that LNet and/or IB/RoCE have, or they require the source/target page alignment to be the same? If this isn't possible, that is totally fine, and we are looking into other solutions to improve performance here, but when I saw this patch recently I just wanted to make sure that there isn't some easy "of course the data does not need to be page aligned" solution that we are missing. |
| Comment by Patrick Farrell [ 04/Feb/22 ] |
|
I actually asked the same question - not stated as clearly - on https://jira.whamcloud.com/browse/LU-13805 |
| Comment by Patrick Farrell [ 04/Feb/22 ] |
|
ashehata , just FYI, Andreas' most recent comment is a much clearer statement of my question. |