DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th February 2015
DaBSD DaBSD is offline
Shell Scout
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 102
Default über-slow Internet

I've just installed NetBSD-6.1.5 on an ASUS-K701 laptop, Ethernet card: Qualcomm Atheros AR8121/AR8113/AR8114 Gigabit or Fast Ethernet. My problem is that my network connection is incredibly slow, which makes the process of installing new software very long (it took me as long as one night to install GNOME with all dependencies). Here's part of dmesg output:

Code:
ppb2 at pci0 dev 21 function 0: vendor 0x10de product 0x0ac6 (rev. 0xb1)
ppb2: PCI Express 2.0 <Root Port of PCI-E Root Complex>
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
ale0 at pci3 dev 0 function 0: Attansic/Atheros L1E Ethernet
LN3A: Picked IRQ 17 with weight 0
ale0: AR8121 (L1E), ioapic0 pin 17
ale0: Ethernet address x:x:x:x:x:x
atphy0 at ale0 phy 0: L1 10/100/1000 PHY, rev. 9
atphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
Pinging seems to be working well:
Code:
PING www.netbsd.org (149.20.53.86): 48 data bytes
64 bytes from 149.20.53.86: icmp_seq=0 ttl=241 time=226.879 ms
64 bytes from 149.20.53.86: icmp_seq=1 ttl=241 time=226.790 ms
64 bytes from 149.20.53.86: icmp_seq=2 ttl=241 time=226.852 ms
64 bytes from 149.20.53.86: icmp_seq=3 ttl=241 time=226.905 ms
64 bytes from 149.20.53.86: icmp_seq=4 ttl=241 time=226.934 ms

----www.netbsd.org PING Statistics----
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 226.790/226.872/226.934/0.055 ms
Ping from Ubuntu 12.04 on the same machine shows practically the same speed:

Code:
PING www.netbsd.org (149.20.53.86) 56(84) bytes of data.
64 bytes from vhosts.netbsd.org (149.20.53.86): icmp_req=1 ttl=241 time=226 ms
64 bytes from vhosts.netbsd.org (149.20.53.86): icmp_req=2 ttl=241 time=226 ms
64 bytes from vhosts.netbsd.org (149.20.53.86): icmp_req=3 ttl=241 time=226 ms
64 bytes from vhosts.netbsd.org (149.20.53.86): icmp_req=4 ttl=241 time=226 ms
64 bytes from vhosts.netbsd.org (149.20.53.86): icmp_req=5 ttl=241 time=226 ms

--- www.netbsd.org ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4004ms
rtt min/avg/max/mdev = 226.506/226.757/226.953/0.166 ms
What can be the reason for this problem? Sometimes it seems to me that the download speed is OK, the problem is with delays in making a new connection.
Reply With Quote
  #2   (View Single Post)  
Old 15th February 2015
fn8t's Avatar
fn8t fn8t is offline
Real Name: Ego
Shell Scout
 
Join Date: May 2014
Location: Tao
Posts: 120
Default

Can you confirm this same problem separate of downloading packages?

Are you installing binary or from source?

Off topic, how have you managed to survive using Nvidia with NetBSD? That has got to be painfully slow also.
Reply With Quote
  #3   (View Single Post)  
Old 15th February 2015
cynwulf's Avatar
cynwulf cynwulf is offline
Spam Deminer
 
Join Date: Mar 2014
Posts: 243
Default

I do not use NetBSD, but if you're getting such high pings, then perhaps choose a mirror closer to you?

http://www.netbsd.org/mirrors/
Reply With Quote
  #4   (View Single Post)  
Old 16th February 2015
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 877
Default

Another thing to check: is your ethernet configured at 10 Mbps, and/or not at full duplex? What does the output of ifconfig show?
Reply With Quote
  #5   (View Single Post)  
Old 17th February 2015
DaBSD DaBSD is offline
Shell Scout
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 102
Default

Quote:
Originally Posted by IdOp View Post
Another thing to check: is your ethernet configured at 10 Mbps, and/or not at full duplex? What does the output of ifconfig show?
Oh yeah, I can't believe I forgot to post it:

Code:
#ifconfig ale0

ale0: flags=8a43<UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
	address: aa:bb:cc:dd:ee:ff
	media: Ethernet autoselect (1000baseT full-duplex,flowcontrol,rxpause,txpause)
	status: active
	inet 192.168.x.x netmask 0xffffff00 broadcast 192.168.x.255
	inet6 x::x:x:x:x%ale0 prefixlen 64 scopeid 0x1
Reply With Quote
  #6   (View Single Post)  
Old 17th February 2015
DaBSD DaBSD is offline
Shell Scout
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 102
Default

Quote:
Originally Posted by cynwulf View Post
I do not use NetBSD, but if you're getting such high pings, then perhaps choose a mirror closer to you?
http://www.netbsd.org/mirrors/
The slow Internet occurs not only when I retrieve packages from the official netBSD repository, but also when I just browse Internet, pages are incredibly slow to load in 80-90% cases.

Quote:
Originally Posted by fn8t View Post
Can you confirm this same problem separate of downloading packages?

Are you installing binary or from source?
Everything installed binary, basic installation with X + lynx, firefox, emacs, Gnome and that's all I think.

Quote:
Originally Posted by fn8t View Post
Off topic, how have you managed to survive using Nvidia with NetBSD? That has got to be painfully slow also.
Graphic regime is working fine on this installation so far, but I'd need to testdrive it properly through playing videos, for which I'd need to install video players, for which I'd need fast Internet A good question though, I'll let you know as soon as I've worked out the net issues.
Reply With Quote
  #7   (View Single Post)  
Old 18th February 2015
fn8t's Avatar
fn8t fn8t is offline
Real Name: Ego
Shell Scout
 
Join Date: May 2014
Location: Tao
Posts: 120
Default

Quote:
Originally Posted by DaBSD View Post
Graphic regime is working fine on this installation so far, but I'd need to testdrive it properly through playing videos, for which I'd need to install video players, for which I'd need fast Internet A good question though, I'll let you know as soon as I've worked out the net issues.
That seems to be better than I've experienced. Last time I tried on a Laptop with a Nvidia GPU, "ls" seemed to process excruciatingly slow. I thought I would be fine just using the machine to fetch pkgsrc distfiles. Things ran a little better through X, but the machine ran really hot. I ditched the endeavour and started over on an older Thinkpad.

It looks like your situation is of a different brew.
Reply With Quote
  #8   (View Single Post)  
Old 7th April 2015
pygope pygope is offline
Port Guard
 
Join Date: Apr 2015
Posts: 33
Default This was useful to me

I don't know if after 2 months you are gonna see this.

I suffered the same problem. Until I find this page:
/https://wiki.netbsd.org/tutorials/tu...r_performance/

I am still testing with some of the values given in that page, because I think this page is a bit outdated, but in my case increasing the values of

net.inet.tcp.sendbuf_max=16777216
net.inet.tcp.recvbuf_max=16777216

have increased my internet speed. In fact, right now I am testing with the triple of the above mention, so far without problems.
Reply With Quote
  #9   (View Single Post)  
Old 7th April 2015
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by pygope View Post
I don't know if after 2 months you are gonna see this.
Did you notice that the guy had 1 Gigabit controller? What tuning are you talking about? That thing should be smoking fast. What puzzled me now is the fact that his interface is listed
as

Code:
ale0
I just logged into

Code:
sdf:/udd/p/predrag$ uname -a
NetBSD sdf 6.1_STABLE NetBSD 6.1_STABLE (SDF6.amd64) #0: Sun Dec 21 18:11:22 UTC 2014  root@bjork:/spare/netbsd/usr/src/sys/arch/amd64/compile/SDF6.amd64 amd64
and guess what

Code:
sdf:/udd/p/predrag$ man ale
man: no entry for ale in the manual.
Also the driver should default to lower speed unless he is connected to Gigabit network.

Last edited by Oko; 8th April 2015 at 04:44 AM.
Reply With Quote
Old 9th April 2015
DaBSD DaBSD is offline
Shell Scout
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 102
Default

Quote:
Originally Posted by pygope View Post
I don't know if after 2 months you are gonna see this.

I suffered the same problem. Until I find this page:
/https://wiki.netbsd.org/tutorials/tu...r_performance/
Thank you! Well, the problem is still there and unfortunately your howto hasn't helped. I guess there might be an issue with the driver for Atheros cards:

https://mail-index.netbsd.org/netbsd...msg030923.html
https://mail-index.netbsd.org/netbsd...msg007885.html
http://gnats.netbsd.org/43018
http://gnats.netbsd.org/42461

This is strange, I bought this laptop almost 5 years ago and as far as I remember, I did try a version of NetBSD (5.x) on it after the purchase, kept it for a while, then got rid of it. Anyway, I don't remember any problems with network on that installation. Shall I try 5.x now? NetBSD-5.2.3 was released just a few months ago...

Last edited by DaBSD; 9th April 2015 at 08:18 PM.
Reply With Quote
Old 9th April 2015
DaBSD DaBSD is offline
Shell Scout
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 102
Default

Quote:
Originally Posted by Oko View Post
What puzzled me now is the fact that his interface is listed
as

Code:
ale0
I just logged into

Code:
sdf:/udd/p/predrag$ uname -a
NetBSD sdf 6.1_STABLE NetBSD 6.1_STABLE (SDF6.amd64) #0: Sun Dec 21 18:11:22 UTC 2014  root@bjork:/spare/netbsd/usr/src/sys/arch/amd64/compile/SDF6.amd64 amd64
and guess what

Code:
sdf:/udd/p/predrag$ man ale
man: no entry for ale in the manual.
SDF is an online shell provider, so they must have stripped their system of everything that isn't directly in use. Anyway, here's the manpage you were looking for:

http://www.unix.com/man-page/netbsd/4/ALE/
Reply With Quote
Old 9th April 2015
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by DaBSD View Post
SDF is an online shell provider, so they must have stripped their system of everything that isn't directly in use. Anyway, here's the manpage you were looking for:

http://www.unix.com/man-page/netbsd/4/ALE/
IIRC They are also running on "exotic" Alpha hardware That is the only NetBSD I use day to day.
Reply With Quote
Old 12th April 2015
DaBSD DaBSD is offline
Shell Scout
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 102
Default

Quote:
Originally Posted by DaBSD View Post
Thank you! Well, the problem is still there and unfortunately your This is strange, I bought this laptop almost 5 years ago and as far as I remember, I did try a version of NetBSD (5.x) on it after the purchase, kept it for a while, then got rid of it. Anyway, I don't remember any problems with network on that installation. Shall I try 5.x now? NetBSD-5.2.3 was released just a few months ago...
Well well, I installed NetBSD 5.2.3 and network is working fine. Fonts are looking better as well.
I think it's about time to inform the respective NetBSD mailing list about this network issue.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pf - Internet seem slow rawshack OpenBSD Security 3 20th June 2014 06:42 PM
Anonymous Ftp is too slow daemonfowl OpenBSD General 25 4th August 2012 12:50 AM
OpenBSD slow internet? guitarscn OpenBSD General 4 27th November 2010 05:25 PM
Why is FreeBSD dd so slow? sharris FreeBSD General 10 18th June 2010 08:33 AM
slow io from hdd knasbas OpenBSD General 3 25th July 2009 02:51 AM


All times are GMT. The time now is 06:50 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick