内核版本:kernel-7.1.0 (commit: 322008f)
工具链:riscv64-lp64d--glibc--bleeding-edge-2025.08-1(gcc 15.1.0)
环境:k3单板,限制为8核
测试命令: run -c 8
修改arch/riscv/Makefile,riscv-march-y增加RVA23扩展,例如:
riscv-march-y :=$(riscv-march-y)_zicond_zbb_zcb_zihintntl
使用的扩展不包含额外的寄存器,因此可以在上下文保存中不用进行额外的修改。
使用unixbench测试数据如下:
| kernel |
|
|
|
|
|
avg |
compare with 7.1.0 |
| 7.1.0 |
1776.2 |
1770.1 |
1769.2 |
1767.6 |
1765.4 |
1769.7 |
- |
| 7.1.0-without-c |
1708.6 |
1705.9 |
1701.9 |
1703.7 |
1698.5 |
1703.7 |
-3% |
| 7.1.0 + zicond |
1777.8 |
1773.5 |
1773.1 |
1772.6 |
1769.7 |
1773.3 |
+0.2% |
| 7.1.0 + zicond+zba |
1772.9 |
1767.4 |
1768.1 |
1762.0 |
1765.1 |
1767.1 |
-0.14% |
| 7.1.0 + zicond+zbb |
1783.1 |
1777.7 |
1777.7 |
1776.3 |
1776.3 |
1778.2 |
+0.48% |
| 7.1.0 + zicond+zbb+zbc |
1756.9 |
1750.7 |
1749.2 |
1748.5 |
1747.5 |
1750.5 |
-1.1% |
| 7.1.0 + zicond+zbb+zbs |
1759.4 |
1756.6 |
1757.6 |
1756.5 |
1757.3 |
1757.5 |
-0.68% |
| 7.1.0 + zicond+zbb+zcb |
1777.2 |
1770.4 |
1770.8 |
1769.7 |
1769.4 |
1771.5 |
+0.1% |
内核版本:kernel-7.1.0 (commit: 322008f)
工具链:riscv64-lp64d--glibc--bleeding-edge-2025.08-1(gcc 15.1.0)
环境:k3单板,限制为8核
测试命令: run -c 8
修改arch/riscv/Makefile,riscv-march-y增加RVA23扩展,例如:
riscv-march-y :=$(riscv-march-y)_zicond_zbb_zcb_zihintntl
使用的扩展不包含额外的寄存器,因此可以在上下文保存中不用进行额外的修改。
使用unixbench测试数据如下: