[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-net
Subject:    Re: questions regarding qdiscs, watchdogs, hrtimers and [NO_] HZ
From:       David Miller <davem () davemloft ! net>
Date:       2008-09-24 22:57:17
Message-ID: 20080924.155717.219052579.davem () davemloft ! net
[Download RAW message or body]

From: Michal Soltys <soltys@ziu.info>
Date: Thu, 25 Sep 2008 00:07:51 +0200

> - what is the current resolution allowed by hrtimer_start ? During
> simple tests with tbf I could easily schedule at pretty much any
> rate (tested up to 100mbit) with just a packet sized token
> bucket. And that regardless of selected HZ and/or NO_HZ
> setting. Quite awesome.
>
> - in case of some older hardware - I assume the functionality falls
> back to the old behavior, so - overall accuracy is still 1.024us
> (judging from comments, and contrary to older kernels where
> jiffies/ gettimeofday/ timestamp could be selected) - but allowed
> watchdog resolution remains 1/HZ ? Also - what is NO_HZ's
> influence (if any) in such scenario ?

Basiclly you'll be able to use whatever resolution the hardware
can provide.  That is the only limit.

NO_HZ has effectively no influence, NO_HZ only kicks in when there
is no work for the CPU to do, so if you have an hrtimer pending
on a qdisc that will get serviced at the intended moment, the cpu
will come out of NO_HZ mode if necessary to do this.
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic