lkml.org 
[lkml]   [1997]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: MMX for kernel
Date
Jason Flynn  <flynnjs@mobile-systems.bt.co.uk> wrote:
> isn't it the process of clearing the registers (cos MMX and FPU
> use the sam ones) and clearing the pipeline that takes these cycles ?
> And surely this would be done anyway during task switching so
> the only extra overhead is if you mix types within one task.

If the active task uses FPU registers, you have to save and restore
the FPU state (unless you are sure the FPU is clear, but this can't be
assured in the kernel). This alone takes really many cycles, at least
174 of them in the best case (all cache hits), not even counting mode
switches, clearing etc.

Don't even think of using MMX in an interrupt routine, e.g. for
calculating IP checksums. The overhead is too high.

olaf
--
___ Olaf.Titz@inka.de or @{stud,informatik}.uni-karlsruhe.de ____
__ o <URL:http://www.inka.de/~bigred/> <IRC:praetorius>
__/<_ >> Just as long as the wheels keep on turning round
_)>(_)______________ I will live for the groove 'til the sun goes down << ____

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.049 / U:0.844 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site