Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965249AbWIROaA (ORCPT ); Mon, 18 Sep 2006 10:30:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965248AbWIROaA (ORCPT ); Mon, 18 Sep 2006 10:30:00 -0400 Received: from ns2.suse.de ([195.135.220.15]:62619 "EHLO mx2.suse.de") by vger.kernel.org with ESMTP id S965229AbWIRO37 (ORCPT ); Mon, 18 Sep 2006 10:29:59 -0400 From: Andi Kleen To: David Miller Subject: Re: Network performance degradation from 2.6.11.12 to 2.6.16.20 Date: Mon, 18 Sep 2006 16:29:53 +0200 User-Agent: KMail/1.9.3 Cc: master@sectorb.msk.ru, hawk@diku.dk, harry@atmos.washington.edu, linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20060918.070905.98863400.davem@davemloft.net> In-Reply-To: <20060918.070905.98863400.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609181629.53949.ak@suse.de> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1071 Lines: 24 > > People who run tcpdump want "wire" timestamps as close as possible. > Yes, things get delayed with the IRQ path, DMA delays, IRQ > mitigation and whatnot, but it's an order of magnitude worse if > you delay to user read() since that introduces also the delay of > the packet copies to userspace which are significantly larger than > these hardware level delays. If tcpdump gets swapped out, the > timestamp delay can be on the order of several seconds making it > totally useless. My proposal wasn't to delay to user read, just to do the time stamp in socket context. This means as soon as packet or RAW/UDP have looked up the socket and can check a per socket flag do the time stamp. The only delay this would add would be the queueing time from the NIC to the softirq. Do you really think that is that bad? -Andi - 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/