Eric Dumazet
8d3f099abe
[IPV4] FIB_HASH : Avoid unecessary loop in fn_hash_dump_zone()
...
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 ("[IPV4] ROUTE: ip_rt_dump()
is unecessary slow")
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@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-20 20:31:39 -08:00
..
2007-12-05 05:37:27 -08:00
2007-12-26 19:36:33 -08:00
2007-11-01 00:39:31 -07:00
2007-11-02 08:47:06 +01:00
2007-12-19 23:38:11 -08:00
2007-10-26 04:29:08 -07:00
2007-06-03 18:08:50 -07:00
2008-01-04 03:55:34 -08:00
2007-12-11 02:45:26 -08:00
2007-12-21 02:01:53 -08:00
2008-01-20 20:31:39 -08:00
2007-05-24 16:36:53 -07:00
2007-11-10 22:12:03 -08:00
2007-10-10 16:49:16 -07:00
2008-01-20 20:31:38 -08:00
2007-10-26 04:06:08 -07:00
2007-10-10 16:55:33 -07:00
2007-10-18 22:00:17 -07:00
2007-12-03 15:51:25 +11:00
2007-10-17 19:48:26 -07:00
2007-11-07 04:15:11 -08:00
2008-01-08 23:30:18 -08:00
2007-11-07 04:15:11 -08:00
2007-11-12 21:27:28 -08:00
2007-10-15 12:26:35 -07:00
2007-10-17 21:37:22 -07:00
2007-12-20 00:10:33 -08:00
2007-10-15 12:26:35 -07:00
2007-07-31 14:06:45 -07:00
2007-11-07 04:08:25 -08:00
2007-11-07 04:08:55 -08:00
2007-11-07 04:15:03 -08:00
2008-01-08 23:29:58 -08:00
2007-10-23 21:27:55 -07:00
2007-10-10 16:55:33 -07:00
2007-10-20 01:34:40 +02:00
2007-10-15 12:26:39 -07:00
2007-10-15 12:26:29 -07:00
2007-11-07 04:08:57 -08:00
2007-04-25 22:28:20 -07:00
2008-01-08 23:29:57 -08:00
2008-01-10 03:55:57 -08:00
2007-04-25 22:25:26 -07:00
2007-11-19 23:28:21 -08:00
2007-10-10 16:47:55 -07:00
2007-07-18 01:46:58 -07:00
2007-10-10 16:47:55 -07:00
2007-10-22 02:59:54 -07:00
2007-07-18 01:46:58 -07:00
2007-08-07 18:29:05 -07:00
2007-07-18 01:46:58 -07:00
2007-11-30 01:10:55 +11:00
2007-12-29 19:11:21 -08:00
2007-11-20 17:30:31 -08:00
2007-07-31 02:27:57 -07:00
2007-10-10 16:48:00 -07:00
2007-12-05 05:37:31 -08:00
2007-10-10 16:49:06 -07:00
2007-07-18 01:46:58 -07:00
2007-10-10 16:48:00 -07:00
2007-10-29 22:37:25 -07:00
2007-07-31 02:27:57 -07:00
2007-07-31 02:27:57 -07:00
2007-07-31 02:27:57 -07:00
2007-07-31 02:27:57 -07:00
2007-11-07 04:15:11 -08:00
2007-11-10 21:48:54 -08:00
2007-10-10 16:48:31 -07:00
2007-11-07 04:08:58 -08:00
2007-11-07 04:08:58 -08:00
2007-10-17 21:35:51 -07:00
2007-10-17 21:31:50 -07:00
2007-10-10 16:55:54 -07:00
2007-10-17 21:31:50 -07:00
2007-10-17 21:35:51 -07:00
2007-10-17 21:35:51 -07:00
2007-10-17 21:33:12 -07:00
2007-10-17 21:28:53 -07:00