LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-24-2012, 06:55 PM   #1
drigohighlander
LQ Newbie
 
Registered: Mar 2012
Posts: 28

Rep: Reputation: Disabled
Internet lag on slackware


Hi,
I'm using Slackware 13.37 and Windows 7 in dual boot.
I use Slackware since it was hotplug, very old..but since 12.1 version I had the same problem.
The internet in windows 7 works very fine, I type the address of the desired site in the mozilla firefox bar and press enter, and it loads very faster, very very faster.
But in Slackware, in the same mozilla firefox version, when I press enter key, appears a balloon that say : looking up <site> ... so after, waiting to <site>... and then transfering.. that is very boring because it is a crazy lag, sometimes it blow your mind, I don't know what is wrong, my motherboard have two network output and everything is configured to the first one, I don't know if it is the problem, the slackware get the ip of a router, everything is automatic.
Somebody can help me?
It is a old problem for me.
thanks.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-24-2012, 07:25 PM   #2
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,264
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Just a few questions. You aren't giving us a lot to go on besides "it works in Windows but not in Slackware."
  1. Are you using fixed IP or DHCP?
  2. What happens when you access a www site via its IP address and not name?
  3. Type of router?
  4. DSL, cable modem, or ...?
  5. What is output of ipconfig and lspci?
  6. What is your network chipset?
  7. Wrong kernel module?
  8. Are you sure the second network port is disabled?
  9. What happens when you plug both ports into your router?
  10. Did you forget a setting in rc.inet1.conf, resolv.conf?
  11. Conflict in /etc/network or /etc/sysctl.conf?
 
Old 03-24-2012, 08:25 PM   #3
drigohighlander
LQ Newbie
 
Registered: Mar 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Oh yeah, sorry, I thought that it was simple, and not need to go deep.
Okey answering:

1 - I'm using dhcp. My /rc.inet1.conf is:
Code:
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

...
# I put yes only for eth0, the other are all left in blank.

# Default gateway IP address:
GATEWAY="192.168.1.1"

...
# All configuration not showed here is default.
2 - Dude it's very fast, seems like windows or more fast, but there are websites that have half loaded and stuck in looking up...and have the same lag in this part, I guess that is maybe a external link, I don't know...

3 - Sorry, don't understood the question, Are you asking if it is wireless or not? If yes, it is wired, sorry for the (if is) stupid answer..

4 - DSL, but the modem is intregrated in the router, so when I turn it on, The router connect automatic on the internet, and I only have to put a cable in my pc up to router and run dhcp.

5 - I don't have ipconfig command in my distribution, lspci is:

Code:
bash-4.1# lspci 
00:00.0 Host bridge: ATI Technologies Inc RD890 Northbridge only single slot PCI-e GFX Hydra part (rev 02)
00:02.0 PCI bridge: ATI Technologies Inc RD890 PCI to PCI bridge (PCI express gpp port B)
00:03.0 PCI bridge: ATI Technologies Inc RD890 PCI to PCI bridge (PCI express gpp port C)
00:04.0 PCI bridge: ATI Technologies Inc RD890 PCI to PCI bridge (PCI express gpp port D)
00:05.0 PCI bridge: ATI Technologies Inc RD890 PCI to PCI bridge (PCI express gpp port E)
00:06.0 PCI bridge: ATI Technologies Inc RD890 PCI to PCI bridge (PCI express gpp port F)
00:09.0 PCI bridge: ATI Technologies Inc RD890 PCI to PCI bridge (PCI express gpp port H)
00:0b.0 PCI bridge: ATI Technologies Inc RD890 PCI to PCI bridge (NB-SB link)
00:0c.0 PCI bridge: ATI Technologies Inc Device 5a20
00:0d.0 PCI bridge: ATI Technologies Inc RD890 PCI to PCI bridge (external gfx1 port B)
00:11.0 SATA controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode] (rev 40)
00:12.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 42)
00:14.1 IDE interface: ATI Technologies Inc SB7x0/SB8x0/SB9x0 IDE Controller (rev 40)
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: ATI Technologies Inc SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:15.0 PCI bridge: ATI Technologies Inc Device 43a0
00:15.1 PCI bridge: ATI Technologies Inc Device 43a1
00:16.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
01:00.0 SATA controller: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 10)
01:00.1 IDE interface: JMicron Technology Corp. JMB368 IDE controller (rev 10)
04:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 210] (rev a2)
04:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
05:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 210] (rev a2)
05:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
06:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 210] (rev a2)
06:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
07:00.0 USB Controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
0a:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller (rev 01)
0b:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 210] (rev a2)
0b:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
0c:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 210] (rev a2)
0c:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
(Yes I have 5 gpu plugged on it..)

6 - lspci says that it is Realtek Semiconductor Co., Ltd. RTL8111/8168B.

7 - I don't know lsmod show that use r8169 but it is automatic loaded.

8 - I don't know, ifconfig show only eth0 and lo, so I think that the second one is disabled.

9 - I don't know, I will try, I will get another cable. I don't have one now to test.

10 - The rc.inet1.conf I already showed, the resolv.conf is:
Code:
bash-4.1# cat /etc/resolv.conf 
# Generated by dhcpcd from eth0
# /etc/resolv.conf.head can replace this line
domain homestation
nameserver 192.168.1.1
# /etc/resolv.conf.tail can replace this line
11 - I only have /etc/networks (you wrote network, but must be the same..I guess..) in my system.
Code:
bash-4.1# cat /etc/networks 
#
# networks	This file describes a number of netname-to-address
#		mappings for the TCP/IP subsystem.  It is mostly
#		used at boot time, when no name servers are running.
#

loopback	127.0.0.0
localnet	127.0.0.0
Thanks for help.
And sorry for the big post and my bad english.
 
Old 03-25-2012, 01:28 AM   #4
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,264
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Sorry, I did mean "ifconfig" see thats what happens when you switch between Windows and Linux too often! And you: crazy kid with 5 GPU. Nuts.

You have the same network chipset as I do, so the kernel driver is not the problem. Type of router: You answered in part that you are using a DSL modem + router combination. What manufacturer and model? I have found that some are rather odd with Linux support.

If using direct www IP addresses is fast, you could have issues with your DNS access via your router. Also, I see that localnet is the same as the loopback; this could cause problems. If using direct www IP addresses is fast, you could have issues with your DNS access via your router.

I have a couple of suggestions:
  1. in /etc/networks try changing "localnet 127.0.0.0" to "localnet 192.168.1.0"
  2. access your DSL router web configuration and change your ISP provided DNS servers to another set. You can place these into resolv.conf above "nameserver 192.168.1.1"
I use OpenDNS.
Code:
208.67.222.222
208.67.220.220
Another idea, since you are wired, is to set up a static IP. Just make sure that your static IP doesn't conflict with some other device.

rc.inet1.conf:
Code:
# Config information for eth0:
IPADDR[0]="192.168.1.2"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

...

# Default gateway IP address:
GATEWAY="192.168.1.1"
/etc/resolv.conf
Code:
domain homestation
nameserver 208.67.222.222
nameserver 208.67.220.220
Also, check your /etc/hosts
Code:
# For loopbacking.
127.0.0.1		localhost
should be the only entry unless you want to do some ip to name mappings without running a local name server.

BTW, "lo" is the default loopback interface or your computer. Is is mapped to 127.0.0.1 and allows things like accessing the local web configuration utilities (http://localhost:631 for CUPS).
 
2 members found this post helpful.
Old 03-25-2012, 01:37 AM   #5
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware current
Posts: 423

Rep: Reputation: 73
Sounds like DNS issues to me. Three remedies I've applied:
- edit resolv.conf (as above) to avoid using local router
- blacklist ipv6 module
- stop firefox from using ipv6 first via a setting in about:config (can't remember exactly how but a web search will find it quickly)
 
2 members found this post helpful.
Old 03-25-2012, 06:55 AM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Quote:
# Default gateway IP address:
GATEWAY="192.168.1.1"
If you are using DHCP with a DSL modem/router then the default gateway will be supplied.
Try changing to
Code:
GATEWAY=""
Also you should not need this line in /etc/resolv.conf
Quote:
domain homestation
This is probably the cause of your problem. The DNS resolver is expecting to find a DNS server on your local system, which is not present, and so has to time out before the other nameservers are tried.
 
2 members found this post helpful.
Old 03-25-2012, 11:52 AM   #7
drigohighlander
LQ Newbie
 
Registered: Mar 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Thanks for all answer guys.

I Tried some approaches, only one for time, and I will say what works and what not.

1 - change localhost in /etc/networks - sorry I not tried it yet.

2 - config my router to another isp - I don't have the admin pass of my router, them come pre configured from the internet provider, I don't know the pass, it's really cumbersome. (Some day I will ask, don't need it now, and its a fiberhome hg 110-b model)

3 - changing the dns of /etc/resolv.conf to 208.67.222.222 and 208.67.220.220 helped a lot! (Besides I have no idea what these numbers are, sorry). But some sites still stuck in the half loaded and then looking up... the same lag but only in some sites and when it will load external links...and I guess that is not the perfect solution because when I run rc.inet.1 (and it happens everytime when my pc turn on) all entry in resolv.conf are erased and its put homestation again (fu*k kidding me --).

4 - Left blank the GATEWAY in rc.inet1.conf didn't change anything.

5 - My /etc/hosts file is okey.

6 - I not tried to blacklist ipv6 module because...(see item 7)

7 - I do stop firefox using ipv6 via settings manager, and really it solves everything!!! (Even the /etc/resolv.conf with the homestation entry, the problematic entry). thanks a lot!!!

Thanks for your help guys.
2012 fall can came now...\o/ ha (I couldn't die with this very old problem.)

Last edited by drigohighlander; 03-25-2012 at 12:13 PM.
 
Old 03-25-2012, 12:39 PM   #8
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
Those *numbers* in your resolv.conf are for the opendns servers which will be overwritten on reboot unless you do one or both of the following.

In /etc/rc.d/rc.inet.conf, add this line;

DHCP_KEEPRESOLV[0]="yes"

and/or, issue this command:

$ chattr +i /etc/resolv.conf

This makes the file /etc/resolv.conf immutable (can't be changed, even by root). To undo, $ chattr -i /path_to_file

cheers,
 
Old 03-25-2012, 01:55 PM   #9
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
Quote:
Originally Posted by mrclisdue View Post
Those *numbers* in your resolv.conf are for the opendns servers which will be overwritten on reboot unless you do one or both of the following.
Or set up a static ip address, which also prevents overwriting of resolv.conf.
 
Old 03-25-2012, 03:27 PM   #10
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware current
Posts: 423

Rep: Reputation: 73
Glad it worked out for you and thanks for the update on what happened.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 11 Mouse Lag artistik Linux - General 15 01-18-2007 09:55 AM
lag in 2.6.3 doralsoral Linux - Software 1 03-28-2004 09:26 AM
Serious Lag (in X) VxJasonxV Linux - Hardware 2 09-21-2003 02:48 AM
Severe Lag TomG Linux - Newbie 5 08-07-2002 10:49 PM
Major Internet Lag cpender Linux - Networking 1 02-22-2002 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration