From: Robert Olsson <Robert.Olsson@data.slu.se>
To: "Milam, Chad" <Chad_Milam@nyc.yr.com>
Cc: jamal <hadi@cyberus.ca>, <netdev@oss.sgi.com>
Subject: RE: dst cache overflow 2.2.x; x>=16
Date: Sun, 14 Apr 2002 23:38:30 +0200 [thread overview]
Message-ID: <15545.63190.565448.189570@robur.slu.se> (raw)
In-Reply-To: <Pine.GSO.4.30.0204141644390.10326-100000@shell.cyberus.ca>
jamal writes:
>
>
>
> If i summarize your problem is that you are building up
> dst caches faster than they can be garbage collected.
>
> Solution
> 1. Make the max size large enough to catchup with rate
> 2. Make sure that every time you go into garbage collection you are
> successful.
> - reducing the min interval to 1 might be a little aggressive.
> But you can tune this later
> - You wanna make sure you get a large positive "goal" every time
> play with ip_rt_gc_elasticity (/proc/sys/net/ipv4/route/gc_elasticity)
> also the rt_hash_log
>
> All the above are configurable via /proc
>
> have to run
And in in 2.4.X the GC is done more dynamically around an "equilibrium point".
Alexey warned about 2.2 code...
Snaphot from Linux router. 2.4.10
cat /proc/sys/net/ipv4/route/max_size
65536
rtstat
size IN: hit tot mc no_rt bcast madst masrc OUT: hit tot mc
9861 24721 131 0 1 0 0 0 2 1 0
10119 25044 128 0 0 0 0 0 2 0 0
2514 24125 1293 2 0 0 0 0 1 2 0
3654 24315 591 2 1 1 0 0 0 2 1
4441 25170 387 0 2 0 0 0 1 3 0
5060 25000 304 2 1 0 0 0 0 2 0
5532 25627 230 2 0 0 0 0 0 2 0
5947 25754 242 2 0 0 0 0 1 3 0
6379 25602 211 0 1 0 0 0 2 3 0
6371 25523 235 0 0 0 0 0 1 1 0
6752 24251 187 1 0 0 0 0 0 1 0
7077 25310 160 0 0 0 0 0 1 1 0
6851 24608 222 2 1 0 0 0 1 3 0
7256 25313 199 1 0 0 0 0 1 2 0
7086 24656 174 0 0 0 0 0 0 1 0
7459 24070 180 3 1 0 0 0 1 2 0
2434 23844 1340 7 1 0 0 0 1 3 0
1:st ipv4_dst_ops.entries. (You see GC happen)
2:nd: Warm cache hits -> approx aggregated packet/sec.
3:rd: Cache misses -> approx connections/sec.
Cheers.
--ro
next prev parent reply other threads:[~2002-04-14 21:38 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-14 20:44 dst cache overflow 2.2.x; x>=16 Milam, Chad
2002-04-14 20:53 ` jamal
2002-04-14 21:38 ` Robert Olsson [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-04-15 19:58 Milam, Chad
2002-04-15 21:47 ` Robert Olsson
2002-04-15 19:07 Milam, Chad
2002-04-15 22:53 ` Julian Anastasov
2002-04-15 19:53 ` Andi Kleen
2002-04-15 18:10 Milam, Chad
2002-04-15 18:27 ` jamal
2002-04-15 18:31 ` Julian Anastasov
2002-04-15 15:21 Milam, Chad
2002-04-15 17:53 ` jamal
2002-04-14 20:25 Milam, Chad
2002-04-14 20:32 ` jamal
2002-04-14 20:38 ` jamal
2002-04-14 19:54 Milam, Chad
2002-04-14 20:04 ` jamal
2002-04-14 17:51 Milam, Chad
2002-04-14 19:39 ` jamal
2002-04-14 19:43 ` jamal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15545.63190.565448.189570@robur.slu.se \
--to=robert.olsson@data.slu.se \
--cc=Chad_Milam@nyc.yr.com \
--cc=hadi@cyberus.ca \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).