== sanity test 255a: check 'lfs ladvise -a willread' ===== 17:48:21 (1778536101) 100+0 records in 100+0 records out 104857600 bytes (105 MB, 100 MiB) copied, 0.665632 s, 158 MB/s ladvise: range [2, 1] is invalid Provide servers with advice about access patterns for a file. usage: ladvise [--advice|-a ADVICE] [--start|-s START[kMGT]] [--background|-b] [--unset|-u] {--end|-e END[kMGT]|--length|-l LENGTH[kMGT]} {[--mode|-m [READ,WRITE]} ... ladvise: range [2, 2] is invalid Provide servers with advice about access patterns for a file. usage: ladvise [--advice|-a ADVICE] [--start|-s START[kMGT]] [--background|-b] [--unset|-u] {--end|-e END[kMGT]|--length|-l LENGTH[kMGT]} {[--mode|-m [READ,WRITE]} ... ladvise: conflicting arguments of -l and -e Provide servers with advice about access patterns for a file. usage: ladvise [--advice|-a ADVICE] [--start|-s START[kMGT]] [--background|-b] [--unset|-u] {--end|-e END[kMGT]|--length|-l LENGTH[kMGT]} {[--mode|-m [READ,WRITE]} ... Synchronous ladvise should wait fail_val=4 fail_loc=0x237 Asynchronous ladvise shouldn't wait fail_loc=0 Iter 1/10: reading without willread hint Iter 1/10: uncached speed: 4.2796 Iter 1/10: OSS cache speed: 4.47091 Iter 1/10: ladvise speed: 4.23111 Iter 2/10: reading without willread hint Iter 2/10: uncached speed: 4.23631 Iter 2/10: OSS cache speed: 4.46481 Iter 2/10: ladvise speed: 4.38524 Iter 3/10: reading without willread hint Iter 3/10: uncached speed: 4.48769 Iter 3/10: OSS cache speed: 4.56834 Iter 3/10: ladvise speed: 4.89519 Iter 4/10: reading without willread hint Iter 4/10: uncached speed: 3.56054 Iter 4/10: OSS cache speed: 1.21275 Iter 4/10: ladvise speed: 0.696858 Iter 5/10: reading without willread hint Iter 5/10: uncached speed: 0.81979 Iter 5/10: OSS cache speed: 0.869296 Iter 5/10: ladvise speed: 0.838141 Iter 6/10: reading without willread hint Iter 6/10: uncached speed: 0.811411 Iter 6/10: OSS cache speed: 0.846632 Iter 6/10: ladvise speed: 0.789909 Iter 7/10: reading without willread hint Iter 7/10: uncached speed: 0.75377 Iter 7/10: OSS cache speed: 0.792477 Iter 7/10: ladvise speed: 0.861619 Iter 8/10: reading without willread hint Iter 8/10: uncached speed: 0.974426 Iter 8/10: OSS cache speed: 0.937831 Iter 8/10: ladvise speed: 0.928276 Iter 9/10: reading without willread hint Iter 9/10: uncached speed: 0.99072 Iter 9/10: OSS cache speed: 1.13156 Iter 9/10: ladvise speed: 1.14488 Iter 10/10: reading without willread hint Iter 10/10: uncached speed: 1.24623 Iter 10/10: OSS cache speed: 1.2758 Iter 10/10: ladvise speed: 1.18186 Average uncached read: 2.21 Average speedup with OSS cached read: 2.05 = +-7.23% Average speedup with ladvise willread: 1.99 = +-9.95% Speedup with OSS cached read less than 20%, got 2.05%. Skipping ladvise willread check.