From owner-freebsd-current@FreeBSD.ORG Mon Nov 26 12:34:07 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5BB9DDE2 for ; Mon, 26 Nov 2012 12:34:07 +0000 (UTC) (envelope-from lukasz.wojcik@zoho.com) Received: from sender1.zohomail.com (sender1.zohomail.com [72.5.230.103]) by mx1.freebsd.org (Postfix) with ESMTP id 3C74D8FC0C for ; Mon, 26 Nov 2012 12:34:06 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type; b=OX0X4uDhZ3mvH6iKF3cl7BOGfxa97wwyfGfkEciSS5if+Am5TCgXGiogJkxtSnmHVvcJQq5Zo//F EdFNWhSXppiQKaMoAqfsllcEjQkFTK8UupcZZ1qOn85wL4nDsy4O Received: from [192.168.100.175] (host-87-116-222-18.debica.mm.pl [87.116.222.18]) by mx.zohomail.com with SMTPS id 1353929969543569.0092420784406; Mon, 26 Nov 2012 03:39:29 -0800 (PST) Message-ID: <50B354F4.1070706@zoho.com> Date: Mon, 26 Nov 2012 12:39:32 +0100 From: Lukasz Wojcik User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:9.0) Gecko/20121028 Thunderbird/9.0 MIME-Version: 1.0 To: Luigi Rizzo Subject: Re: syscall cost freebsd vs linux ? References: <20121119193202.GA79496@onelab2.iet.unipi.it> In-Reply-To: <20121119193202.GA79496@onelab2.iet.unipi.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ZohoMailClient: External X-Zoho-Virus-Status: 2 Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Nov 2012 12:34:07 -0000 On 11/19/12 20:32, Luigi Rizzo wrote: > today i was comparing the performance of some netmap-related code > on FreeBSD and Linux (RELENG_9 vs 3.2) and i was surprised to see that > our system calls are significantly slower. > On comparable hardware (i7-2600k vs E5-1650) the syscall > getppid() takes about 95ns on FreeBSD and 38ns on linux. > > (i make sure not to use gettimeofday(), which in linux is through vdso, > and getpid(), which is cached by glibc). > > Any idea on why there is this difference and whether/how > we can reduce it ? > I'm curious about how did you measure that ? Could you write some more about your methodology ? -LW > cheers > luigi > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"