[Olsr-users] 0.5.6 Routes disappear after 4 mins of uptime, then all OK - suspect clock sync

Henning Rogge (spam-protected)
Thu Sep 4 16:09:40 CEST 2008


Am Donnerstag 04 September 2008 10:54:23 schrieb Hannes Gredler:
> millisecond resolution of a 2^31 wide timer gets you down to an overflow
> every 24.85 days.
Okay... I forgot to divide by 24 (after dividing by 3600)... ;)

> | > i just wonder on a sufficient small clocktick resolution
> | > one could break this form of overflow detection.
> |
> | With normalization that should be no problem.
>
> what we could do is normalizing to each scheduler interval of 50ms.
>
> 2^31/20 = which would give us an overflow each 3.4 years.

I don't like this idea... a smooth value would be better.

Do we really need timers with more than 24 days ??

Henning


*************************************************
Diplom Informatiker Henning Rogge
Forschungsgesellschaft für
Angewandte Naturwissenschaften e. V. (FGAN) 
Neuenahrer Str. 20, 53343 Wachtberg, Germany
Tel.: 0049 (0)228 9435-961
Fax: 0049 (0)228 9435-685
E-Mail: (spam-protected)
Web: www.fgan.de
************************************************
Sitz der Gesellschaft: Bonn
Registergericht: Amtsgericht Bonn VR 2530
Vorstand: Dr. rer. nat. Ralf Dornhaus (Vors.), Prof. Dr. Joachim Ender 
(Stellv.)




More information about the Olsr-users mailing list