Thread (44 messages) 44 messages, 12 authors, 2008-08-29

Re: loaded router, excessive getnstimeofday in oprofile

From: Rick Jones <hidden>
Date: 2008-08-28 20:29:52
Also in: lkml

Possibly related (same subject, not in this thread)

The issue is the ordering of processing the requests.

So if request A arrived on interface 1 before request B arrived on
interface 2, the trade described in A should be performed before the
one in B.

This is not "arcance" as you seem to suppose it might be, but rather
pretty clear fair handling or requests sent between trading desks.
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 way things are today, there really isn't much guarantee that hitting 
NIC 1 before NIC 2 will result in a driver-generated timestamp for the 
NIC 1 packet which is before the driver-generated timestamp for the NIC 
2 packet.  It will be luck of the interrupt coalescing interaction with 
other traffic on the NIC and/or polling out of NAPI right?

rick jones
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help