hme debugging (was Re: [rescue] SunFastEthernet questions)

Phil Stracchino alaric at caerllewys.net
Tue Sep 2 21:52:01 CDT 2003


So, figure this one out.  I am utterly baffled.


Sparcstation LX running OpenBSD-3.3.  Onboard le0, hme0 in SBUS slot 2
(the aforementioned SunFastEthernet 2.0), connected to a NetGear FS516
switch.  Two different cables used, one tried-proven-and-known-good
cat5, one brand-new cat5e, with identical results.  Test file is
nfs-mounted from the previously mentioned U30 which was achieving
92Mbit/s transfers to my Linux box, rsize = wsize = 8192.



# ifconfig hme0 media 10baseT
# ifconfig hme0
hme0: flags=8063<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
        address: 08:00:20:05:06:ed
        media: Ethernet 10baseT
        status: active
        inet6 fe80::a00:20ff:fe05:6ed%hme0 prefixlen 64 scopeid 0x2
        inet 192.168.0.20 netmask 0xffffff00 broadcast 192.168.0.255
# time cp /scratch/sys.tar.gz /dev/null

real    0m13.326s
user    0m0.050s
sys     0m1.090s

That's 1052610 bytes per second.  Now, same port, same cable:

# ifconfig hme0 media 10baseT mediaopt full-duplex
# ifconfig hme0                                   
hme0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu
1500
        address: 08:00:20:05:06:ed
        media: Ethernet 10baseT full-duplex
        status: active
        inet6 fe80::a00:20ff:fe05:6ed%hme0 prefixlen 64 scopeid 0x2
        inet 192.168.0.20 netmask 0xffffff00 broadcast 192.168.0.255
# time cp /scratch/sys.tar.gz /dev/null

real    0m13.167s
user    0m0.000s
sys     0m1.120s

That's 1065321 bytes per second.  Next:

# ifconfig hme0 media 100baseTX
# ifconfig hme0                
hme0: flags=8063<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
        address: 08:00:20:05:06:ed
        media: Ethernet 100baseTX
        status: active
        inet6 fe80::a00:20ff:fe05:6ed%hme0 prefixlen 64 scopeid 0x2
        inet 192.168.0.20 netmask 0xffffff00 broadcast 192.168.0.255
# time cp /scratch/sys.tar.gz /dev/null

real    0m33.606s
user    0m0.010s
sys     0m1.730s

That's 417398 bytes per second.  Reconfigure again:

# ifconfig hme0 media 100baseTX mediaopt full-duplex
# ifconfig hme0
hme0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu
1500
        address: 08:00:20:05:06:ed
        media: Ethernet 100baseTX full-duplex
        status: active
        inet6 fe80::a00:20ff:fe05:6ed%hme0 prefixlen 64 scopeid 0x2
        inet 192.168.0.20 netmask 0xffffff00 broadcast 192.168.0.255
# time cp /scratch/sys.tar.gz /dev/null

real    0m33.485s
user    0m0.000s
sys     0m1.730s

418906 bytes per second.  Just for completeness:

# ifconfig hme0 media autoselect
# ifconfig hme0                 
hme0: flags=8063<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
        address: 08:00:20:05:06:ed
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet6 fe80::a00:20ff:fe05:6ed%hme0 prefixlen 64 scopeid 0x2
        inet 192.168.0.20 netmask 0xffffff00 broadcast 192.168.0.255
# time cp /scratch/sys.tar.gz /dev/null

real    0m32.921s
user    0m0.010s
sys     0m1.640s

426083 bytes/s.


No matter whether hme0 is configured for half or full duplex, the switch
indicates half-duplex on its port.  Regardless of whether it's set half
or full duplex, the card passes about 8.5 megabits at 10baseT, and 3.3
to 3.4 megabits at 100baseTX.

Ideas, anyone? Can anyone think of a way the card could conceivably be
hosed that would have this effect?


-- 
 .*********  Fight Back!  It may not be just YOUR life at risk.  *********.
 : phil stracchino : unix ronin : renaissance man : mystic zen biker geek :
 :  alaric at caerllewys.net : alaric-ruthven at earthlink.net : phil at latt.net  :
 :   2000 CBR929RR, 1991 VFR750F3 (foully murdered), 1986 VF500F (sold)   :
 :    Linux Now!   ...Because friends don't let friends use Microsoft.    :



More information about the rescue mailing list