Red Hat Bugzilla – Bug 53530
check_default_route () very slow on machines with many routes
Last modified: 2014-03-16 22:23:23 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.9 i586; Nav)
Description of problem:
On redhat 7.1 systems configured as bgp routers, check_default_route() in
/etc/sysconfig/network-scripts/network-functions can take upwards of 5-10
minutes to execute... (think on the order of 150,000 routes...)
The obvious solution is to make check_default_route () use 'ip ro list
match 0.0.0.0/0' or something similar instead of the extremely slow and
costly piping 'route -n' into gawk.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. install redhat 7.1
2. setup zebra as a bgp peer and get 150,000 routes from another bgp peer
3. try to shutdown the box with ctrl-alt-del, go get some coffee because
its going to be a long wait... :-(
Isn't this a duplicate of Bug #66263 (which has been "CLOSED RAWHDE")?
*** This bug has been marked as a duplicate of 66263 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.