From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 22 19:26:19 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 056A416A419 for ; Tue, 22 Jan 2008 19:26:19 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id B31D813C442 for ; Tue, 22 Jan 2008 19:26:18 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id 646EE1B10EF3; Tue, 22 Jan 2008 20:26:17 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on blah.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-10.6 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 Received: from hater.haters.org (unknown [192.168.25.10]) by blah.sun-fish.com (Postfix) with ESMTP id BF7921B10EE8; Tue, 22 Jan 2008 20:26:14 +0100 (CET) Message-ID: <47964356.6030602@moneybookers.com> Date: Tue, 22 Jan 2008 21:26:14 +0200 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.9 (X11/20071120) MIME-Version: 1.0 To: Ivan Voras References: <4795CC13.7080601@moneybookers.com> <868x2i3v8d.fsf@ds4.des.no> <864pd63v2h.fsf@ds4.des.no> <4795FE54.9090606@moneybookers.com> <86lk6i0vzk.fsf@ds4.des.no> <479605E2.6070709@moneybookers.com> In-Reply-To: Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.2/5521/Tue Jan 22 15:55:56 2008 on blah.cmotd.com X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org Subject: Re: gettimeofday() in hping X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2008 19:26:19 -0000 Hi, Ivan Voras wrote: > Stefan Lambrev wrote: > >> I do not have HEPT on the servers that I test, but simple test on my >> laptop shows >> that hping can generate with ACPI-fast ~4MB/s traffic, 5MB/s with HPET >> and 8MB/s with TSC. > > How much can Linux handle? Will install ubuntu on the same machine and let you know, but my experience shows that FreeBSD + TSC have the same performance as Linux. > > >I didn't check dummy time counter. > > If you do, it would give a nice indicator of how much the time > counters are expensive in both absolute terms and relative to the rest > of the stuff the program does (network IO). The "dummy" timecounter > just increments a number when called, no time keeping is involved. > > Here are the max speeds I can reach with different counters (on the test server): i8254 - 3.660 MB/s ACPI-fast - 7.137 MB/s TSC - 12.519 MB/s dummy - 12.366 MB/s -- Best Wishes, Stefan Lambrev ICQ# 24134177