North American Network Operators Group

Date Prev | Date Next | Date Index | Thread Index | Author Index | Historical

Re: Linux Router KIT

  • From: Pete Carah
  • Date: Fri Oct 30 18:22:17 1998

>On Thu, 29 Oct 1998, Jon Lewis wrote:
>> On Wed, 28 Oct 1998, Dan Hollis wrote:
>> > > Also, for a long time, Linux had a hard time with lots or routes.
>> > No longer applies. In fact Linux is now faster than BSD up to about
>> > 60-70,000 routes. BSD is faster at about 200,000. In between its about
>> > even.
>> Where/how are you doing simulations with that many routes?
>
>These are just numbers reported by Alan Cox and Alexey Kuznetsov.
>
>> Feeding full routes to a linux 2.0.3x box running gated, I get:
>> # cat /proc/net/route | wc -l
>>   54677
>> and that command takes 13s to complete.
>
>Well thats great for benchmarking procfs B)
>
>I wonder how long 'netstat -rn' takes on *BSD with 54k routes.

% time eval 'netstat -rn | wc -l'
   53606
2.6u 2.3s 0:05.74 86.4% 64+407k 0+0io 0pf+0w

I don't know which process the u and s numbers refer to; it could easily
be wc...

This is on a box with an AMD K6/300 and 256mb ram (unneeded normally,
but it was starting to swap a little at 128m.  After being up a day
(we upgraded hardware last night; before that it had been up a month) it 
looks like 144mb ram would be plenty.)

It gets 4 full views and several private peers,
with 4 ethernet cards and a quad (et) sync.

Gated's ram is not too bad for 4 full views:

root       182  0.0 15.6 40088 40440  ??  S    11:58PM    2:22.73 /usr/local/sbin/gated

We normally push 10-12mbits/sec but only around 1k packets/sec.
With about 50 (ipfw) filter rules, the cpu is normally around 5-15%, almost
all "interrupt", as might be expected.

-- Pete