Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932244AbWHPVcs (ORCPT ); Wed, 16 Aug 2006 17:32:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932241AbWHPVcr (ORCPT ); Wed, 16 Aug 2006 17:32:47 -0400 Received: from dsl027-180-168.sfo1.dsl.speakeasy.net ([216.27.180.168]:55444 "EHLO sunset.davemloft.net") by vger.kernel.org with ESMTP id S932238AbWHPVcr (ORCPT ); Wed, 16 Aug 2006 17:32:47 -0400 Date: Wed, 16 Aug 2006 14:32:03 -0700 (PDT) Message-Id: <20060816.143203.11626235.davem@davemloft.net> To: arnd@arndb.de Cc: jeff@garzik.org, linas@austin.ibm.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, jklewis@us.ibm.com, Jens.Osterkamp@de.ibm.com, akpm@osdl.org Subject: Re: [PATCH 1/2]: powerpc/cell spidernet bottom half From: David Miller In-Reply-To: <200608162324.47235.arnd@arndb.de> References: <44E38157.4070805@garzik.org> <20060816.134640.115912460.davem@davemloft.net> <200608162324.47235.arnd@arndb.de> X-Mailer: Mew version 4.2 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1155 Lines: 29 From: Arnd Bergmann Date: Wed, 16 Aug 2006 23:24:46 +0200 > We first had an interrupt per descriptor, then got rid of all TX > interrupts and replaced them by timers to reduce the interrupt load, > but reducing throughput in the case where user space sleeps on a full > socket buffer. The best schemes seem to be to interrupt mitigate using a combination of time and number of TX entries pending to be purged. This is what most gigabit chips seem to offer. On Tigon3, for example, we tell the chip to interrupt if either 53 frames or 150usecs have passed since the first TX packet has become available for reclaim. That bounds the latency as well as force the interrupt if a lot of TX work becomes available. Can spidernet be told these kinds of parameters? "N packets or X usecs"? This is all controllable via ethtool btw (via ETHTOOL_{S,G}COALESCE), so you can experiment if you want. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/