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

2012-06-24 Thread Bruce Evans
On Sat, 23 Jun 2012, Alexander Motin wrote: On 06/23/12 18:26, Bruce Evans wrote: On Sat, 23 Jun 2012, Konstantin Belousov wrote: On Sat, Jun 23, 2012 at 03:17:57PM +0200, Marius Strobl wrote: So apart from introducing code to constantly synchronize the TICK counters, using the timecounters

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

2012-06-23 Thread Marius Strobl
On Fri, Jun 22, 2012 at 10:48:17AM +0300, Konstantin Belousov wrote: On Fri, Jun 22, 2012 at 09:34:56AM +0200, Marius Strobl wrote: On Fri, Jun 22, 2012 at 07:13:31AM +, Konstantin Belousov wrote: Author: kib Date: Fri Jun 22 07:13:30 2012 New Revision: 237434 URL:

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

2012-06-23 Thread Konstantin Belousov
On Sat, Jun 23, 2012 at 03:17:57PM +0200, Marius Strobl wrote: On Fri, Jun 22, 2012 at 10:48:17AM +0300, Konstantin Belousov wrote: On Fri, Jun 22, 2012 at 09:34:56AM +0200, Marius Strobl wrote: On Fri, Jun 22, 2012 at 07:13:31AM +, Konstantin Belousov wrote: Author: kib Date:

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

2012-06-23 Thread Bruce Evans
On Sat, 23 Jun 2012, Konstantin Belousov wrote: On Sat, Jun 23, 2012 at 03:17:57PM +0200, Marius Strobl wrote: On Fri, Jun 22, 2012 at 10:48:17AM +0300, Konstantin Belousov wrote: On Fri, Jun 22, 2012 at 09:34:56AM +0200, Marius Strobl wrote: On Fri, Jun 22, 2012 at 07:13:31AM +,

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

2012-06-23 Thread Alexander Motin
On 06/23/12 18:26, Bruce Evans wrote: On Sat, 23 Jun 2012, Konstantin Belousov wrote: On Sat, Jun 23, 2012 at 03:17:57PM +0200, Marius Strobl wrote: So apart from introducing code to constantly synchronize the TICK counters, using the timecounters on the host busses also seems to be the only

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

2012-06-22 Thread Konstantin Belousov
Author: kib Date: Fri Jun 22 07:13:30 2012 New Revision: 237434 URL: http://svn.freebsd.org/changeset/base/237434 Log: Use struct vdso_timehands data to implement fast gettimeofday(2) and clock_gettime(2) functions if supported. The speedup seen in microbenchmarks is in range 4x-7x

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

2012-06-22 Thread Marius Strobl
On Fri, Jun 22, 2012 at 07:13:31AM +, Konstantin Belousov wrote: Author: kib Date: Fri Jun 22 07:13:30 2012 New Revision: 237434 URL: http://svn.freebsd.org/changeset/base/237434 Log: Use struct vdso_timehands data to implement fast gettimeofday(2) and clock_gettime(2) functions

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

2012-06-22 Thread Konstantin Belousov
On Fri, Jun 22, 2012 at 09:34:56AM +0200, Marius Strobl wrote: On Fri, Jun 22, 2012 at 07:13:31AM +, Konstantin Belousov wrote: Author: kib Date: Fri Jun 22 07:13:30 2012 New Revision: 237434 URL: http://svn.freebsd.org/changeset/base/237434 Log: Use struct vdso_timehands

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

2012-06-22 Thread David Chisnall
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

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

2012-06-22 Thread John Baldwin
On Friday, June 22, 2012 3:34:56 am Marius Strobl wrote: On Fri, Jun 22, 2012 at 07:13:31AM +, Konstantin Belousov wrote: Author: kib Date: Fri Jun 22 07:13:30 2012 New Revision: 237434 URL: http://svn.freebsd.org/changeset/base/237434 Log: Use struct vdso_timehands data to