Re: loaded router, excessive getnstimeofday in oprofile\

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Wednesday, August 27, 2008 - 11:32 am

> Doing the expensive timestamping in a possibly delayed thread (ie some 

We had this discussion earlier, please review the thread I linked to. 

Note that interrupts can be arbitarily delayed too (both by cli
and by interrupt mitigation), even on a non RT kernel.

If you want exact notification (packet arriving at your NIC's buffers) you 
need NIC hardware support (and more and more NICs have it[1]). 
If you do it in software then even the interrupt is at the end of a long 
queue with a pretty much arbitary delay. Doing it in socket context is 
just one queue more. It's pretty much all arbitary.

The argument for doing it as late as possible is the prohibitive 
cost on some systems as people notice all the time.

-Andi

[1] Unfortunately not necessarily synchronized with system time.
--
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\, Andi Kleen, (Wed Aug 27, 11:32 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)