Bug 53530

Summary: check_default_route () very slow on machines with many routes
Product: [Retired] Red Hat Linux Reporter: Dan Hollis <goemon>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED DUPLICATE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: link, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 18:48:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dan Hollis 2001-09-10 23:25:38 UTC
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):


How reproducible:
Always

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... :-(
	

Additional info:

Comment 1 Terje Bless 2003-10-04 14:25:59 UTC
Isn't this a duplicate of Bug #66263 (which has been "CLOSED RAWHDE")?

Comment 2 Bill Nottingham 2003-10-06 05:34:43 UTC

*** This bug has been marked as a duplicate of 66263 ***

Comment 3 Red Hat Bugzilla 2006-02-21 18:48:08 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.