From owner-freebsd-questions@FreeBSD.ORG Tue Aug 2 12:41:48 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A2C516A41F for ; Tue, 2 Aug 2005 12:41:48 +0000 (GMT) (envelope-from victor@vmpbg.com) Received: from 123bg.com (123bg.com [193.68.120.66]) by mx1.FreeBSD.org (Postfix) with SMTP id 6616343D46 for ; Tue, 2 Aug 2005 12:41:46 +0000 (GMT) (envelope-from victor@vmpbg.com) Received: (qmail 14382 invoked from network); 2 Aug 2005 12:37:14 -0000 Received: from teranet.evro.net (HELO neon.devian.bg) (83.148.76.210) by 0 with SMTP; 2 Aug 2005 12:37:14 -0000 From: Victor Semionov Organization: Devian To: freebsd-questions@freebsd.org Date: Tue, 2 Aug 2005 15:37:26 +0300 User-Agent: KMail/1.8.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508021537.26986.victor@vmpbg.com> Subject: polling decreases throughput ~50% X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2005 12:41:48 -0000 Hello, I've noticed something that seems strange to me and I'd like to ask for an explanation, because I don't think it should be happening. I was uploading some large file to my neighbor's windows box. With polling disabled, the transfer rate was 8 MB/s and CPU usage was 90%. I turned on polling with sysctl and CPU usage decreased to 50%, which I expected, but also the transfer rate dropped to 4.5 MB/s, about half. The numbers are approximate. The interface is a RealTek (rl driver). No background jobs were running. kern.polling.* all defaults. Why is that? I thought polling should decrease CPU usage by avoiding too many context switches when a hw irq is generated frequently, but it shouldn't make the transfer slower if there are no other jobs running. Thanks