[lkml]   [1996]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: route use?
Jon Lewis ( wrote:
: I've recently noticed that the use column in /proc/net/route doesn't seem
: to update as often as it did in 1.2.x. i.e.
: Kernel routing table
: Destination Gateway Genmask Flags MSS Window Use Iface
: localnet * U 1500 0 38 eth0
: loopback * U 3584 0 2 lo
: default * UG 1500 0 1 eth0

This is due to the new route cache in the socket code. The usage count only
shows cache misses (i.e. connects). I guess this an be changed in the kernel
to update the field as one is used in 1.2.x, but this will of course slow
down the IP-layer a few ticks.. hmm.. You can look into rt_cache, there are
some usage numbers, too.

(OO) -- --
( .. ) ecki@lina.{,}
o--o *plush* 2048/93600EFD eckes@irc +4972573817 *plush*
(O____O) If privacy is outlawed only Outlaws have privacy

 \ /
  Last update: 2005-03-22 13:37    [W:0.030 / U:17.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site