From owner-freebsd-questions@FreeBSD.ORG Sat Feb 22 17:16:12 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5BE7AA3E for ; Sat, 22 Feb 2014 17:16:12 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 14C351969 for ; Sat, 22 Feb 2014 17:16:11 +0000 (UTC) Received: from [93.104.30.214] (helo=localhost.my.domain) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1WHGBM-0006Db-NM; Sat, 22 Feb 2014 18:16:09 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.7/8.14.3) with ESMTP id s1MHG5RZ002275; Sat, 22 Feb 2014 18:16:05 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.7/8.14.3/Submit) id s1MHG3ph002274; Sat, 22 Feb 2014 18:16:04 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sat, 22 Feb 2014 18:16:03 +0100 From: Matthias Apitz To: Kostas Oikonomou Subject: Re: slowdown because of gettimeofday change between 9.2 and 10? Message-ID: <20140222171602.GA2265@La-Habana> References: <5307E64C.3040108@att.net> <5308D37B.50908@att.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5308D37B.50908@att.net> X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.104.30.214 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Feb 2014 17:16:12 -0000 El día Saturday, February 22, 2014 a las 11:42:35AM -0500, Kostas Oikonomou escribió: > I did some more work on this. Here is some additional info: > > 1) The ntpdate suggestion doesn't seem to work. (By the way, the ntpd > man page says that it's equivalent to running ntpd with the "-q" option). I could not imagine that the local time, correct or not, triggers this. > > The reason is that in my case the problem doesn't occur just at start > up. The calls to gettimeofday go on all the time. > I even killed the ntpd daemon, and the calls still went on. > > 2) I checked on another system which runs the same application, but > under 9.2. It turns out that the application issues the same calls to > gettimeofday, also on a continuous basis, and, furthermore the numbers > of calls on the two systems over a period of 15 seconds are almost the same. > > So there must be some other difference between 9.2 and 10.0 that causes > the slowdown. In my case it is: $ uname -a FreeBSD La-Habana 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r250588M: Sat Jun 22 14:15:48 CEST 2013 guru@La-Habana:/usr/obj/usr/home/guru/head/src/sys/GENERIC i386 The app in question (kabc) was compiled based on the ports at this time. HIH matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards