Received: from oss.sgi.com (localhost.localdomain [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g3EK9J8d012668 for ; Sun, 14 Apr 2002 13:09:19 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g3EK9J4A012667 for netdev-outgoing; Sun, 14 Apr 2002 13:09:19 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-netdev@oss.sgi.com using -f Received: from cyberus.ca (mail.cyberus.ca [216.191.240.111]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g3EK9E8d012663 for ; Sun, 14 Apr 2002 13:09:14 -0700 Received: from shell.cyberus.ca (shell [216.191.240.114]) by cyberus.ca (8.9.3/8.9.3/Cyberus Online Inc.) with ESMTP id QAA18483; Sun, 14 Apr 2002 16:10:00 -0400 (EDT) Received: from localhost (hadi@localhost) by shell.cyberus.ca (8.11.6+Sun/8.11.6) with ESMTP id g3EK4pO13129; Sun, 14 Apr 2002 16:04:51 -0400 (EDT) X-Authentication-Warning: shell.cyberus.ca: hadi owned process doing -bs Date: Sun, 14 Apr 2002 16:04:50 -0400 (EDT) From: jamal To: "Milam, Chad" cc: Subject: RE: dst cache overflow 2.2.x; x>=16 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-netdev@oss.sgi.com Precedence: bulk Content-Length: 1025 Lines: 29 On Sun, 14 Apr 2002, Milam, Chad wrote: > I lowered the timeout to make gc more agressive. Though, it can still > be adjusted via a /proc entry. Default was 300. Increasing the other > parameters that you specified (which I have done) only delays the > inevitable "dst cache overflow". The problem is that gc (rather > rt_free) is not decrementing .entries. So it _thinks_ the table > has overflown. > Overflow will only happen if /proc/sys/net/ipv4/route/gc_thresh is exceeded. A default of 512 aint that big. What is the average number of entries you are seeing? What kind of data do you get from running rtstat? Increment the size of /proc/sys/net/ipv4/route/gc_thresh to a higher number matching your avg entries; Garbage collection aint that cheap: so safer to just make the size larger instead of invoking it more frequently -- RAM is cheap. Note also that garbage collection will run every /proc/sys/net/ipv4/route/gc_min_interval time expiry regardless of how you big your max threshold is. cheers, jamal