| To: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [BUG] overflow in net/ipv4/route.c rt_check_expire() |
| From: | Robert Olsson <Robert.Olsson@xxxxxxxxxxx> |
| Date: | Mon, 4 Apr 2005 15:17:12 +0200 |
| Cc: | Robert Olsson <Robert.Olsson@xxxxxxxxxxx>, Eric Dumazet <dada1@xxxxxxxxxxxxx>, davem@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20050404104857.GA32359@xxxxxxxxxxxxxxxxxxx> |
| References: | <E1DHdsP-0003Lr-00@xxxxxxxxxxxxxxxxxxxxxxxx> <424E641A.1020609@xxxxxxxxxxxxx> <16974.41648.568927.54429@xxxxxxxxxxxx> <20050402193224.GA25157@xxxxxxxxxxxxxxxxxxx> <16976.17876.832677.945878@xxxxxxxxxxxx> <20050403214358.GA15901@xxxxxxxxxxxxxxxxxxx> <16977.6411.415326.988754@xxxxxxxxxxxx> <20050404104857.GA32359@xxxxxxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Herbert Xu writes:
> What I'm trying to catch is the case when you've got x number of
> entries in the table and a large fraction of them are all in one
> chain.
>
> This does not conflict with the goal of keeping the chains short.
>
> Even if you strictly allow only 8 entries per chain, it's trivial
> to exceed 8 times the average chain length.
OK! Since deletions doen't happen instantly..
Try some code it can print a warning to start with.
> > IMO the thoughts of extending in-flow GC etc are interesting and can
> > hopefully give us more robust performance.
>
> Indeed, it looks like Alexey has already put the code there. It just
> needs to be made more strict :) It needs to free entries even if they
> are in use.
>
> After all, freeing an entry in use can't be much worse than not having
> a cache at all. OTOH, having a very long chain is definitely much worse
> than not having a cache :)
FYI I'm experimenting with "new" routing algo that does 24-bit ipv4 lookup
and routing without route hash to see if we can come close route hash
performance This needs memory. :)
IP: FIB routing table of 16777216 buckets, 65536Kbytes for table id=255
Needs some more work before testing.
--ro
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: take 2-2 WAS(Re: PATCH: IPSEC xfrm events, jamal |
|---|---|
| Next by Date: | Re: [Ipsec-tools-devel] Re: IPSEC: on behavior of acquire, Aidas Kasparas |
| Previous by Thread: | Re: [BUG] overflow in net/ipv4/route.c rt_check_expire(), Herbert Xu |
| Next by Thread: | Re: [RFC] netif_rx: receive path optimization, Andi Kleen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |