Re: packet re-ordering on SMP machines.

2 messages, 2 authors, 2002-09-15 · open the first message on its own page

Re: packet re-ordering on SMP machines.

From: Harald Welte <laforge@gnumonks.org>
Date: 2002-09-15 08:42:01

On Tue, Aug 27, 2002 at 03:13:17PM +0200, Andi Kleen wrote:
On Tue, Aug 27, 2002 at 05:06:30PM +0400, A.N.Kuznetsov wrote:
quoted
Hello!
quoted
Of course. The only problem is that the clock can be non mononotonous 
sometimes and not be in sync with gettimeofday, but at least the kernel 
users of packet timestamps do not care.
What kernel users? Where did you find them? :-)
Hmm, I thought TCP used it, but it seems to use jiffies directly.

Ok, no kernel users then. Not sure about sunrpc and out of tree stuff
like SCTP.
The iptables ULOG target passes the skb receive timestamp to userspace, where
it is (depending on local ulogd configuration) written in logging/accounting
databases. (ULOG is in the kernel tree).  

The issue is that ULOG is batching multiple packets (or parts of packets) into
one netlink message sent to userspace.  If userspace would make a timestamp,
it would be very inaccurate.

There is at least one more iptables extension (out of the kernel tree) using
it - but I wouldn't consider this as important.
-Andi
-- 
Live long and prosper
- Harald Welte / laforge@gnumonks.org               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ 
V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)

Re: packet re-ordering on SMP machines.

From: Alexey Kuznetsov <hidden>
Date: 2002-09-15 21:55:43

Hello!
The iptables ULOG target passes the skb receive timestamp to userspace,
No differences of packet socket.
one netlink message sent to userspace.  If userspace would make a timestamp,
Nobody proposed to do this in userspace. This would be even not "inaccuracy",
the userspace time of read() is not correlated to real one at all
f.e. if userspace is going to do some dns, times will differ inpredictably.

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