From owner-freebsd-current@FreeBSD.ORG Sun Jun 1 16:39:41 2014 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CDED7462 for ; Sun, 1 Jun 2014 16:39:41 +0000 (UTC) Received: from COL004-OMC4S14.hotmail.com (col004-omc4s14.hotmail.com [65.55.34.216]) (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AB7762B21 for ; Sun, 1 Jun 2014 16:39:41 +0000 (UTC) Received: from COL131-DS2 ([65.55.34.200]) by COL004-OMC4S14.hotmail.com with Microsoft SMTPSVC(7.5.7601.22701); Sun, 1 Jun 2014 09:38:35 -0700 X-TMN: [YRDzSK3LYLpuGGDBx3M0AnFt4JqUDF4Kh3qMiEJGMK0=] X-Originating-Email: [fredhps10@hotmail.com] Message-ID: From: Fred Pedrisa To: "'freebsd-current'" Subject: Select() vs Netmap Date: Sun, 1 Jun 2014 13:38:34 -0300 MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac99t5ZrJbSQ/HqYRFWnyUSa/5DWLA== Content-Language: pt-br X-OriginalArrivalTime: 01 Jun 2014 16:38:35.0212 (UTC) FILETIME=[EE92D0C0:01CF7DB7] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jun 2014 16:39:42 -0000 Hey, guys. I'm currently experiencing a strange issue in my program (Using netmap). Sometimes, when I call select() in a FD, it gets like 4~8 packets per event, however suddenly it drops to 1~2 packets per event, losing a lot of performance and increasing the number of select calls necessary to poll the NIC for new packets. Is there any type of tweak I can do, to make this behavior becomes linear and sustain the performance in such case without these oscillations ? The behavior happens under the same stressing circumstances, around 1.4 Mpps~ (64 byte packets). Sincerely, Fred