From owner-freebsd-stable@freebsd.org Thu Oct 22 20:09:23 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8BA9AA1CD07 for ; Thu, 22 Oct 2015 20:09:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 69E8611DF for ; Thu, 22 Oct 2015 20:09:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 67624A1CD06; Thu, 22 Oct 2015 20:09:23 +0000 (UTC) Delivered-To: stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 66176A1CD03 for ; Thu, 22 Oct 2015 20:09:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2870D11DE for ; Thu, 22 Oct 2015 20:09:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by ioll68 with SMTP id l68so104221681iol.3 for ; Thu, 22 Oct 2015 13:09:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qXha7bR6YCwv2kWfBAEzfXENQTczyXZjPQnChepAukA=; b=DoENgNpI4FuN5tu6m2NEhp+w2kB5BNI8Lk4SM4ZB/y8wgmBDfTcGR7vDKNGuCKsMNt JkC8swTWpYVrQx4BVvdu/LWkfjKFDczroVxE5/UnMffJpY58zha4qNJJnuBw1hQNrC0p tkj19KdawhslIKqRxfAWfsjM5HfPg93Bm0ijZlKXaZ0VzK80CHlDnrdWK+8BTQ/w2j/i J6abZwe7Jl1q+AcsNbJIvaiU+dHkMFYTXEszuAvVJkGMXFvVTjJb7Cw0f8F5BE48oZEb lOLSTCEOTC0gMn0Oh7fEd9ByWIcwnXj7MJ3fb2yodpCUgKpG0MGjSpjLOCFyrPyOkMqG 8XYg== MIME-Version: 1.0 X-Received: by 10.107.46.228 with SMTP id u97mr17504495iou.165.1445544562572; Thu, 22 Oct 2015 13:09:22 -0700 (PDT) Received: by 10.36.46.66 with HTTP; Thu, 22 Oct 2015 13:09:22 -0700 (PDT) In-Reply-To: References: <20151018185639.GF42243@zxy.spb.ru> <20151018210049.GT6469@zxy.spb.ru> <20151022163519.GF6469@zxy.spb.ru> Date: Thu, 22 Oct 2015 13:09:22 -0700 Message-ID: Subject: Re: 82576 + NETMAP + VLAN From: Adrian Chadd To: Luigi Rizzo Cc: Slawa Olhovchenkov , "stable@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2015 20:09:23 -0000 On 22 October 2015 at 11:24, Luigi Rizzo wrote: > On Thu, Oct 22, 2015 at 11:12 AM, Adrian Chadd wrote: >> On 22 October 2015 at 09:35, Slawa Olhovchenkov 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