Re: loaded router, excessive getnstimeofday in oprofile

From: Stephen Hemminger
Date: Fri Aug 29 2008 - 11:43:42 EST


On Thu, 28 Aug 2008 22:55:29 +0300
Denys Fedoryshchenko <denys@xxxxxxxxxxx> wrote:

> On Thursday 28 August 2008, Eric Dumazet wrote:
> > OK, please try oprofile with call graph analysis.
> I did already. Even because most of programs (except ripd/zebra) can be
> killed, and i kill them, it doesn't change almost anything.
>
> it seems heavy things causing instability:
>
> 1)HTB (resolution can be lowered to improve performance, i will try Jarek
> patch soon)

If you are doing HTB it also calls clock to get timing information.
Each packet dequeue in htb calls psched_get_time() and that becomes
another call nano-second real time clock.

If your embedded processor has really expensive clock, you probably
just want to provide an alternative cheaper time source with less
resolution.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/