Date: Sat, 5 Apr 2003 20:52:31 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: current@freebsd.org Cc: peter@freebsd.org Subject: Re: context switching pessimizations Message-ID: <20030405204940.L800@gamplex.bde.org> In-Reply-To: <20030405194620.I645@gamplex.bde.org> References: <20030405194620.I645@gamplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 5 Apr 2003, Bruce Evans wrote: > Recent optimizations of context switching are large pessimizations > according to lmbench2, at least in the default case (no LAZY_SWITCH). The ifdefs are just so convoluted that they are broken in the !LAZY_SWITCH case. %%% Index: swtch.s =================================================================== RCS file: /home/ncvs/src/sys/i386/i386/swtch.s,v retrieving revision 1.136 diff -u -2 -r1.136 swtch.s --- swtch.s 2 Apr 2003 23:53:28 -0000 1.136 +++ swtch.s 5 Apr 2003 10:40:20 -0000 @@ -175,4 +175,5 @@ #endif 1: +#endif movl %cr3,%ebx /* The same address space? */ cmpl %ebx,%eax @@ -182,6 +183,4 @@ je sw1 #endif -#endif - #ifdef SWTCH_OPTIM_STATS incl tlb_flush_count %%% Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030405204940.L800>