iproute2 proposal

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Stephen Hemminger <shemminger@...>
Cc: <netdev@...>
Date: Tuesday, August 5, 2008 - 6:25 pm

While using iproute2 in batch mode i notice that adding 11362 rules, on system 
with 500+ interfaces takes up to 1minute on Xeon 3.0 Ghz.
After "oprofiling" i got result:

CPU: P4 / Xeon with 2 hyper-threads, speed 2992.84 MHz (estimated)
Counted GLOBAL_POWER_EVENTS events (time during which processor is not 
stopped) with a unit mask of 0x01 (mandatory) count 100000
samples  %        image name               symbol name
86166    57.3473  tc                       ll_remember_index
48103    32.0147  tc                       parse_rtattr
8497      5.6551  tc                       rtnl_dump_filter
1751      1.1654  [vdso] (tgid:22801 range:0xb7f66000-0xb7f67000) (no symbols)
1085      0.7221  tc                       tc_calc_xmittime
672       0.4472  tc                       .plt

I did small patch, and voila! batch finished in 2 seconds successfully!

Proof of concept patch is attached. Not sure if it is not breaking any other 
things. Waiting for any comments.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
iproute2 proposal, Denys Fedoryshchenko, (Tue Aug 5, 6:25 pm)
Re: iproute2 proposal, Patrick McHardy, (Wed Aug 6, 4:28 am)
Re: iproute2 proposal, Denys Fedoryshchenko, (Wed Aug 6, 6:04 am)
Re: iproute2 proposal, Patrick McHardy, (Wed Aug 6, 6:09 am)
Re: iproute2 proposal, Denys Fedoryshchenko, (Wed Aug 6, 6:22 am)
Re: iproute2 proposal, Patrick McHardy, (Wed Aug 6, 6:25 am)
Re: iproute2 proposal, Denys Fedoryshchenko, (Wed Aug 6, 6:38 am)
Re: iproute2 proposal, Patrick McHardy, (Wed Aug 6, 6:09 am)