Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2012 03:02:45 +0300
From:      Sergey Kandaurov <pluknet@gmail.com>
To:        Lukasz Wojcik <lukasz.wojcik@zoho.com>
Cc:        Luigi Rizzo <rizzo@iet.unipi.it>, current@freebsd.org
Subject:   Re: syscall cost freebsd vs linux ?
Message-ID:  <CAE-mSO%2BCSoUVb4QU93K6tVva%2BbcGtDj5ouJQhWiQsFHA-qCY4A@mail.gmail.com>
In-Reply-To: <50B354F4.1070706@zoho.com>
References:  <20121119193202.GA79496@onelab2.iet.unipi.it> <50B354F4.1070706@zoho.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 26 November 2012 15:39, Lukasz Wojcik <lukasz.wojcik@zoho.com> wrote:
> 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 ?

There is a nice tool at /usr/src/tools/tools/syscall_timing

-- 
wbr,
pluknet



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAE-mSO%2BCSoUVb4QU93K6tVva%2BbcGtDj5ouJQhWiQsFHA-qCY4A>