Saving and restoring the CPU's architectural state, particularly large register sets like AVX-512, represents a direct and significant cost during a kernel context switch. This process involves copying over 2 KiB of data for AVX-512 states to and from memory (Process Control Block), consuming thousands of CPU cycles for each switch.