[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20080118.043045.23272694.davem@davemloft.net>
Date: Fri, 18 Jan 2008 04:30:45 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: dada1@...mosbay.com
Cc: netdev@...r.kernel.org, Robert.Olsson@...a.slu.se
Subject: Re: [IPV4] FIB_HASH : Avoid unecessary loop in fn_hash_dump_zone()
From: Eric Dumazet <dada1@...mosbay.com>
Date: Wed, 16 Jan 2008 18:19:25 +0100
> I noticed "ip route list" was slower than "cat /proc/net/route" on a machine with a full Internet
> routing table (214392 entries : Special thanks to Robert ;) )
>
> This is similar to problem reported in commit d8c9283089287341c85a0a69de32c2287a990e71
>
> Fix is to avoid scanning the begining of fz_hash table, but directly seek to the right offset.
>
> Before patch :
>
> time ip route >/tmp/ROUTE
>
> real 0m1.285s
> user 0m0.712s
> sys 0m0.436s
>
> After patch
>
> # time ip route >/tmp/ROUTE
>
> real 0m0.835s
> user 0m0.692s
> sys 0m0.124s
>
> Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
Applied, thanks Eric.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists