From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <1203fd06e0a13df9c23d4a5e1ac1aad0@ladd.quanstro.net> References: <1203fd06e0a13df9c23d4a5e1ac1aad0@ladd.quanstro.net> Date: Tue, 20 May 2014 10:47:28 -0400 Message-ID: From: "Devon H. O'Dell" To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] waitfree Topicbox-Message-UUID: ea0bf812-ead8-11e9-9d60-3106f5b1d025 2014-05-19 22:12 GMT-04:00 erik quanstrom : > i get a 126% difference executing lock xadd 1024*1024 times > with no branches using cores 4-7 of a xeon e3-1230. i'm sure it would > be quite a bit more impressive if it were a bit easier to turn the timer > interrupt off. Dunno what to say. I'm not trying this on Plan 9, and I can't reproduce your results on an i7 or an e5-2690. I'm certainly not claiming that all pipelines, processors, and caches are equal, but I've simply never seen this behavior. I also can't think of an application in which one would want to execute a million consecutive LOCK-prefixed instructions. Perhaps I just lack imagination. --dho > i really wish i had a four package system to play with right now. that > could yield some really fun numbers. :-) > > - erik > > example run. output core/cycles. > ; 6.lxac > 4 152880511 > 7 288660939 > 6 320991900 > 5 338755451 > >