| To: | Robert Olsson <Robert.Olsson@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: Route cache performance |
| From: | Simon Kirby <sim@xxxxxxxxxxxxx> |
| Date: | Tue, 6 Sep 2005 16:57:00 -0700 |
| Cc: | Alexey Kuznetsov <kuznet@xxxxxxxxxxxxx>, Eric Dumazet <dada1@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx |
| In-reply-to: | <17167.29239.469711.847951@xxxxxxxxxxxx> |
| References: | <20050815213855.GA17832@xxxxxxxxxxxxx> <43014E27.1070104@xxxxxxxxxxxxx> <20050823190852.GA20794@xxxxxxxxxxxxx> <17163.32645.202453.145416@xxxxxxxxxxxx> <20050824000158.GA8137@xxxxxxxxxxxxx> <20050825181111.GB14336@xxxxxxxxxxxxx> <20050825200543.GA6612@xxxxxxxxxxxxxxx> <20050825212211.GA23384@xxxxxxxxxxxxx> <20050826115520.GA12351@xxxxxxxxxxxxxxx> <17167.29239.469711.847951@xxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.9i |
On Fri, Aug 26, 2005 at 09:49:11PM +0200, Robert Olsson wrote:
> Hello!
>
> This thread seems familar :)
>
> I think Simon uses UP and it could be idea to check if the RCU deferred
> deletion causes the problem.
>...
> --- a/net/ipv4/route.c
> +++ b/net/ipv4/route.c
> @@ -485,7 +485,11 @@ static struct file_operations rt_cpu_seq
> static __inline__ void rt_free(struct rtable *rt)
> {
> multipath_remove(rt);
> +#ifdef CONFIG_SMP
> call_rcu_bh(&rt->u.dst.rcu_head, dst_rcu_free);
> +#else
> + dst_free((struct dst_entry *)rt);
> +#endif
> }
>
> static __inline__ void rt_drop(struct rtable *rt)
Woot!
Yes, this is the difference. With the patch applied (ajust directly
freeing the dst_entry), everything balances easily, there are no
overflows, and the result of rt_may_expire() looks very reasonable.
(Yay!)
So, this seems to be the culprit. Is NAPI supposed to allow the
queued bh to run or should we just not be queuing this?
Simon-
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2.6.13] S2io: Hardware and miscellaneous fixes, ravinandan . arakali |
|---|---|
| Next by Date: | Re: Route cache performance, Alexey Kuznetsov |
| Previous by Thread: | [PATCH 2.6.13] S2io: Hardware and miscellaneous fixes, ravinandan . arakali |
| Next by Thread: | Re: Route cache performance, Alexey Kuznetsov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |