Thread (6 messages) 6 messages, 5 authors, 2005-01-31

Re: ip -6 route shows incorrect route expiry times

From: Ville Nuorvala <hidden>
Date: 2005-01-31 11:55:57

On Mon, 31 Jan 2005, YOSHIFUJI Hideaki / [iso-2022-jp] �������� wrote:
In article [ref] (at Mon, 31 Jan 2005 01:29:10 +0900 (JST)), YOSHIFUJI Hideaki / �������� [off-list ref] says:
quoted
quoted
It appears that the expiry seconds here are actually in units of
10 seconds.  Maybe someone's double-converting kernel Hz to user Hz?
Kernel exports in USER_HZ.
iproute2 seem to convert it again; workaround is to do "export HZ=100".
                                                          ~~~~~~~~~~~~~
This is example. Of course, this depends on your arch.
Please, couldn't the lifetimes be passed to userspace in a architecture
indepentent unit like whole seconds?

I don't think any routing protocols need a sub-second resolution for the
lifetimes but if they do, why not use milliseconds? Better still, why not
add a new attribute with a struct timespec or timeval to store the
sub-second lifetimes for those who need them?

Btw. we have the same HZ problem in many /proc files.

Here too I would like to see a millisecond based interface in addition to
the existing USER_HZ/jiffies/second based one. This especially applies to
values like base_reachable_time and retrans_time, which are originally
defined as millisecond values in the specification (RFC 2461).

Regards,
Ville

--
Ville Nuorvala
Research Assistant, Institute of Digital Communications,
Helsinki University of Technology
email: vnuorval@tcs.hut.fi, phone: +358 (0)9 451 5257
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help