Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Aug 2013 19:06:20 +0200
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        Lawrence Stewart <lstewart@freebsd.org>, Lev Serebryakov <lev@freebsd.org>, FreeBSD Net <net@freebsd.org>, Vijay Singh <vijju.singh@gmail.com>
Subject:   Re: it's the output, not ack coalescing (Re: TSO and FreeBSD vs Linux)
Message-ID:  <CA%2BhQ2%2BhKSnyzu%2Bn8=k%2B2OyTbhGpKCobSNT=J3OiYEbyaRBB%2BBQ@mail.gmail.com>
In-Reply-To: <CAJ-VmonWPr2Hm0fk%2B6ykre0MmB1-fxsk7u=9a_z1bTkMjZwYBg@mail.gmail.com>
References:  <520A6D07.5080106@freebsd.org> <520AFBE8.1090109@freebsd.org> <520B24A0.4000706@freebsd.org> <520B3056.1000804@freebsd.org> <20130814102109.GA63246@onelab2.iet.unipi.it> <587579055.20130814154713@serebryakov.spb.ru> <CAJ-VmokxgWKeuPFGEE-wzLcYpyt3Ua90JZH2BBTj39LoTSUsMg@mail.gmail.com> <BBF40680-9C93-4C86-B7B4-B62ADD1FD41B@gmail.com> <CAJ-VmonWPr2Hm0fk%2B6ykre0MmB1-fxsk7u=9a_z1bTkMjZwYBg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
the usenix paper and talk
https://www.usenix.org/conference/usenixfederatedconferencesweek/netmap-novel-framework-fast-packet-io
should give a short description of what i did.

Basically i manually insert returns (and free mbufs and resources)
in some place in the path and then compute the time consumed by
the code as the inverse of the average pps over 0.1 .. 1s intervals.
By moving the point where i place the return, i can estimate the
cost of the various sections of code involved.

cheers
luigi



On Fri, Aug 16, 2013 at 6:59 PM, Adrian Chadd <adrian@freebsd.org> wrote:

> Luigi,
>
> Did you ever publish your patches or methodology for doing sampling?
>
>
>
> -adrian
>
>
> On 14 August 2013 21:00, Vijay Singh <vijju.singh@gmail.com> wrote:
>
>> Is that what FLOWTABLE does? Also we need a mechanism to record time
>> spent at various layers in the stack. Luigi has used his own methods but
>> we're lacking something more generic. At work we have some crude tools that
>> use mcount information to indirectly measure costs but they are not
>> reliable and only provide partial information.
>>
>> Sent from my iPhone
>>
>> On Aug 14, 2013, at 11:11 AM, Adrian Chadd <adrian@freebsd.org> wrote:
>>
>> > On 14 August 2013 04:47, Lev Serebryakov <lev@freebsd.org> wrote:
>> >
>> >
>> >>  And we should invalidate this info on ARP/route changes, or connection
>> >> will be lost in such cases, am I right?.. So, on each such event code
>> >> should look into all sockets and check, if routing/ARP information is
>> >> still
>> >> valid for them. Or we should store lists of sockets in routing and ARP
>> >> tables... I don't know, what is worse.
>> >
>> > .. or per-CPU copies of the ARP table.. ?
>> >
>> >
>> >
>> > -adrian
>> > _______________________________________________
>> > freebsd-net@freebsd.org mailing list
>> > http://lists.freebsd.org/mailman/listinfo/freebsd-net
>> > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>>
>
>


-- 
-----------------------------------------+-------------------------------
 Prof. Luigi RIZZO, rizzo@iet.unipi.it  . Dip. di Ing. dell'Informazione
 http://www.iet.unipi.it/~luigi/        . Universita` di Pisa
 TEL      +39-050-2211611               . via Diotisalvi 2
 Mobile   +39-338-6809875               . 56122 PISA (Italy)
-----------------------------------------+-------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BhQ2%2BhKSnyzu%2Bn8=k%2B2OyTbhGpKCobSNT=J3OiYEbyaRBB%2BBQ>