Re: svn commit: r335753 - head/sbin/devd [ broke the ci.freebsd.org FreeBSD-head-{mips,mip64,powerpcpowerpc64,powerpcspe,sparc64}-build ]

2018-06-27 Thread Mark Millard
[I used the wrong Email address the first time.] On 2018-Jun-27, at 6:31 PM, Warner Losh wrote: > > > > On Wed, Jun 27, 2018, 7:27 PM Mark Millard wrote: > These are the gcc/g++ 4.2.1 based targets. > > For example . . . > >

Re: svn commit: r335753 - head/sbin/devd [ broke the ci.freebsd.org FreeBSD-head-{mips,mip64,powerpcpowerpc64,powerpcspe,sparc64}-build ]

2018-06-27 Thread Warner Losh
On Wed, Jun 27, 2018, 7:27 PM Mark Millard wrote: > These are the gcc/g++ 4.2.1 based targets. > > For example . . . > > https://ci.freebsd.org/job/FreeBSD-head-powerpc64-build/6261/consoleText > > --- all_subdir_sbin/devd --- > /usr/src/sbin/devd/devd.cc: In member function 'std::string >

Re: Build updates [ ci.freebsd.org FreeBSD-head-{aarch64, armv7, armv6}-build failures as of, for example -r335711 and -r335713 ]

2018-06-27 Thread Bryan Drewery
On 6/27/2018 11:58 AM, Bryan Drewery wrote: > On 6/27/2018 11:44 AM, Bryan Drewery wrote: >> On 6/27/2018 10:53 AM, Mark Millard wrote: >>> On 2018-Jun-27, at 10:01 AM, Bryan Drewery wrote: As of r335704: - make tinderbox/universe will now build the bootstrap clang

Re: Build updates [ ci.freebsd.org FreeBSD-head-{aarch64, armv7, armv6}-build failures as of, for example -r335711 and -r335713 ]

2018-06-27 Thread Bryan Drewery
On 6/27/2018 11:44 AM, Bryan Drewery wrote: > On 6/27/2018 10:53 AM, Mark Millard wrote: >> >>> On 2018-Jun-27, at 10:01 AM, Bryan Drewery wrote: >>> >>> As of r335704: >>> >>> - make tinderbox/universe will now build the bootstrap clang *once*. >>> Each target clang is still build of course.

Re: TSC calibration in virtual machines

2018-06-27 Thread Ian Lepore
On Wed, 2018-06-27 at 10:05 -0700, Rodney W. Grimes wrote: > > > > On Wed, Jun 27, 2018 at 10:36 AM, Jung-uk Kim > > wrote: > > > > > > > > On 06/27/2018 03:14, Andriy Gapon wrote: > > > > > > > > > > > > It seems that TSC calibration in virtual machines sometimes can > > > > do more > > >

Re: Build updates [ ci.freebsd.org FreeBSD-head-{aarch64, armv7, armv6}-build failures as of, for example -r335711 and -r335713 ]

2018-06-27 Thread Bryan Drewery
On 6/27/2018 10:53 AM, Mark Millard wrote: > >> On 2018-Jun-27, at 10:01 AM, Bryan Drewery wrote: >> >> As of r335704: >> >> - make tinderbox/universe will now build the bootstrap clang *once*. >> Each target clang is still build of course. This support does not work >> with gcc. >> - make

Re: Build updates [ ci.freebsd.org FreeBSD-head-{aarch64, armv7, armv6}-build failures as of, for example -r335711 and -r335713 ]

2018-06-27 Thread Mark Millard
> On 2018-Jun-27, at 10:01 AM, Bryan Drewery wrote: > > As of r335704: > > - make tinderbox/universe will now build the bootstrap clang *once*. > Each target clang is still build of course. This support does not work > with gcc. > - make buildworld (kernel-toolchain and toolchain) will build

Re: TSC calibration in virtual machines

2018-06-27 Thread Stephen J. Kiernan
On Wed, Jun 27, 2018, 12:48 PM Alan Somers wrote: > On Wed, Jun 27, 2018 at 10:36 AM, Jung-uk Kim wrote: > > > On 06/27/2018 03:14, Andriy Gapon wrote: > > > > > > It seems that TSC calibration in virtual machines sometimes can do more > > harm > > > than good. Should we default to trusting

Re: TSC calibration in virtual machines

2018-06-27 Thread Jung-uk Kim
On 06/27/2018 13:05, Rodney W. Grimes wrote: > There are several white papers, including one from VMWare about what > they have done to help with the time keeping problems. https://www.vmware.com/files/pdf/techpaper/Timekeeping-In-VirtualMachines.pdf Jung-uk Kim signature.asc Description:

Re: TSC calibration in virtual machines

2018-06-27 Thread Rodney W. Grimes
> On Wed, Jun 27, 2018 at 10:36 AM, Jung-uk Kim wrote: > > > On 06/27/2018 03:14, Andriy Gapon wrote: > > > > > > It seems that TSC calibration in virtual machines sometimes can do more > > harm > > > than good. Should we default to trusting the information provided by a > > hypervisor? > > > >

Re: TSC calibration in virtual machines

2018-06-27 Thread Jung-uk Kim
On 06/27/2018 13:01, Ryan Stone wrote: > I would guess that the calibration can fail because when running under > the hypervisor, the FreeBSD guest code can be descheduled at the wrong > time. As I recall, the current algorithm looks like: > > 1. Sample rdtsc > 2. Use a fixed-frequency timer to

Re: TSC calibration in virtual machines

2018-06-27 Thread Ryan Stone
I would guess that the calibration can fail because when running under the hypervisor, the FreeBSD guest code can be descheduled at the wrong time. As I recall, the current algorithm looks like: 1. Sample rdtsc 2. Use a fixed-frequency timer to busy-wait for exactly 1 second 3. Sample rdtsc

Re: TSC calibration in virtual machines

2018-06-27 Thread Alan Somers
On Wed, Jun 27, 2018 at 11:05 AM, Jung-uk Kim wrote: > On 06/27/2018 12:47, Alan Somers wrote: > > On Wed, Jun 27, 2018 at 10:36 AM, Jung-uk Kim > > wrote: > > > > On 06/27/2018 03:14, Andriy Gapon wrote: > > > > > > It seems that TSC calibration in virtual

Re: TSC calibration in virtual machines

2018-06-27 Thread Jung-uk Kim
On 06/27/2018 12:47, Alan Somers wrote: > On Wed, Jun 27, 2018 at 10:36 AM, Jung-uk Kim > wrote: > > On 06/27/2018 03:14, Andriy Gapon wrote: > > > > It seems that TSC calibration in virtual machines sometimes can do more > harm > > than good.  Should

Build updates

2018-06-27 Thread Bryan Drewery
As of r335704: - make tinderbox/universe will now build the bootstrap clang *once*. Each target clang is still build of course. This support does not work with gcc. - make buildworld (kernel-toolchain and toolchain) will build the bootstrap clang (if needed per SYSTEM_COMPILER logic) with only

Re: TSC calibration in virtual machines

2018-06-27 Thread Alan Somers
On Wed, Jun 27, 2018 at 10:36 AM, Jung-uk Kim wrote: > On 06/27/2018 03:14, Andriy Gapon wrote: > > > > It seems that TSC calibration in virtual machines sometimes can do more > harm > > than good. Should we default to trusting the information provided by a > hypervisor? > > > > Specifically, I

Re: TSC calibration in virtual machines

2018-06-27 Thread Jung-uk Kim
On 06/27/2018 03:14, Andriy Gapon wrote: > > It seems that TSC calibration in virtual machines sometimes can do more harm > than good. Should we default to trusting the information provided by a > hypervisor? > > Specifically, I am observing a problem on GCE instances where calibrated TSC >

Re: TSC calibration in virtual machines

2018-06-27 Thread John Baldwin
On 6/27/18 12:14 AM, Andriy Gapon wrote: > > It seems that TSC calibration in virtual machines sometimes can do more harm > than good. Should we default to trusting the information provided by a > hypervisor? > > Specifically, I am observing a problem on GCE instances where calibrated TSC >

Re: swapping is completely broken in -CURRENT r334649?

2018-06-27 Thread Mark Johnston
On Wed, Jun 27, 2018 at 10:46:38AM +, Alexey Dokuchaev wrote: > On Fri, Jun 15, 2018 at 04:40:22AM -0400, Mark Johnston wrote: > > ... > > The change was committed as r334752. Are you seeing unexpected OOM > > kills on or after that revision? > > I've just discovered this thread. I've

Re: swapping is completely broken in -CURRENT r334649?

2018-06-27 Thread Alexey Dokuchaev
On Fri, Jun 15, 2018 at 04:40:22AM -0400, Mark Johnston wrote: > ... > The change was committed as r334752. Are you seeing unexpected OOM > kills on or after that revision? I've just discovered this thread. I've updated my -CURRENT desktop ca. June 4th and my X.org session crashes within

Re: error building clang in HEAD

2018-06-27 Thread Gary Jennejohn
On Tue, 26 Jun 2018 12:51:29 -0700 Bryan Drewery wrote: > On 6/26/2018 12:40 PM, Kevin Oberman wrote: > > On Tue, Jun 26, 2018 at 11:00 AM, Gary Jennejohn > > wrote: > > > > On Tue, 26 Jun 2018 18:24:12 +0200 > > Gary Jennejohn mailto:gljennj...@gmail.com>>

TSC calibration in virtual machines

2018-06-27 Thread Andriy Gapon
It seems that TSC calibration in virtual machines sometimes can do more harm than good. Should we default to trusting the information provided by a hypervisor? Specifically, I am observing a problem on GCE instances where calibrated TSC frequency is about 10% lower than advertised frequency.