Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Oct 2015 13:09:22 -0700
From:      Adrian Chadd <adrian.chadd@gmail.com>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        Slawa Olhovchenkov <slw@zxy.spb.ru>, "stable@freebsd.org" <stable@freebsd.org>
Subject:   Re: 82576 + NETMAP + VLAN
Message-ID:  <CAJ-Vmona5LiyfwxA%2B_4CB4hHoSzLMM2qZCridQxpdryZty9mZg@mail.gmail.com>
In-Reply-To: <CA%2BhQ2%2Bg0ggpS%2BE5nOpON66efs7cwsed=NvaKa=mzsg6FycGhiQ@mail.gmail.com>
References:  <20151018185639.GF42243@zxy.spb.ru> <CAJ-VmonO8ok=twgBGVMBiAs=AyRs4LUoDX6pGBtWStvndGKGzg@mail.gmail.com> <20151018210049.GT6469@zxy.spb.ru> <CAJ-Vmonfxz5vjVHqp6gS97mhnU10SLgohRA35O8MQLUzHvcsrw@mail.gmail.com> <20151022163519.GF6469@zxy.spb.ru> <CAJ-Vmok56uBJgJh4Bwr7yjNwsigU=ySBJ08H26caODAAxXNLRA@mail.gmail.com> <CA%2BhQ2%2Bg0ggpS%2BE5nOpON66efs7cwsed=NvaKa=mzsg6FycGhiQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 22 October 2015 at 11:24, Luigi Rizzo <rizzo@iet.unipi.it> wrote:
> On Thu, Oct 22, 2015 at 11:12 AM, Adrian Chadd <adrian.chadd@gmail.com> wrote:
>> On 22 October 2015 at 09:35, Slawa Olhovchenkov <slw@zxy.spb.ru> wrote:
>>> On Sun, Oct 18, 2015 at 07:45:52PM -0700, Adrian Chadd wrote:
>>>
>>>> Heh, file a bug with luigi; it should be defined better inside netmap itself.
>>>
>>> I am CC: luigi.
>>>
>>> Next question: do kevent RX/TX sync?
>>> In my setup I am need to manual NIOCTXSYNC/NIOCRXSYNC.
>>
>> Hi,
>>
>> Nope. kqueue() doesn't do the implicit sync like poll() does; it's
>> just the notification path.
>
> actually not. When the file descriptor is registered there
> is an implicit sync, and there is another one when an event
> is posted for the file descriptor.
>
> unless there are bugs, of course.

Hm, I think there are bugs. I'll have to go remember what I saw when I
was messing with this.

I actually think it's doing the full sync each time and not the lazy
sync (ie, only when the ring is empty) which kills performance. I
think that was the "bug".


-a



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmona5LiyfwxA%2B_4CB4hHoSzLMM2qZCridQxpdryZty9mZg>