From owner-freebsd-performance@FreeBSD.ORG Wed Feb 8 17:34:05 2012 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC3C0106566C for ; Wed, 8 Feb 2012 17:34:05 +0000 (UTC) (envelope-from julianwissmann@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5C26F8FC13 for ; Wed, 8 Feb 2012 17:34:04 +0000 (UTC) Received: by werm13 with SMTP id m13so850803wer.13 for ; Wed, 08 Feb 2012 09:34:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; bh=81IOZJKnHonVhJhgfiCaJPAkPxZjodeqlnzGeXchqW0=; b=Ii5K3EhZ3TBrsfWkJygZJjhquMkIbdCPLldiBWlis93M8ExJSAi9U7otJXo/zgmF17 aF0fYB2j53X521hnaVl2jAIjY34XKB7ewyTPh7aZdFq3xaapMI4aooLUgjb/BW4ThsCc tbjbrYpSvw2XKOc97Psq/xzj0ktzTouht8an4= Received: by 10.180.102.35 with SMTP id fl3mr24495745wib.22.1328722444186; Wed, 08 Feb 2012 09:34:04 -0800 (PST) Received: from [192.168.10.134] (g225192155.adsl.alicedsl.de. [92.225.192.155]) by mx.google.com with ESMTPS id ho4sm1300778wib.3.2012.02.08.09.34.02 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Feb 2012 09:34:02 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: multipart/signed; boundary="Apple-Mail=_1B9ADEE8-3DDC-40ED-9E82-3FF47ADEC18F"; protocol="application/pgp-signature"; micalg=pgp-sha1 From: Julian Wissmann In-Reply-To: Date: Wed, 8 Feb 2012 18:33:53 +0100 Message-Id: References: <7FE9C466-2459-4C0E-949A-7C0843B04BB4@gmail.com> To: Adrian Chadd X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-performance@freebsd.org Subject: Re: Tor on FreeBSD Performance issues X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 17:34:06 -0000 --Apple-Mail=_1B9ADEE8-3DDC-40ED-9E82-3FF47ADEC18F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 1086 tor RET read 1568/0x620 1086 tor CALL clock_gettime(0xd,0x7fffffffd910) 1086 tor RET clock_gettime 0 1086 tor CALL = kevent(0x3,0x3e18000,0x2,0x3dbe000,0x400,0x7fffffffd920) 1086 tor GIO fd 3 wrote 64 bytes 1086 tor RET kevent 3 1086 tor CALL clock_gettime(0x4,0x7fffffffd940) 1086 tor RET clock_gettime 0 1086 tor CALL gettimeofday(0x7fffffffd930,0) 1086 tor RET gettimeofday 0 1086 tor CALL recvfrom(0xbc2,0x4822020,0x3e40,0,0,0) 1086 tor GIO fd 3010 read 4096 bytes As I understand kevent to be part of queue I go with yes here. What I = also take from it is a huge number of clock_gettime() and gettimeofday() = calls. Julian Am 08.02.2012 um 17:39 schrieb Adrian Chadd: > Can you verify that it's properly using kqueue, rather than poll? >=20 >=20 > Adrian --Apple-Mail=_1B9ADEE8-3DDC-40ED-9E82-3FF47ADEC18F Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) iQIcBAEBAgAGBQJPMrIHAAoJELZlJJDYKNKt5zYP/Rj/pCnSvgitPe1JL5EXhJkd AcQuLqaDNR+iBEFXUJBkrHH7aAdIVsLzz5L/ADYHTTBUaZxk1fGNWEchwk/dS/SI 2adPzQBAmhT5KXS+lQGczejuznc1zoBYAxyUsdLKXM6oV6jo2woMmX3k77OSahRR /OXbpzKzKo2SRNWCco9/GHFhYto+AvwATjYPfHuZGFAXVLO9D+XP+UlwonBoHYNr oEMrJFKhJBAnnqIfG2DiMwk5CnK/iwMbqpQ1hEGZZaDv4SxVR/iRa35ED8H/ttbR 8hyJ6VsKU1meHnzmA3MipAsCH+rx8f41+zSPNAqhuI9JU2CpRrDHHRvrB6ROug2z EU/LOUe/kT4R4rOrXb5uK+vR8JaS7P5JzulHaTnMVAFrGA14b38+WZ4ApTf4HRF0 X5V+4t5gF9fdsc5BsXX2/kxvyjtibYvLS/IKwU4YcLWWAGOdUblgI6mejMKvZ5wV BG3P7/d1pz4edt6ech9A8la+sCCSvo+VCkIvippDPu+sg8iSz/fkFKoESAi7S9gB V/dLR16BRtLqvkLuwfDl3lo5UL5l1pr9cvy3MW9qSasTkakJdJTY9vGvKdzG3Xg0 8bxD8E7C3KkKhCi7jRx/J43bKhK47uhuMV/pJ28sm+GJU9b6Fve7nsvS0Ro7xSdm wSWnCkZXy8E2ujimCNru =uNbY -----END PGP SIGNATURE----- --Apple-Mail=_1B9ADEE8-3DDC-40ED-9E82-3FF47ADEC18F--