LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-28-2004, 08:59 AM   #1
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
using dhcpcd on gentoo slows down application startup in KDE


Hello everybody,
I got a few gadgets for christmas this year, one of which was a router. While I am very glad that I can finally be online with more than one computer at a time, I have a little problem with it.
The internet-connection is working fine. My Fedora box is not having any problems with it. The gentoo box has no problems accessing and surfing the net either. At first it would not start the network at boot, but a little googling helped me solve this problem (rc-update add net.eth0 boot).

My problem now is that on the gentoo box many (not all!) KDE applications take a very long time to start. For example bringing up kview takes several minutes, while kword starts just as quickly as it always did. KDE itself takes several minutes to get past the second part of the initialisation process ("initialising system services").
There is another curious symptom: kmail starts up as fast as it did before but freezes a second into checking the account for new mail (AFTER it has started downloading mail). After some minutes it displays an error message ("Could not read file The server terminated the connection.."[sic]) and works normally after that (including checking email).

With dhcpcd deactivated neither of these problems occur.

I have found several posts about similar problems, but the solutions suggested there did not help me.
It might help if I list things I found there and tried unsuccessfully:
- accidentially i removed the network loopback from my boot-runlevel
Not my problem: rc-update show
Code:
              net.lo | boot
- If you have two or more nameservers [in /etc/resolv.conf] try commenting one of them out with a # sign.Most likely the first one or your routers nameserver (IP).
Commented my router's nameserver, no effect.

I assume there is indeed some problem with the network (as it first appeared after I replaced the hub with the new router), but I have run out of ideas as to what to do about it.

Can anybody suggest what I might be able to try?

Thanks a whole lot in advance,
- drowstar


Update: After poking around my systems network setup I figured out that there seems to be an issue with the loopback device after all.
ping 127.0.0.1 results in 100% packet loss, same for ping localhost (which seems to be resolved to 127.0.0.1). However when I ping my IP it works just fine.
I will open a new thread as the problem seems to be a lot different from the one I originally reported. Also, I am convinced that this one is too old to be noticed by anyone anymore. I will post another update here if the other thread yields any results.

Last edited by drowstar; 01-01-2005 at 12:31 PM.
 
Old 07-29-2005, 12:59 PM   #2
GD_19
LQ Newbie
 
Registered: Aug 2003
Distribution: Gentoo
Posts: 28

Rep: Reputation: 15
hey i had the exact same problem...

anyway it seems it has nothing to do with hosts or dns (in my case)
but since it was network related according to many forums on the net I thought what if iptables caused the problem?
so i disabled iptables and everything was blazing fast again
anyway it seems x/kde need access to localhost (port 9000) and after a little bit of research I discovered on the net that adding:

Code:
[0:0] -A INPUT -s 127.0.0.1 -j ACCEPT
[0:0] -A OUTPUT -s 127.0.0.1 -j ACCEPT
to /var/lib/iptables/rules-save solves the problem...

(for this to work stop iptables, make the changes and then start iptables again from /etc/init.d/iptables because if you use the restart option the rules file gets overwritten with the previous settings somehow)

hope it helps...
gd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
dhcpcd stalling new application startup patrickclay Linux - General 8 09-09-2005 10:55 AM
dhcpcd problem in Gentoo youngtaek.oh Linux - Networking 18 08-16-2005 09:15 AM
dhcpcd in Gentoo cj10111 Linux - Networking 5 02-21-2005 11:30 PM
dhcpcd blocks kde-startup glamdring Linux - Newbie 2 10-23-2003 03:08 PM
Dhcpcd at startup dr_van_nostrand Linux - Networking 4 04-15-2003 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:56 AM.

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