Re: syscall cost freebsd vs linux ?

From: Lukasz Wojcik <lukasz.wojcik_at_zoho.com>
Date: Mon, 26 Nov 2012 12:39:32 +0100
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_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Mon Nov 26 2012 - 11:34:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:32 UTC