From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Jones Subject: Re: loaded router, excessive getnstimeofday in oprofile Date: Thu, 28 Aug 2008 13:45:40 -0700 Message-ID: <48B70E74.2000800@hp.com> References: <48B6E7D0.5070307@hp.com> <20080828.124251.149964287.davem@davemloft.net> <48B70AAA.7010504@hp.com> <20080828.133223.119110675.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: jmalicki@metacarta.com, andi@firstfloor.org, johnpol@2ka.mipt.ru, dada1@cosmosbay.com, denys@visp.net.lb, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, juhlenko@akamai.com, sammy@sammy.net To: David Miller Return-path: Received: from g4t0014.houston.hp.com ([15.201.24.17]:48645 "EHLO g4t0014.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755739AbYH1Upp (ORCPT ); Thu, 28 Aug 2008 16:45:45 -0400 In-Reply-To: <20080828.133223.119110675.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: David Miller wrote: > From: Rick Jones > Date: Thu, 28 Aug 2008 13:29:30 -0700 > > >>Has the request "hit the trading system" when it hits the NIC, or >>when it hits the application executing the trade? If the SEC calls >>for when it hits the NIC, then none of what is done today is really >>accurate/correct and one would need to start using NIC HW >>timestamps, synchronized with the host and the other NICs in the >>system no? > > > The SEC isn't mandating anything here, stop framing it that way :-) Must be my DC upbringing. I figured that if the logic wasn't 100% concrete a US Federal Bureaucracy must be involved :) > People simply won't trade with a firm if they find out that trades > there are executed out of order. > > They are simply trying to make things as fair as possible. But that is the very crux of the question - exactly where is "in order" to be determined? Is it supposed to be arrival time at the NIC HW, initial notice by the driver, or initial notice by the trading application? Given that there are no guarantees that a packet arriving on NIC 1 and timestamped either by the NIC HW or the driver will actually hit the application before a packet arriving on NIC2, just how long are these financial services applications going to wait around before executing the trade carried in the packet arriving on NIC1? rick jones