From enderle@mdn.de  Mon Dec 23 01:56:44 2002
Return-Path: <enderle@mdn.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 56D3137B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 23 Dec 2002 01:56:44 -0800 (PST)
Received: from mail.mdn.de (port-212-202-153-179.reverse.qsc.de [212.202.153.179])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4275843EDA
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 23 Dec 2002 01:56:33 -0800 (PST)
	(envelope-from enderle@mdn.de)
Received: by mail.mdn.de (Postfix, from userid 1001)
	id 0A849A8E6; Mon, 23 Dec 2002 10:56:30 +0100 (CET)
Message-Id: <20021223095630.0A849A8E6@mail.mdn.de>
Date: Mon, 23 Dec 2002 10:56:30 +0100 (CET)
From: Steven Enderle <enderle@mdn.de>
Reply-To: Steven Enderle <enderle@mdn.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: xl driver generates lots of interrupts with 3c905B-TX/5.0-RC1
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         46490
>Category:       kern
>Synopsis:       xl driver generates lots of interrupts with 3c905B-TX/5.0-RC1
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    andre
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 23 02:00:16 PST 2002
>Closed-Date:    Thu Jan 15 04:37:41 PST 2004
>Last-Modified:  Thu Jan 15 04:37:41 PST 2004
>Originator:     Steven Enderle
>Release:        FreeBSD 5.0-RC1 i386
>Organization:
mdn Huebner GmbH
>Environment:
5.0-RC1 i386
Athlon XP 1800+
3c905B-TX
>Description:
Top states that the kernel is 50-70% doing interrupt handling while copying large files over network (with samba and nfs). The System is mostly used for desktop things and storing large files. systat -vm states that the xl0 driver shoots out a lot of interrupts. The 5.0-RC1 installation was done with a fresh formated harddrive and is basicaly not customised except some installed packages and basic sysinstall configuration. Its running the GENERIC kernel.

Also the system is more sluggish while doing that and not as responsive as in idle (only desktop) use.

With FreeBSD 4.7 installed before, on a different harddrive, the xl driver just needed a few % cpu-time, nothing to think about. 

I did not yet read the manpage if there is some syscall to change or whatever but i guess this will have to be looked at before 5.0-RELEASE.
>How-To-Repeat:
Just copy some files over your network with a 3c905B-TX.... whatever
>Fix:


>Release-Note:
>Audit-Trail:

From: Steven Enderle <enderle@mdn.de>
To: freebsd-gnats-submit@FreeBSD.org, enderle@mdn.de
Cc:  
Subject: Re: kern/46490: xl driver generates lots of interrupts with 3c905B-TX/5.0-RC1
Date: Mon, 23 Dec 2002 13:22:00 +0100

 Just wanted to state that i now did read the manpage and i did not find 
 any information about any tuning parameters.
 
 Also, the man page states it belongs to FreeBSD 4.7 and was written 1998:
 
 http://www.freebsd.org/cgi/man.cgi?query=xl&apropos=0&sektion=0&manpath=FreeBSD+5.0-current&format=html
 
Responsible-Changed-From-To: freebsd-bugs->silby 
Responsible-Changed-By: silby 
Responsible-Changed-When: Tue Dec 24 10:02:55 PST 2002 
Responsible-Changed-Why:  
I'll look into it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46490 

From: enderle@mdn.de (Steven Enderle)
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/46490: xl driver generates lots of interrupts with 3c905B-TX/5.0-RC1
Date: Sun, 29 Dec 2002 02:15:11 +0100 (CET)

 I just did the update to RC2, but it didn`t change anything.
 
 I can supply more information now, though:
 
 This is what top states:
 CPU states: 52.3% user,  0.0% nice, 12.3% system, 31.5% interrupt,  3.8% idle
   21 root     -68 -187     0K    12K WAIT     3:39 34.03% 34.03% irq11: xl0 acpi0
 
 Some info about network utilisation:
 
 % netstat -in 1
            input        (Total)           output
   packets  errs      bytes    packets  errs      bytes colls
       778     0     539500       2477     0    3378314     0
       794     0     566540       2412     0    3262760     0
      2893     0    3763242       1898     0    2113040     0
       715     0     432990       2491     0    3423266     0
 ^C
 
 It's just moderate, not realy impressing.
 
 % ifconfig xl0
 xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=3<RXCSUM,TXCSUM>
        inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
        inet6 fe80::250:4ff:fe43:5797%xl0 prefixlen 64 scopeid 0x1
        ether 00:50:04:43:57:97
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
 
 % dmesg | grep xl0
 xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xdc00-0xdc7f mem 0xda000000-0xda00007f irq 11 at device 10.0 on pci0
 xl0: Ethernet address: 00:50:04:43:57:97
 miibus0: <MII bus> on xl0
 
 Just a wild guess about what could be the problem:
 % dmesg | grep "irq 11"
 xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xdc00-0xdc7f mem 0xda000000-0xda00007f irq 11 at device 10.0 on pci0
 
 irq 11 doesn't seem to be used twice.
 
 I tried to follow /usr/src/UPDATING and the section about 5.0-CURRENT's speed, but as it seems, RC2 already has the debugging flags mentioned there turned off.
 
 Also, the xl driver can be tricked to *run away* - 100% cpu utilisation and hang up, but network reachability will coninue though.
 
 I copied a big file over network while it was accidentialy deleted from some other network station.
 
 Imidiatly the irq11: xl0 acpi0 used 100% cpu and the system was extremly sluggish, altough staying useable. The load raised to about 7 the dropped back to 5 and raising up to 7 again, while the system was absolutly idle.
 
 I rebooted the system with shutdown -r now, but it did not shut down cleanly. init stated that not all processes did stop and later bufdeamon did not die. Also a lot of unwriten pages where dropped later (about 750).
 
 The system did reboot and came up cleanly again.
 
 I did not try to reproduce it.
 
 The NFS server is running IRIX 6.5.18m.
 
 Hope this helps or someone can point my nose at some stupid problem i overlooked! (maybe?) 
 
State-Changed-From-To: open->feedback 
State-Changed-By: andre 
State-Changed-When: Sat Dec 27 07:47:56 PST 2003 
State-Changed-Why:  
This PR is too old.  Asking Originator if problem still persists. 


Responsible-Changed-From-To: silby->andre 
Responsible-Changed-By: andre 
Responsible-Changed-When: Sat Dec 27 07:47:56 PST 2003 
Responsible-Changed-Why:  
This PR is too old.  Asking Originator if problem still persists. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46490 

From: Andre Oppermann <andre@freebsd.org>
To: freebsd-gnats-submit@FreeBSD.org, enderle@mdn.de
Cc:  
Subject: Re: kern/46490: xl driver generates lots of interrupts with 3c905B-TX/5.0-RC1
Date: Sat, 27 Dec 2003 16:46:31 +0100

 Steven,
 
 do still have this xl driver interrupt problem with 5.2RC2
 or -CURRENT?
 
 -- 
 Andre
 
 
State-Changed-From-To: feedback->closed 
State-Changed-By: andre 
State-Changed-When: Thu Jan 15 04:36:54 PST 2004 
State-Changed-Why:  
Originator reports problem disappeared in 5.1R. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46490 
>Unformatted:
