[LU-14912] client picking other checksum type over T10PI Created: 05/Aug/21 Updated: 17/May/22 Resolved: 25/Aug/21 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.15.0 |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Dongyang Li | Assignee: | Dongyang Li |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||||||
| Description |
|
When server indicates it supports T10 checksums, the client could still pick other check types over T10PI as the other types getting better numbers during client benchmark. |
| Comments |
| Comment by Andreas Dilger [ 08/Aug/21 ] |
|
T10-PI checksums were only added in 2.12, so I don't think it is reasonable for the server to return only a single t10crc4K checksum type, because this would break interoperability for 2.10.x clients. One option for selecting the proper T10-PI checksum type automatically on the client, is to detect if only a single OBD_CKSUM_T10* type is returned to the client, then this indicates the server has T10-PI enabled (otherwise it would return multiple OBD_CKSUM_T10* types), and it should prefer this over other checksum types. For example, on my test VM (no T10-PI support in the storage) it reports multiple t10* checksum types enabled: # lctl get_param osc.*.checksum_type osc.testfs-OST0000-osc-ffff9ac928b3d800.checksum_type= crc32 adler crc32c t10ip512 [t10ip4K] t10crc512 t10crc4K while on a client where T10-PI hardware support is enabled on the server the client reports: # lctl get_param osc.*.checksum_type osc.testfs-OST0000-osc-ffff9ac928b3d800.checksum_type= crc32 adler [crc32c] t10crc4K In this case, the client should prefer the single t10crc4K checksum type (if no type was specified) that matches the server hardware checksum type, even though crc32c may be somewhat faster. |
| Comment by Gerrit Updater [ 13/Aug/21 ] |
|
"Li Dongyang <dongyangli@ddn.com>" uploaded a new patch: https://review.whamcloud.com/44657 |
| Comment by Gerrit Updater [ 25/Aug/21 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44657/ |
| Comment by Peter Jones [ 25/Aug/21 ] |
|
Landed for 2.15 |