Re: [freebsd-questions] Bandwidth Troubleshooting

2006-05-18 Thread Howard Jones

Gunter Wambaugh wrote:


The sad thing is that I read somewhere (probably on this list) that 
*forcing* 100 would
_increase_ performance because there wouldn't be any auto 
negotiating.   I added it to
my rc.conf, but later I decided that it didn't help any so I ran 
ifconfig fxp0 media autoselect,
but failed to change my rc.conf back!  Now I have learned that not 
only did it not improve performance, it seriously

 crippled it.  Thanks for helping me track that down.
If you have two auto-negotiating devices and one is hard-set to a 
particular speed/duplex, then the other should always choose 100/Half. 
It doesn't try and auto-detect what the other one is speaking. It's 
supposed to be a *negotiation* and if one party doesn't talk, then the 
other one defaults.


So if you can get your Linksys to force the port speed, then you can 
safely do it on your server, otherwise auto-negotiation should negotiate 
100/Full anyway if both can do it.


Here's a better explanation than mine:
  http://www.cites.uiuc.edu/network/autosense.html#how

I lost count of how many times this has bitten me in various shapes and 
forms.


Howie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Bandwidth Troubleshooting

2006-05-17 Thread Gunter Wambaugh

On May 17, 2006, at 8:01 PM, Mike Tancsa wrote:


At 08:47 PM 17/05/2006, Gunter Wambaugh wrote:
On Mon, 15 May 2006 20:13:05 -0500, in  
sentex.lists.freebsd.questions

you wrote:


media: Ethernet 100baseTX 


This looks like you have it set to 100-FD *Manual*.  Try
ifconfig fxp0 media autoselect




What kind of switch do you have your NIC plugged into ?

What is the output of
netstat -ni
and
sysctl -a | grep flight

---Mike
$ netstat -ni

NameMtu Network   Address  Ipkts IerrsOpkts
Oerrs  Coll
fxp0   1500   00:06:29:de:51:ab 44071780  1735
52399432 0 0
fxp0   1500 fe80:1::206:2 fe80:1::206:29ff:0 -
3 - -
fxp0   1500 192.168.1 192.168.1.106 44029897 -

This box is plugged into my Linksys Wireless router.  I don't think
it's the router as other boxes connected to it seem unaffected.  I
tried swapping the network cable and the port on the router, but
Ierrs increased.  Bad network card?  Misconfigured network card/ 
driver?



It looks like a duplex mismatch.  Change your duplex settings to  
auto and see how things go from there.


---Mike

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions- 
[EMAIL PROTECTED]"


AHA!

That worked.

The sad thing is that I read somewhere (probably on this list) that  
*forcing* 100 would
_increase_ performance because there wouldn't be any auto  
negotiating.   I added it to
my rc.conf, but later I decided that it didn't help any so I ran  
ifconfig fxp0 media autoselect,
but failed to change my rc.conf back!  Now I have learned that not  
only did it not improve performance, it seriously

 crippled it.  Thanks for helping me track that down.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Bandwidth Troubleshooting

2006-05-17 Thread Mike Tancsa

At 08:47 PM 17/05/2006, Gunter Wambaugh wrote:

On Mon, 15 May 2006 20:13:05 -0500, in sentex.lists.freebsd.questions
you wrote:


media: Ethernet 100baseTX 


This looks like you have it set to 100-FD *Manual*.  Try
ifconfig fxp0 media autoselect




What kind of switch do you have your NIC plugged into ?

What is the output of
netstat -ni
and
sysctl -a | grep flight

---Mike
$ netstat -ni

NameMtu Network   Address  Ipkts IerrsOpkts
Oerrs  Coll
fxp0   1500   00:06:29:de:51:ab 44071780  1735
52399432 0 0
fxp0   1500 fe80:1::206:2 fe80:1::206:29ff:0 -
3 - -
fxp0   1500 192.168.1 192.168.1.106 44029897 -

This box is plugged into my Linksys Wireless router.  I don't think
it's the router as other boxes connected to it seem unaffected.  I
tried swapping the network cable and the port on the router, but
Ierrs increased.  Bad network card?  Misconfigured network card/driver?



It looks like a duplex mismatch.  Change your duplex settings to auto 
and see how things go from there.


---Mike

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Bandwidth Troubleshooting

2006-05-17 Thread Gunter Wambaugh

On Mon, 15 May 2006 20:13:05 -0500, in sentex.lists.freebsd.questions
you wrote:


media: Ethernet 100baseTX 


What kind of switch do you have your NIC plugged into ?

What is the output of
netstat -ni
and
sysctl -a | grep flight

---Mike

Mike Tancsa, Sentex communications http://www.sentex.net
Providing Internet Access since 1994
[EMAIL PROTECTED], (http://www.tancsa.com)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions- 
[EMAIL PROTECTED]"


$ netstat -ni
NameMtu Network   Address  Ipkts IerrsOpkts  
Oerrs  Coll
fxp0   1500   00:06:29:de:51:ab 44071780  1735  
52399432 0 0
fxp0   1500 fe80:1::206:2 fe80:1::206:29ff:0 - 
3 - -
fxp0   1500 192.168.1 192.168.1.106 44029897 -  
52370049 - -
fxp1*  1500   00:06:29:de:51:aa0 0 
0 0 0
lo0   16384   299664 0
299664 0 0
lo0   16384 ::1/128   ::1817 -   
817 - -
lo0   16384 fe80:3::1/64  fe80:3::10 - 
0 - -
lo0   16384 127   127.0.0.1   298847 -
298847 - -


$ sysctl -a | grep flight
net.local.inflight: 0
net.inet.tcp.local_slowstart_flightsize: 4
net.inet.tcp.slowstart_flightsize: 1
net.inet.tcp.inflight.stab: 20
net.inet.tcp.inflight.max: 1073725440
net.inet.tcp.inflight.min: 6144
net.inet.tcp.inflight.debug: 0
net.inet.tcp.inflight.enable: 1

This box is plugged into my Linksys Wireless router.  I don't think  
it's the router as other boxes connected to it seem unaffected.  I  
tried swapping the network cable and the port on the router, but  
Ierrs increased.  Bad network card?  Misconfigured network card/driver?


Thanks for your help.
 
 
___

freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Bandwidth Troubleshooting

2006-05-15 Thread Mike Tancsa
On Mon, 15 May 2006 20:13:05 -0500, in sentex.lists.freebsd.questions
you wrote:

> media: Ethernet 100baseTX 

What kind of switch do you have your NIC plugged into ?

What is the output of 
netstat -ni
and
sysctl -a | grep flight

---Mike

Mike Tancsa, Sentex communications http://www.sentex.net
Providing Internet Access since 1994
[EMAIL PROTECTED], (http://www.tancsa.com)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Bandwidth Troubleshooting

2006-05-15 Thread Atom Powers

On 5/15/06, Gunter Wambaugh <[EMAIL PROTECTED]> wrote:

I have been having this off and on problem with my FreeBSD server for
some time now, and I haven't been able to track down the cause.
Bottom line:  network throughput between local boxes is around 200KB/
s on a 100MBs network.  This will last for a few hours and then
quietly return to the ~2MB/s I am used to.  (Speed according to
scp).  I have used netstat -anf inet, sockstat -4, ps auxww, and top
to see what is running, but I see nothing obvious.  I do see the
occasional

fxp0: link state changed to DOWN
fxp0: link state changed to UP



Sounds to me like a physical layer problem to me: bad cable, bad
interface port, etc.

--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Bandwidth Troubleshooting

2006-05-15 Thread Derek Ragona

You might want to try:
/usr/ports/net-mgmt/bandwidthd

It will give you an idea of what your entire usage is and if it is on this 
server or somewhere else causing the slowdowns.


-Derek


At 08:13 PM 5/15/2006, Gunter Wambaugh wrote:

I have been having this off and on problem with my FreeBSD server for
some time now, and I haven't been able to track down the cause.
Bottom line:  network throughput between local boxes is around 200KB/ s on 
a 100MBs network.  This will last for a few hours and then

quietly return to the ~2MB/s I am used to.  (Speed according to
scp).  I have used netstat -anf inet, sockstat -4, ps auxww, and top
to see what is running, but I see nothing obvious.  I do see the
occasional

fxp0: link state changed to DOWN
fxp0: link state changed to UP

in my dmesg.  Anyone have any suggestions on how to track this thing
down?

uname -a
FreeBSD gorgoroth.six-two.net 6.0-RELEASE FreeBSD 6.0-RELEASE #1: Sat
Feb 25 11:25:33 CST 2006 [EMAIL PROTECTED]:/usr/obj/usr/ 
src/sys/OPTIMIZED  i386



ifconfig
fxp0: flags=8843 mtu 1500
options=8
inet6 fe80::206:29ff:fede:51ab%fxp0 prefixlen 64 scopeid 0x1
inet 192.168.1.106 netmask 0xff00 broadcast 192.168.1.255
ether 00:06:29:de:51:ab
media: Ethernet 100baseTX 
status: active
fxp1: flags=8802 mtu 1500
options=8
ether 00:06:29:de:51:aa
media: Ethernet autoselect (none)
status: no carrier
lo0: flags=8049 mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff00
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Bandwidth Troubleshooting

2006-05-15 Thread Gunter Wambaugh
I have been having this off and on problem with my FreeBSD server for  
some time now, and I haven't been able to track down the cause.   
Bottom line:  network throughput between local boxes is around 200KB/ 
s on a 100MBs network.  This will last for a few hours and then  
quietly return to the ~2MB/s I am used to.  (Speed according to  
scp).  I have used netstat -anf inet, sockstat -4, ps auxww, and top  
to see what is running, but I see nothing obvious.  I do see the  
occasional


fxp0: link state changed to DOWN
fxp0: link state changed to UP

in my dmesg.  Anyone have any suggestions on how to track this thing  
down?


uname -a
FreeBSD gorgoroth.six-two.net 6.0-RELEASE FreeBSD 6.0-RELEASE #1: Sat  
Feb 25 11:25:33 CST 2006 [EMAIL PROTECTED]:/usr/obj/usr/ 
src/sys/OPTIMIZED  i386



ifconfig
fxp0: flags=8843 mtu 1500
options=8
inet6 fe80::206:29ff:fede:51ab%fxp0 prefixlen 64 scopeid 0x1
inet 192.168.1.106 netmask 0xff00 broadcast 192.168.1.255
ether 00:06:29:de:51:ab
media: Ethernet 100baseTX 
status: active
fxp1: flags=8802 mtu 1500
options=8
ether 00:06:29:de:51:aa
media: Ethernet autoselect (none)
status: no carrier
lo0: flags=8049 mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff00
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"