netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ulrich Weber <ulrich.weber@googlemail.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Ulrich Weber <uweber@astaro.com>,
	David Miller <davem@davemloft.net>,
	netdev@vger.kernel.org
Subject: Re: [RFC PATCH] dont create cached routes from ARP requests
Date: Fri, 24 Sep 2010 17:00:12 +0200	[thread overview]
Message-ID: <4C9CBCFC.6080300@gmail.com> (raw)
In-Reply-To: <1285254302.2509.47.camel@edumazet-laptop>

[-- Attachment #1: Type: text/plain, Size: 653 bytes --]

Hi Eric,

please find the output in the attached text file.

Neighbor garbage collection wont't work because all
neighbor records are bound to cached routes.

Forced route garbaged collections returns without freeing
any routes, probably because the route threshold is quite high
with 65536 compared to the small neighbor threshold of 1024,
resulting in a fixed amount of 1024 cached routes...

Instead of running the garbage collection we could flush the route
cache completely if the neighbor cache overflows.
But why do we have to cache that routes in first place ?
See the previous patch which skips caching for that kind of routes.

Cheers
 Ulrich

[-- Attachment #2: cache_debug.txt --]
[-- Type: text/plain, Size: 8009 bytes --]

/proc/sys/net/ipv4/route/error_burst:1250
/proc/sys/net/ipv4/route/error_cost:250
/proc/sys/net/ipv4/route/gc_elasticity:8
/proc/sys/net/ipv4/route/gc_interval:60
/proc/sys/net/ipv4/route/gc_min_interval:0
/proc/sys/net/ipv4/route/gc_min_interval_ms:500
/proc/sys/net/ipv4/route/gc_thresh:65536
/proc/sys/net/ipv4/route/gc_timeout:300
/proc/sys/net/ipv4/route/max_size:1048576
/proc/sys/net/ipv4/route/min_adv_mss:256
/proc/sys/net/ipv4/route/min_pmtu:552
/proc/sys/net/ipv4/route/mtu_expires:600
/proc/sys/net/ipv4/route/redirect_load:5
/proc/sys/net/ipv4/route/redirect_number:9
/proc/sys/net/ipv4/route/redirect_silence:5120

/proc/sys/net/ipv4/neigh/default/gc_interval:30
/proc/sys/net/ipv4/neigh/default/gc_stale_time:60
/proc/sys/net/ipv4/neigh/default/gc_thresh1:128
/proc/sys/net/ipv4/neigh/default/gc_thresh2:512
/proc/sys/net/ipv4/neigh/default/gc_thresh3:1024

net-next:
rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|
 entries|  in_hit|in_slow_|in_slow_|in_no_ro|  in_brd|in_marti|in_marti| out_hit|out_slow|out_slow|gc_total|gc_ignor|gc_goal_|gc_dst_o|in_hlist|out_hlis|
        |        |     tot|      mc|     ute|        |  an_dst|  an_src|        |    _tot|     _mc|        |      ed|    miss| verflow| _search|t_search|
      10|     255|       2|       1|       0|       0|       0|       0|     128|      17|       2|       0|       0|       0|       0|      15|       3|
     199|       1|     189|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|
     433|     190|     234|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       2|       0|
     433|     424|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       1|       0|
     433|     235|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|
     533|     119|     100|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       1|       0|
     533|     219|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|
     533|     219|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|
     551|     406|      18|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       2|       0|
     551|     424|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       2|       0|
     551|     424|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       2|       0|
     973|       1|     422|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       9|       0|
     973|     423|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       2|       0|
     973|     423|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       2|       0|
    1030|     357|      68|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       2|       0|
    1030|     413|      11|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       2|       0|
    1030|     413|      11|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       2|       0|
    1030|     124|     300|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       2|       0|
    1030|     124|     300|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       2|       0|
    1030|     125|     300|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       2|       0|

next-next with forced rt_garbage_collect
rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|rt_cache|
 entries|  in_hit|in_slow_|in_slow_|in_no_ro|  in_brd|in_marti|in_marti| out_hit|out_slow|out_slow|gc_total|gc_ignor|gc_goal_|gc_dst_o|in_hlist|out_hlis|
        |        |     tot|      mc|     ute|        |  an_dst|  an_src|        |    _tot|     _mc|        |      ed|    miss| verflow| _search|t_search|
       8|      43|       2|       0|       0|       0|       0|       0|     129|      20|       3|       0|       0|       0|       0|       1|       1|
     138|       1|     130|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|
     431|     131|     293|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       3|       0|
     431|     424|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       3|       0|
     431|     294|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       3|       0|
     531|     120|     100|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|
     531|     220|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|
     531|     220|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|
     550|     405|      19|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       3|       0|
     550|     424|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       3|       0|
     550|     424|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       3|       0|
     972|       1|     422|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       1|       0|
     972|     423|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       1|       0|
     972|     423|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       0|       1|       0|
    1029|     358|      66|       0|       0|       0|       0|       0|       0|       0|       0|       9|       0|       0|       0|       1|       0|
    1029|     415|       9|       0|       0|       0|       0|       0|       0|       0|       0|       9|       0|       0|       0|       1|       0|
    1029|     415|       9|       0|       0|       0|       0|       0|       0|       0|       0|       9|       0|       0|       0|       1|       0|
    1029|     122|     302|       0|       0|       0|       0|       0|       0|       0|       0|     302|       0|       0|       0|       2|       0|
    1029|     122|     302|       0|       0|       0|       0|       0|       0|       0|       0|     302|       0|       0|       0|       2|       0|
    1029|     122|     302|       0|       0|       0|       0|       0|       0|       0|       0|     302|       0|       0|       0|       2|       0|

  reply	other threads:[~2010-09-24 15:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-22 16:22 [RFC PATCH] dont create cached routes from ARP requests Ulrich Weber
2010-09-23  3:34 ` David Miller
2010-09-23 14:47   ` Ulrich Weber
2010-09-23 15:05     ` Eric Dumazet
2010-09-24 15:00       ` Ulrich Weber [this message]
2010-09-24 15:28         ` Eric Dumazet
2010-09-24 15:34           ` Eric Dumazet
2010-09-24 15:43             ` Ulrich Weber
2010-09-24 15:38           ` Ulrich Weber
2010-09-24 16:05             ` Eric Dumazet
2010-09-24 16:40               ` Ulrich Weber
2010-09-24 16:58                 ` Eric Dumazet
2010-09-27 13:11                   ` Ulrich Weber
2010-09-23 19:04     ` David Miller

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=4C9CBCFC.6080300@gmail.com \
    --to=ulrich.weber@googlemail.com \
    --cc=davem@davemloft.net \
    --cc=eric.dumazet@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=uweber@astaro.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).