Date: Mon, 11 Jul 2016 07:45:01 -0500 From: John Marino <freebsd.contact@marino.st> To: Alexey Dokuchaev <danfe@FreeBSD.org>, John Marino <marino@FreeBSD.org> Cc: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r418247 - in head/devel/gps: . files Message-ID: <e76649e2-65d7-9400-493d-f31fb1d17697@marino.st> In-Reply-To: <20160711122341.GA57651@FreeBSD.org> References: <201607082228.u68MS4Kf096971@repo.freebsd.org> <20160711122341.GA57651@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 7/11/2016 07:23, Alexey Dokuchaev wrote: > On Fri, Jul 08, 2016 at 10:28:04PM +0000, John Marino wrote: >> New Revision: 418247 >> URL: https://svnweb.freebsd.org/changeset/ports/418247 >> >> Log: >> devel/gps: Fix compiler error highlight on FreeBSD >> >> On DragonFly, GPS has been properly highlighting code errors during >> compilation, but on FreeBSD nothing happens. Luckily Rod Kay has been >> persistent in diagnosing the cause and he finally isolated it to a >> too-short timeout interval for Expect calls. The timeout period was >> set to 1 millisecond, the absolute shortest interval possible. While >> Linux and DF could complete the function call during this time, FreeBSD >> requires at least 10 milliseconds to do the same. > > Fascinating. Did you guys try to understand what makes Linux and DF over a > magnitude faster than FreeBSD? Is there something that needs to be fixed? > I didn't spend much time on it because it's nothing that can be fixed with regard to GPS. I believe the timeout of "1" is itself a logic mistake that FreeBSD exposed. With a cursory glance, I'd guess the problem is centered around polling file descriptors -- I'd particularly suspect the __gnat_expect_poll function in gcc/ada/expect.c to hold the answer. short answer: yes, the implementation of the culprit should be improved at the OS-level but you are talking about FreeBSD 12. I wrote this descriptive commit in the hopes it would catch someone's eye. John --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e76649e2-65d7-9400-493d-f31fb1d17697>