Re: Optimized copy&move (was: Re: [PATCH] Mantaining turnstile aligne d to 128 bytes in i386 CPUs)



On Wed, 17 Jan 2007 14:41:44 -0500
Ivan Voras <ivoras@xxxxxx> wrote:

Bruce Evans wrote:

And MMX/XMM registers ar not needed to get movnt on machines with
SSE2,
since movnti is part of SSE2. This reduces the advantages of using
MMX/XMM
registers on P4's and A64's in 32-bit mode to the non-nt parts of the
above (fully cached case), which I think are less important than the
nt
parts.

Hmm, I'm looking at i386/i386/support.s and there are several versions
of bcopy and bmove functions, including some that optimize by using FPU
registers (large_i586_bcopy_loop), and a version that uses movnti
(sse2_pagezero), but I can't find the bit of magic which glues them to
bzero() call.

Also, as as I can tell by the comments, the FPU version works by
manually saving context... why is this possible (i.e. won't something
preempt it?)


Potentially stupid question but, is it not possible to benchmark these
variations at build or boot time and use the most appropriate method? Or
at least the one most appropriate 90% of the time?

Nick
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Optimized copy&move (was: Re: [PATCH] Mantaining turnstile aligne d to 128 bytes in i386 CPU
    ... SSE2, ... Hmm, I'm looking at i386/i386/support.s and there are several versions ... including some that optimize by using FPU ... variations at build or boot time and use the most appropriate method? ...
    (freebsd-current)
  • Re: Host ID.
    ... read hw_serial from the firmware at boot time ... and simply assert Sun is the hardware provider. ... Hmm. ... Solaris hostid for ??49. ...
    (freebsd-arch)
  • Re: Newbie questions...
    ... >> Hmm. ... Where does this get started from at boot time? ... This is installed as a service in the NT service manager ... > the contents of the bin directory to have the -r attribute which I don't ...
    (comp.security.ssh)
  • Re: My Service does not start automatically
    ... Hmm - OK. ... So it doesn't start automatically at boot time even though it's ... Are there any related entries in your EventLog? ... Does it maybe have dependencies on other services...? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Quellen =?ISO-8859-1?Q?f=FCr_astromische_Positions-_un?= =?ISO-8859-1?Q?d___
    ... halbwegs modernen Prozessoren die FPU *langsamer* als die CPU mit SSE2 ... Als ich das damals gemacht habe, war die FPU ganz sicher noch schneller als die CPU. ...
    (de.sci.astronomie)