Re: svn commit: r237434 - in head/lib/libc: amd64/sys gen i386/s

看板FB_svn作者時間13年前 (2012/06/22 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/10 (看更多)
On 22 Jun 2012, at 08:34, Marius Strobl wrote: > I don't know much about x86 CPUs but is my understanding correct > that TSCs are not synchronized in any way across CPUs, i.e. > reading it on different CPUs may result in time going backwards > etc., which is okay for this application though? As long as the initial value is set on every context switch, it only = matters that the TSC is monotonic and increments at an approximately = constant rate. It is also possible to set the TSC value, but that's = less useful in this context. The one thing to be careful about is the fact that certain power saving = states will affect the speed at which the TSC increments, and so it is = important to update the ticks-per-second value whenever a core goes into = a low power state. This is more or less the same approach used by Xen, so most of the = issues have been ironed out: Oracle complained to CPU vendors about a = few corner cases and, because Oracle customers tend to buy a lot of = expensive Xeon and Opteron chips, they were fixed quite promptly. =20 David _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
文章代碼(AID): #1Fv2s2s4 (FB_svn)
討論串 (同標題文章)
完整討論串 (本文為第 3 之 10 篇):
文章代碼(AID): #1Fv2s2s4 (FB_svn)