Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Aug 2006 09:59:22 +0700
From:      Bachilo Dmitry <root@solink.ru>
To:        freebsd-current@freebsd.org
Subject:   Re: throughput and interrupts
Message-ID:  <200608160959.23100.root@solink.ru>
In-Reply-To: <20060815130002.M45647@fledge.watson.org>
References:  <200608151627.37828.root@solink.ru> <20060815130002.M45647@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
=F7 =D3=CF=CF=C2=DD=C5=CE=C9=C9 =CF=D4 =F7=D4=CF=D2=CE=C9=CB 15 =C1=D7=C7=
=D5=D3=D4=C1 2006 19:02 Robert Watson =CE=C1=D0=C9=D3=C1=CC(a):
> On Tue, 15 Aug 2006, Bachilo Dmitry wrote:
> > I am completely stuck. I have a router, that rules three subnets. At
> > first there were Allied Telesyn's netcards with realtek chipsets. I am
> > using ipfw+natd and I had like 3,5 megabytes per second with 20 per cent
> > of interrupt load. I had "discarded oversized frame" too often so I've
> > replaced two main cards with 3Com 905 and now my xl0 and xl1 never
> > discard frames. But I saw no speed boost and interrupts were also very
> > high. I have discovered some IRQ conflicts and removed them, now I have
> > single device per IRQ, but still i have near 20-30 % of interrupt load,
> > when i download something through this router (and natd takes rest % of
> > CPU). Some people advised me to use polling, so I've built kernel with
> > HZ=3D1000, polling and tried it. Interrupts grew to 40-50% and speed
> > decreased to 200-300 kb/s, so I had to turn the polling off.
> >
> > I just don't know what to try, to gain at least 9 mb/s, because this is
> > what I get at home with the same cards, the same processor, with no
> > polling and throgh the same provider.

Oh, it's natd. Now I see, but I just don't get it. I know that natd is not=
=20
efficient but, as I've said, at home I have 9 or almost 10 MB/sec through t=
he=20
natd, while at this particular server I see only 3,7 MB maximum. I've tried=
=20
now to turn all the natting off and tried to download a file and got like 9=
=20
MB/sec, so it is natd who loads the system up.

Someone advised me to use pf or ipnat, but I never did that before and hear=
d=20
that this nats have some limitations (like ipnat can't translate icmp packe=
ts=20
or something). Furthermore I can't stop using ipfw, so pf is automaticly=20
excluded. Maybe there are some more advises? I don't really want to have to=
p=20
performance with this router, I just want to raise it a bit, to at least st=
op=20
loosing control on this router while someone is watching movie through it -=
=20
ssh session becomes slow, so I type one letter per minute in this case.

Well, if there is nothing I can do, I will stay with it, things are not tha=
t=20
bad afterall :-)

=2D-=20
=2D-----------------------
=F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =E2=C1=DE=C9=CC=CF =E4=CD=C9=D4=D2=C9=CA
=F2=D5=CB=CF=D7=CF=C4=C9=D4=C5=CC=D8 =CF=D4=C4=C5=CC=C1 =D3=C9=D3=D4=C5=CD=
=CE=CF=CA =C9=CE=D4=C5=C7=D2=C1=C3=C9=C9
=EF=EF=EF "=EB=CF=CD=D0=C1=CE=C9=D1 =F3=CF=EC=C9=CE=CB"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608160959.23100.root>