home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / iproute / rtstat.txt < prev    next >
Encoding:
Text File  |  2006-07-14  |  1.2 KB  |  38 lines

  1.  
  2.                                 RTACCT Utility
  3.  
  4. Robert Olsson
  5.  
  6.    some_negative_number, 20 Dec 2001
  7.  
  8.    Here is some code for monitoring the route cache. For systems handling
  9.    high network load, servers, routers, firewalls etc the route cache and
  10.    its garbage collection is crucial. Linux has a solid implementation.
  11.  
  12.    The kernel patch (not required since linux-2.4.7) adds statistics
  13.    counters from route cache process into /proc/net/rt_cache_stat. A
  14.    companion user mode program presents the statistics in a vmstat or
  15.    iostat manner. The ratio between cache hits and misses gives the flow
  16.    length.
  17.  
  18.    Hopefully it can help understanding performance and DoS and other
  19.    related issues.
  20.  
  21.    An URL where newer versions of this utility can be (probably) found is
  22.    ftp://robur.slu.se/pub/Linux/net-development/rt_cache_stat/
  23.  
  24.    Description
  25.  
  26.    The format of the command is:
  27.  
  28.        rtstat [ OPTIONS ]
  29.  
  30.    OPTIONS are:
  31.  
  32.      * -h, -help - show help page and version of the utility.
  33.      * -i INTERVAL - interval between snapshots, default value is 2
  34.        seconds.
  35.      * -s NUMBER - whether to print header line. 0 inhibits header line,
  36.        1 prescribes to print it once and 2 (this is default setting)
  37.        forces header line each 20 lines.
  38.