linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [Fwd: Linux 2.4 networking/routing slowdown]
       [not found] <3B600EAD.3F8F9A70@isg.de>
@ 2001-07-26 12:45 ` Lutz Vieweg
  2001-07-26 12:54   ` Jan Kasprzak
  0 siblings, 1 reply; 3+ messages in thread
From: Lutz Vieweg @ 2001-07-26 12:45 UTC (permalink / raw)
  To: kas, linux-kernel; +Cc: unix

Jan Kasprzak <kas@informatics.muni.cz> wrote:

> >         I have tried to upgrade my firewall to 2.4 kernel (2.4.7), and I have
> > observed a major slowdown of the network speed.

We observed a similar problem, hunted it down via kernel profiling:

When we used ipchains to establish a port redirection (just one
rule, map one port to another), the network would become rediculously
slow after some time of use, causing the CPU to spend almost 100%
as "system time".

We found that the expensive kernel functions were redir_cmp and unredir_cmp,
which were called an unreasonable amount of times by find_redir - seems the
iteration over the list there is quite lengthy...

We didn't investigate the problem further, but found that by using 
"iptables" instead of the obsolete "ipchains" to establish the redirection
rule, everything was fine again.

So my advice would be to try iptables and see if your problem goes away
as well.

Regards,

Lutz Vieweg

--
 Dipl. Phys. Lutz Vieweg | email: lkv@isg.de
 Innovative Software AG  | Phone/Fax: +49-69-505030 -120/-505
 Feuerbachstrasse 26-32  | http://www.isg.de/people/lkv/
 60325 Frankfurt am Main | ^^^ PGP key available here ^^^

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Fwd: Linux 2.4 networking/routing slowdown]
  2001-07-26 12:45 ` [Fwd: Linux 2.4 networking/routing slowdown] Lutz Vieweg
@ 2001-07-26 12:54   ` Jan Kasprzak
       [not found]     ` <20010726152322.A1339@codefountain.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kasprzak @ 2001-07-26 12:54 UTC (permalink / raw)
  To: Lutz Vieweg; +Cc: linux-kernel, unix

Lutz Vieweg wrote:
: We didn't investigate the problem further, but found that by using 
: "iptables" instead of the obsolete "ipchains" to establish the redirection
: rule, everything was fine again.
: 
: So my advice would be to try iptables and see if your problem goes away
: as well.
: 
	Well, the problem is, that even without ipchains.o module
loaded, the server is not able to route even nearly close to 100Mbps.
I'd like to have it routing at port speeds before I'll try to dig into
ipchains/iptables.

-Yenya

-- 
\ Jan "Yenya" Kasprzak <kas at fi.muni.cz>       http://www.fi.muni.cz/~kas/
\\ PGP: finger kas at aisa.fi.muni.cz   0D99A7FB206605D7 8B35FCDE05B18A5E //
\\\             Czech Linux Homepage:  http://www.linux.cz/              ///
--Just returned after being 10 days off-line. Sorry for the delayed reply.--

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Fwd: Linux 2.4 networking/routing slowdown]
       [not found]     ` <20010726152322.A1339@codefountain.com>
@ 2001-07-26 13:33       ` Jan Kasprzak
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Kasprzak @ 2001-07-26 13:33 UTC (permalink / raw)
  To: craig.schlenter; +Cc: linux-kernel

[Cc'd linux-kernel as well, maybe this can help someone]

craig.schlenter@freemail.absa.co.za wrote:
: Are you sure the network cards are running at full speed - perhaps
: something has decided to run at half duplex or whatever due to a network
: driver change ... how about putting the box on the network without
: having it do any routing and just doing a couple of ftp's to other local
: machines to check the speeds with 2.2 and 2.4 kernels, testing all the cards
: involved ...

	The NICs on firewall are set up to 100baseTX-FD using /sbin/mii-tool
(and in 2.2. kernel, they are hardcoded to 100baseTX-FD via the boot
parameters).

	The FTP from firewall to our FTP server (which is connected to the
same switch - Cisco Catalyst 2900) is slow as well (I tried to
get /pub/FILES.byname /dev/null).

-Y.

-- 
\ Jan "Yenya" Kasprzak <kas at fi.muni.cz>       http://www.fi.muni.cz/~kas/
\\ PGP: finger kas at aisa.fi.muni.cz   0D99A7FB206605D7 8B35FCDE05B18A5E //
\\\             Czech Linux Homepage:  http://www.linux.cz/              ///
--Just returned after being 10 days off-line. Sorry for the delayed reply.--

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-07-26 13:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3B600EAD.3F8F9A70@isg.de>
2001-07-26 12:45 ` [Fwd: Linux 2.4 networking/routing slowdown] Lutz Vieweg
2001-07-26 12:54   ` Jan Kasprzak
     [not found]     ` <20010726152322.A1339@codefountain.com>
2001-07-26 13:33       ` Jan Kasprzak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).