Re: loaded router, excessive getnstimeofday in oprofile\

David Miller
2008-08-27T22:23:27Z

From: Andi Kleen <andi@firstfloor.org>
Date: Wed, 27 Aug 2008 20:32:16 +0200

> > Doing the expensive timestamping in a possibly delayed thread (ie some
> > milliseconds
> > after hardware notification) is wrong/useless.
>
> 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.

This is a much different kind of delay compared to sleeping for seconds
or longer on the socket lock while a GFP_KERNEL allocation is being
satisfied by swapping tons of crap out to disk.

Your socket solution is not a workable scheme.