2 ms·
Fantastic article! Could the kernel restrict the AVX use to memcpy to/from user buffers & to use a different API so that it was clear at the syscall boundary w
by vlovich123 6y ago
Fantastic article!
Could the kernel restrict the AVX use to memcpy to/from user buffers & to use a different API so that it was clear at the syscall boundary when that save/restore would be needed (+ you could potentially restrict the number of AVX registers used)? That way it wouldn't have the concerns of replacing all memcpy operations within the kernel & would just focus on I/O operations from userspace.
Or is the space for potentially stashing away the AVX registers for each thread also a major concern rather than just the cost of doing so?