2 ms·
> It'd cost very very little: adding a few instructions to each context switch, and some members to task_struct. RDPMC is fast. WRMSR is amazingly slow. Put
by amluto 10y ago
> It'd cost very very little: adding a few instructions to each context switch, and some members to task_struct.
RDPMC is fast. WRMSR is amazingly slow.
Put another way, when you're using WRMSR, your IPC (CPU usage?) might be around .002.