[Olsr-dev] [PATCH RFC v1 0/4] Smart Gateway dynamic bandwidth

Ferry Huberts (spam-protected)
Fri May 11 10:29:43 CEST 2012



On 11-05-12 08:05, Henning Rogge wrote:
> On 05/10/2012 11:28 PM, Ferry Huberts wrote:
>>
>>
>> On 10-05-12 23:03, Hans-Christoph Steiner wrote:
>>>
>>> Given that it is highly unlikely that a file would change on a time
>>> scale less than 1ms, I think its safe to use the generic versions, at
>>> least on other platforms, no? I think you need a special Linux kernel
>>> to get thread/process time slices with smaller than 1-2ms anyhow.
>>
>> that's not the point
>> mtime is in _seconds_ accuracy.
>> a file can very easily change within a second...
>
> Yes, but we only need the last change. So we could record the "last
> time" it changed and reload it as soon as its more than one second ago.
>
> We could just use two timers... one that regularly checks if mtime
> changed. If it changed, we start a second timer with a delay of 1
> second, which reloads the file.
>

too complicated.
and I already avoid the issue by requiring a minimum interval of 
1000msec ;-)

> The HNAs are only sent every 5-60 seconds anyway, so there is no need to
> hurry.
>
> Henning Rogge
>
>
>

-- 
Ferry Huberts




More information about the Olsr-dev mailing list