From owner-freebsd-questions@FreeBSD.ORG Sat Feb 22 20:36:32 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AFDE1865 for ; Sat, 22 Feb 2014 20:36:32 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 820861A5D for ; Sat, 22 Feb 2014 20:36:32 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 74A4A33C19; Sat, 22 Feb 2014 15:36:26 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id 5EC6339846; Sat, 22 Feb 2014 15:36:20 -0500 (EST) From: Lowell Gilbert To: Matthias Apitz Subject: Re: slowdown because of gettimeofday change between 9.2 and 10? References: <5307E64C.3040108@att.net> <5308D37B.50908@att.net> <20140222171602.GA2265@La-Habana> <20140222181449.GA2475@La-Habana> Date: Sat, 22 Feb 2014 15:36:19 -0500 In-Reply-To: <20140222181449.GA2475@La-Habana> (Matthias Apitz's message of "Sat, 22 Feb 2014 19:14:49 +0100") Message-ID: <444n3q6g1o.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Kostas Oikonomou , freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Feb 2014 20:36:32 -0000 Matthias Apitz writes: > El d=EDa Saturday, February 22, 2014 a las 06:16:03PM +0100, Matthias Api= tz escribi=F3: > >> > 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. >> >=20 >> > So there must be some other difference between 9.2 and 10.0 that causes >> > the slowdown. >>=20 >> In my case it is: >>=20 >> $ 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 >>=20 >> The app in question (kabc) was compiled based on the ports at this time. > > $ truss -f -o tr kaddressbook > kdecore (KAction): WARNING: KActionCollection::KActionCollection( > QObject *parent, const char *name, KInstance *instance ) > $ fgrep gettimeofday tr | wc -l > 2262 FreeBSD has *always* had a slower (but, it looks like, more accurate) gettimeofday() implementation than some other systems. This is an infamous slowdown for Java.