Re: loaded router, excessive getnstimeofday in oprofile

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Evgeniy Polyakov
Date: Friday, August 29, 2008 - 1:43 pm

On Fri, Aug 29, 2008 at 11:21:26AM -0400, Joe Malicki (jmalicki@metacarta.com) wrote:

Just a note from that one who really developed real-time audio and
video processing engines: _no_one_ really relies to the timestamps
attached to the received packet. By no one I really mean NO ONE. It is
ust wrong, broken and stupid. There are so many queues in the data
path, that it just can not be reliable by definition.

Instead sending path incapsulates packet sequence number into appropriate
packet header (like, and the most cases the only, RTP header), and
receiving path just multiplies this sequence number by the compression
rate and size of the packet. This numbers differ from design to design,
but overall approach is the same: no one really depends on the hardware
timestamp attached on the receiver, only sender's data is reliable.
If someone depends on it, it is broken and just waits for the
appropriate attack vector to inect broken data into the dataflow (such
users do not use tcp, since it "introduces unneded delays" or similar
marketing and compeltely untested things).

So this overall discussion of the timestamp option is meaningless: we
just bloody can not change it as is, since so many applications really
depend on it (even if they should not).

We can force lower resolution in terms of xtime or similar counter,
which will be default timestamp in case of some syscall (turned off by
default), but since so far no one sent a patch, this looks very subtle.

-- 
	Evgeniy Polyakov
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Thu Aug 21, 6:57 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Thu Aug 21, 7:23 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Jarek Poplawski, (Tue Aug 26, 2:51 am)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Tue Aug 26, 3:29 am)
Re: loaded router, excessive getnstimeofday in oprofile, Jarek Poplawski, (Tue Aug 26, 3:47 am)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Tue Aug 26, 3:49 am)
Re: loaded router, excessive getnstimeofday in oprofile, Jarek Poplawski, (Tue Aug 26, 4:07 am)
Re: loaded router, excessive getnstimeofday in oprofile, Jarek Poplawski, (Tue Aug 26, 4:15 am)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Tue Aug 26, 4:16 am)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Tue Aug 26, 4:32 am)
Re: loaded router, excessive getnstimeofday in oprofile, Jarek Poplawski, (Tue Aug 26, 4:32 am)
Re: loaded router, excessive getnstimeofday in oprofile, Evgeniy Polyakov, (Tue Aug 26, 1:14 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Eric Dumazet, (Tue Aug 26, 1:44 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Evgeniy Polyakov, (Tue Aug 26, 1:51 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Wed Aug 27, 5:09 am)
Re: loaded router, excessive getnstimeofday in oprofile, Evgeniy Polyakov, (Wed Aug 27, 5:36 am)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Wed Aug 27, 7:00 am)
Re: loaded router, excessive getnstimeofday in oprofile, Evgeniy Polyakov, (Wed Aug 27, 7:23 am)
Re: loaded router, excessive getnstimeofday in oprofile, Stephen Hemminger, (Wed Aug 27, 9:17 am)
Re: loaded router, excessive getnstimeofday in oprofile, Jarek Poplawski, (Wed Aug 27, 10:14 am)
Re: loaded router, excessive getnstimeofday in oprofile, Eric Dumazet, (Wed Aug 27, 10:27 am)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Wed Aug 27, 2:34 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Wed Aug 27, 3:18 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Wed Aug 27, 5:48 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Jason Uhlenkott, (Wed Aug 27, 7:39 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Wed Aug 27, 8:10 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Stephen Hemminger, (Wed Aug 27, 8:35 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Joe Malicki, (Wed Aug 27, 11:28 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Thu Aug 28, 1:49 am)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Thu Aug 28, 8:02 am)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Thu Aug 28, 9:48 am)
Re: loaded router, excessive getnstimeofday in oprofile, Eric Dumazet, (Thu Aug 28, 11:57 am)
Re: loaded router, excessive getnstimeofday in oprofile, Ilpo Järvinen, (Thu Aug 28, 12:01 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Thu Aug 28, 12:25 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Thu Aug 28, 12:31 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Thu Aug 28, 12:36 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Eric Dumazet, (Thu Aug 28, 12:37 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Thu Aug 28, 12:42 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Thu Aug 28, 12:55 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Denys Fedoryshchenko, (Thu Aug 28, 12:59 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Thu Aug 28, 1:32 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Thu Aug 28, 1:47 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Stephen Hemminger, (Fri Aug 29, 8:43 am)
Re: loaded router, excessive getnstimeofday in oprofile, Evgeniy Polyakov, (Fri Aug 29, 1:43 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Valdis.Kletnieks, (Sun Aug 31, 7:39 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Sun Aug 31, 8:51 pm)
Re: loaded router, excessive getnstimeofday in oprofile, Valdis.Kletnieks, (Sun Aug 31, 9:08 pm)
Re: loaded router, excessive getnstimeofday in oprofile, David Miller, (Sun Aug 31, 9:10 pm)