Date: Tue, 23 Nov 1999 10:23:24 -0800 (PST) From: Matthew Dillon <dillon@apollo.backplane.com> To: Peter Wemm <peter@netplex.com.au>, Tommy Hallgren <thallgren@yahoo.com>, freebsd-smp@FreeBSD.ORG Subject: Re: Found it ... Re: Matt's new unlock optimiazation Message-ID: <199911231823.KAA10338@apollo.backplane.com> References: <19991123140128.3A7D41C6D@overcee.netplex.com.au> <199911231703.JAA09896@apollo.backplane.com> <199911231751.JAA10135@apollo.backplane.com> <199911231819.KAA10294@apollo.backplane.com>
next in thread | previous in thread | raw e-mail | index | archive | help
: All we need is a serializing instruction. CPUID will do the trick, but : actually doing a locked instruction on private memory (verses shared : memory) is going to be faster. : with cpuid XXXXXXXX ns <--- change to 13 : lock/private 47 ns (same with or without segment override) : lock/shared 160 ns (with cpu contention) Oops, correction. cpuid is fastest -- 13 ns. I had mistakenly turned on two of the tests in the assembly. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911231823.KAA10338>