Skip to contentSkip to conversation

Ethernet card interrupt conflict

LARTC yuxiao jia 3 participants 5 messages Mar 30, 2003 – Apr 7, 2003

lore
Share & tools
lore

yuxiao jia

author
#0 lore raw

Hello all

I install 4 ethernet card in my Linux router. When I use

cat /proc/interrupt it show me two interface use same IRQ

...11:...........eth0 and eth2

I want to know how I can modify the eth0 to another unsued IRQ or avoid this things happen

Thanks

Regrads

yuxiao

----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Saturday, March 29, 2003 11:37 PM
Subject: LARTC digest, Vol 1 #1090 - 5 msgs

Quoted 15 lines

Send LARTC mailing list submissions to
[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.ds9a.nl/mailman/listinfo/lartc
or, via email, send a message with subject or body 'help' to [email protected]

You can reach the person managing the list at
[email protected]

When replying, please edit your Subject line so it is more specific than "Re: Contents of LARTC digest..."

Quoted 6 lines

Today's Topics:

1. Re: How far can TC go? (Patrick McHardy)
2. Re: How far can TC go? (Randolph Carter)
3. Re: How to use the tc -s [statistics] option? (Stef Coene)
4. Re: Changing Linux traffic control parameters on the fly (Stef

Coene)

Quoted 1 line
   5.

=?iso-8859-1?B?QnJhbndpdGggY29udHJvbCBvdmVyIDIgQURTTLRzIGludGVyZmFjZXM=?(=?iso-8859-1?B?Sm9z6SBMdWlzIEdhcmPtYSBM83Bleg=?=)

Quoted 21 lines

--__--__--

Message: 1
Date: Sat, 29 Mar 2003 11:08:30 +0100
From: Patrick McHardy <[email protected]>
To: Randolph Carter <[email protected]>
Cc: Lartc List <[email protected]>
Subject: Re: [LARTC] How far can TC go?

Quoted 9 lines · Randolph Carter

I have been working with HTB for around 10months; I've been testing it on several enviroments and have had a good experience with. I'm Wondering if if I could use HTB in a more agressive environment; and use some feautures like layer-5-7 recogniction in order to bring a clever shaping.

Does somebody know if traffic control suplied by Linux could be compared to the DTS supplied by CISCO; or if we can aim to do a job as dyband or packeteer do?

Quoted 6 lines
Quoted 4 lines

Which are the limitations to our shaping system? Can we build a real commercial solution?

Packeteer has various patents covering tcp rate control and everything

else

Quoted 11 lines

they do, including the "idea" to look at upper layers to detect the type of traffic.
I live in germany so i don't really care that much about their patents (they had none
in europe last time i checked). last summer i started implementing tcp rate control
as qdisc for linux. i haven't worked on it for a couple of month now, but if anyone wishes
to participate i would be glad to dig out my source again. it is basically working, the
remaining problems are mostly how to detect and handle interactive

traffic.

Quoted 31 lines

Patrick

--__--__--

Message: 2
Date: Sat, 29 Mar 2003 10:19:41 -0500 (COT)
From: Randolph Carter <[email protected]>
Subject: Re: [LARTC] How far can TC go?
To: Patrick McHardy <[email protected]>
Cc: Lartc List <[email protected]>

Patrick, I would like to see your code, and see if when can work in such solution; I'm not sure if the patents in the US cover my country, for I live in Colombia.

Ask five economists and you'll get five different explanations (six if one went to Harvard).
-- Edgar R. Fiedler

--__--__--

Message: 3
From: Stef Coene <[email protected]>
Organization: None
To: David Reoch <[email protected]>, [email protected]
Subject: Re: [LARTC] How to use the tc -s [statistics] option?
Date: Sat, 29 Mar 2003 16:24:47 +0100

Quoted 8 lines
Quoted 6 lines · David Reoch

Hi,

I've tried every combination (except the RIGHT one, of course) to see what the tc cbq statistics are. I really just want to see what it's doing - I'm trying to rate limit napster/peer2peer apps, but they still seem to be hogging up all of my T1 bandwidth.

You create bounded cbq classes and you add a tbf qdisc that bounds the

traffic

Quoted 8 lines

in these classes again. So you don't need the tbf qdisc. I'm not sure it will change a lot, but you can try to replace the tbf qdisc with a prio or sfq qdisc.

Quoted 4 lines

Here's my tc config rules, minus the long list of ports in the class:

tc qdisc del dev eth0 root [eth0 is the Internet facing interface] tc qdisc add dev eth0 root handle 1 cbq bandwidth 10Mbit avpkt 1000 cell

8

Quoted 4 lines
Quoted 4 lines

tc class change dev eth0 root cbq weight 1Mbit allot 1514

tc qdisc del dev eth1 root [eth1 is the intranet facing interface] tc qdisc add dev eth1 root handle 1 cbq bandwidth 10Mbit avpkt 1000 cell

8

Quoted 4 lines
Quoted 4 lines

tc class change dev eth1 root cbq weight 1Mbit allot 1514

tc class add dev eth1 parent 1: classid 1:50 cbq bandwidth 10Mbit rate 35Kbit weight 3Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000

bounded

Quoted 37 lines
Quoted 5 lines

tc qdisc add dev eth1 parent 1:50 handle 50 tbf rate 35Kbit buffer 10Kb/8 limit 15Kb mtu 1500
tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip sport 1755 0xffff match ip dst 0/0 classid 1:50
tc filter add [etc....]

Stef

--

[email protected]
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net

--__--__--

Message: 4
From: Stef Coene <[email protected]>
Organization: None
To: Simone Leggio <[email protected]>, [email protected]
Subject: Re: [LARTC] Changing Linux traffic control parameters on the fly
Date: Sat, 29 Mar 2003 16:28:58 +0100

Quoted 11 lines · Simone Leggio

Hi all,

I'm executing some experiments in a test network and I have a doubt. It is possible to change linux traffic control parameters (say, for example, the bandwidth allocated to a flow, its ceiling rate in a HTB scheduler, its weight parameter in a CBQ scheduler and so on) while the flow is actually traversing a router?

An example: let's assume that a certain class has allocated a bandwidth of 500 kbit/sec. Can I change, say after 10 seconds, while the flow is still active, the bandwidth allocated to that class to 1 Mbit/sec?

Quoted 8 lines

Yes.

Quoted 3 lines

I know there is the command tc qdisc change with which I can change the parameters for a qdisc, but how to use it? Launching after 10 seconds another tc script?

I do that all the time. I remove and add the cbq/htb qdisc again while I leave the traffic running.
For allmost all results you can find on www.docum.org, I wrote some

scripts.

Quoted 2 lines

Most of the time, I have a script that creates the desired htb setup, an other script that monitors the bandwidth. If the bandwidth is not

changing

Quoted 14 lines

in 10 seconds, I log the bandwidth to a file and reexecute the htb script with other parameters.
For some test, it takes days before you have enough results.

Stef

--

[email protected]
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net

Quoted 7 lines

--__--__--

Message: 5
From: =?iso-8859-1?B?Sm9z6SBMdWlzIEdhcmPtYSBM83Bleg=?<[email protected]>
To: [email protected]
Date: Sat, 29 Mar 2003 20:05:28 +0000
Subject: [LARTC]

=?iso-8859-1?B?QnJhbndpdGggY29udHJvbCBvdmVyIDIgQURTTLRzIGludGVyZmFjZXM=?>

Quoted 1 line

Hi!, i need info about how control trafic an balanced routing over 2

ADSL´s

Quoted 1 line

line´s. I have 2 ADSL lines, an 4 ethernet devices, 2 for the ADSL´s y 2

for

Quoted 16 lines

de ethernet LAN.

Sorry for my english, but i´m spanish

_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger:
http://messenger.microsoft.com/es

--__--__--

Quoted 7 lines

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc

End of LARTC Digest

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 30 March 2003 17:20, yuxiao jia scrawled:

Quoted 8 lines

Hello all

I install 4 ethernet card in my Linux router. When I use

cat /proc/interrupt it show me two interface use same IRQ

...11:...........eth0 and eth2

Quoted 9 lines

I want to know how I can modify the eth0 to another unsued IRQ or avoid this things happen

Thanks

Regrads

yuxiao

I also have such an entry in my /proc/interrupts.
11: 423024 XT-PIC eth2, eth3

They are on a 4-port Ethernet card. Also does this have any negative effect on the performance? Just curious, cos everything seems to be working fine for me now.

Thanks,
Ashok

- --
- ----------------------------------------------------------------------------- My public key:
gpg --recv-keys --keyserver blackhole.pca.dfn.de DCB44F2E
- ----------------------------------------------------------------------------- "...there is nothing so unnatural as the commonplace."
Sir Arthur Conan Doyle in "Adventures of Sherlock Holmes: A Case of Identity"
- -----------------------------------------------------------------------------

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+kIqbRhXpVty0Ty4RAgc9AJ95G3JfB23ewqMkbv/Jh+XDXnh0VACfYdZ9 PmbMV8dCBVo4bWLE6zcllyg=G7yX
-----END PGP SIGNATURE-----

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

author
#2 lore raw
In reply to yuxiao jia

Hello

Thanks for your reply, when two ethernet card share same IRQ, only one card can work

for example eth0 and eth2 share same IRQ, eth0 IP address is 172.16.30.1, eth2 is 172.16.50.1,

I only can ping gateway of eth0 (e.g 172.16.30.2), canot ping 172.16.50.2

I try lilo.conf "append="noapic" and change BIOS, do not work for me

I canot undetsand when Linux boot, no matther how I change slot, it only can boot 3 ethernet card,
I can run "ifconfig eth3 up" make the four card up, but still shared eth0 and eth2 canot work well

thanks

yuxiao.

----- Original Message -----
From: "N N Ashok" <[email protected]>
To: "yuxiao jia" <[email protected]>; <[email protected]>
Sent: Sunday, April 06, 2003 4:14 PM
Subject: Re: [LARTC] Ethernet card interrupt conflict

Quoted 19 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 30 March 2003 17:20, yuxiao jia scrawled:

Quoted 15 lines

Hello all

I install 4 ethernet card in my Linux router. When I use

cat /proc/interrupt it show me two interface use same IRQ

...11:...........eth0 and eth2

I want to know how I can modify the eth0 to another unsued IRQ or avoid this things happen

Thanks

Regrads

Quoted 7 lines
Quoted 2 lines

yuxiao

I also have such an entry in my /proc/interrupts.
11: 423024 XT-PIC eth2, eth3

They are on a 4-port Ethernet card. Also does this have any negative

effect on

Quoted 1 line

the performance? Just curious, cos everything seems to be working fine for

me

Quoted 7 lines

now.

Thanks,
Ashok

- --
- ------------------------------------------------------------------------

-----

Quoted 3 lines

My public key:

   gpg --recv-keys --keyserver blackhole.pca.dfn.de DCB44F2E

- ------------------------------------------------------------------------

-----

Quoted 2 lines

"...there is nothing so unnatural as the commonplace." Sir Arthur Conan Doyle in "Adventures of Sherlock Holmes: A Case of

Identity"

Quoted 1 line

- ------------------------------------------------------------------------

-----

Quoted 8 lines

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+kIqbRhXpVty0Ty4RAgc9AJ95G3JfB23ewqMkbv/Jh+XDXnh0VACfYdZ9 PmbMV8dCBVo4bWLE6zcllyg> =G7yX
-----END PGP SIGNATURE-----

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to yuxiao jia

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 06 April 2003 17:49, yuxiao jia scrawled:

Quoted 53 lines

Hello

Thanks for your reply, when two ethernet card share same IRQ, only one card can work

for example eth0 and eth2 share same IRQ, eth0 IP address is 172.16.30.1, eth2 is 172.16.50.1,

I only can ping gateway of eth0 (e.g 172.16.30.2), canot ping 172.16.50.2

I try lilo.conf "append="noapic" and change BIOS, do not work for me

I canot undetsand when Linux boot, no matther how I change slot, it only can boot 3 ethernet card,
I can run "ifconfig eth3 up" make the four card up, but still shared eth0 and eth2 canot work well

thanks

yuxiao.

----- Original Message -----
From: "N N Ashok" <[email protected]>
To: "yuxiao jia" <[email protected]>; <[email protected]>
Sent: Sunday, April 06, 2003 4:14 PM
Subject: Re: [LARTC] Ethernet card interrupt conflict

Quoted 24 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 30 March 2003 17:20, yuxiao jia scrawled:

Quoted 8 lines

Hello all

I install 4 ethernet card in my Linux router. When I use

cat /proc/interrupt it show me two interface use same IRQ

...11:...........eth0 and eth2

Quoted 8 lines

I want to know how I can modify the eth0 to another unsued IRQ or avoid this things happen

Thanks

Regrads

yuxiao

I also have such an entry in my /proc/interrupts.
11: 423024 XT-PIC eth2, eth3

Quoted 14 lines
Quoted 1 line

They are on a 4-port Ethernet card. Also does this have any negative

effect on

Quoted 2 lines

the performance? Just curious, cos everything seems to be working fine for

me

Quoted 5 lines

now.

Thanks,
Ashok

<snipped footer>

Hi,
I just pinged my eth2 and eth3 (which have the same interrupt) and both
responded properly to the pings. I made each one the default route to my machine and there was no problem.

- --

- ----------------------------------------------------------------------------- My public key:
gpg --recv-keys --keyserver blackhole.pca.dfn.de DCB44F2E
- ----------------------------------------------------------------------------- "...there is nothing so unnatural as the commonplace."
Sir Arthur Conan Doyle in "Adventures of Sherlock Holmes: A Case of Identity"
- ----------------------------------------------------------------------------- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+kO61RhXpVty0Ty4RAq8qAJ0bw8QRvlQQyIIfzFgbQ3KyM1LQowCdG4ot ibVA0+X4hAO4AAh9gBU/odY=Aq9f
-----END PGP SIGNATURE-----

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#4 lore raw
In reply to yuxiao jia

On 30-03-2003 at 05:20:54PM -0500, yuxiao jia wrote:
yj> Hello all
yj>
yj> I install 4 ethernet card in my Linux router. When I use
yj>
yj> cat /proc/interrupt it show me two interface use same IRQ
yj>
yj> ...11:...........eth0 and eth2
yj>
yj> I want to know how I can modify the eth0 to another unsued IRQ or avoid this yj> things happen
yj>
Try this example:
append = "ether=10,0x300,eth0 ether=5,0x320,eth2"

Read this:
http://yebisu.ics.es.osaka-u.ac.jp/linux/mini/Multiple-Ethernet.html

If You will have still problem, recompile your kernel with modules for this driver and man modprobe.

Rgds,
Bartek.
--

GPG-key-ID:  0x948DE45D -- visit http://www.keyserver.net
Fingerprint: 95E9 8E2D 1801 7864 2244  6EAA 03E5 764D 948D E45D