Description of problem: 在支持向量指令的机器上进行fio测试性能出现劣化 4K随机读(IOPS)4K随机写(IOPS)4K随机读(BW)4K随机写(BW)4K随机读(Lat)4K随机写(Lat) 向量指令 507k 470k 2077MB/s 1925MB/s 62.95us 67.93us 非向量指令 535k 481k 2192MB/s 1968MB/s 59.63us 66.43us 从结果上看,修改为降级拷贝后,性能会有提升, RV-kernel 的 热点在fallback_scalar_usercopy向量拷贝性能差 Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 修改kernel的V_UCOPY_THRESHOLD门限,使所有的用户态拷贝走降级拷贝(标量)修改向量拷贝门限值为99999 2.使用fio测试4k随机读写 Actual results: Expected results: Additional info:
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/6248