Why are SIMD instructions not used in kernel?
问题 I couldn't find much use of SIMD instructions (like SSE/AVX) in kernel (except one place where they were used to speedup parity computation of RAID6). Q1) Any specific reason for this or just the lack of use-case? Q2) What needs to be done today if I want to use SIMD instruction, in say a device driver? Q3) How hard will it be to incorporate framework like ISPC into kernel (just for experimentation)? 回答1: Saving/restoring FPU (including SIMD vector registers) state is more expensive than just