| To: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [BUG] overflow in net/ipv4/route.c rt_check_expire() |
| From: | Eric Dumazet <dada1@xxxxxxxxxxxxx> |
| Date: | Sat, 02 Apr 2005 11:21:30 +0200 |
| Cc: | davem@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx, Robert.Olsson@xxxxxxxxxxx |
| In-reply-to: | <E1DHdsP-0003Lr-00@gondolin.me.apana.org.au> |
| References: | <E1DHdsP-0003Lr-00@gondolin.me.apana.org.au> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla Thunderbird 1.0 (Windows/20041206) |
Herbert Xu a écrit :
Eric Dumazet <dada1@xxxxxxxxxxxxx> wrote:
Yes. rt_garbage_collect() has serious problems. But this function is sooo complex I dont want to touch it and let experts do it if they want. But then one may think why we have two similar functions that are doing basically the same thing : garbage collection. One of a production machine rtstat -i 1 output is : 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| 2618087| 28581| 7673| 0| 0| 0| 0| 0| 1800| 1450| 0| 0| 0| 0| 0| 37630| 4783| 2618689| 25444| 4918| 0| 0| 0| 0| 0| 2051| 1699| 0| 0| 0| 0| 0| 27741| 5461| 2619369| 25000| 4567| 0| 0| 0| 0| 0| 1860| 1304| 0| 0| 0| 0| 0| 26606| 4563| 2618396| 24830| 4633| 0| 0| 0| 0| 0| 1959| 1492| 0| 0| 0| 0| 0| 26643| 4930|
Crashes usually occurs when secret_interval interval is elapsed : rt_cache_flush(0); is called, and the whole machine begins to die.
We could also try to perform GC on L1_CACHE_SIZE/sizeof(struct rt_hash_bucket) chains, not only the 'current chain', to fully use the cache miss.
|
| Previous by Date: | Re: RFC: Redirect-Device, Meelis Roos |
|---|---|
| Next by Date: | Fw: [Bugme-new] [Bug 4434] New: Tulip based NIC card causes hard lock up of PC, Andrew Morton |
| Previous by Thread: | Re: [BUG] overflow in net/ipv4/route.c rt_check_expire(), Herbert Xu |
| Next by Thread: | Get rid of rt_check_expire and rt_garbage_collect, Herbert Xu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |