[Olsr-dev] [PATCH RFC v1 0/4] Smart Gateway dynamic bandwidth
Henning Rogge
(spam-protected)
Fri May 11 08:05:44 CEST 2012
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.
The HNAs are only sent every 5-60 seconds anyway, so there is no need to
hurry.
Henning Rogge
--
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut für
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Neuenahrer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961, Fax +49 228 9435 685
mailto:(spam-protected) http://www.fkie.fraunhofer.de
GPG: E1C6 0914 490B 3909 D944 F80D 4487 C67C 55EC CFE0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6156 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20120511/d1c57319/attachment.bin>
More information about the Olsr-dev
mailing list