Re: extremely slow startup times

Aaron Unger <[email protected]>
Newsgroups gmane.comp.gnome.ximian.snapshots
Message-ID <[email protected]>
Ok... sorry for the slow response. Vacation called. :-)

On Sat, 2002-08-03 at 18:16, Damian Ivereigh wrote:
<snip>
> I have found the simple solution is to give your machine a hostname
and
> make that an alias to the loopback address in /etc/hosts. For example
> mine is:-
>
> 127.0.0.1 localhost damian-x20.cisco.com damian-x20
>
> The hostname for my machine is damian-x20.cisco.com
<snip>

I've tried this, with many possible permutations of what it may think my
hostname is. It didn't work in any way I tried. I also tried setting up
my computer as a dns master for my ip block (10.0.0.0) but even that
didn't work. And then today, I made a discovery.

I turned off my iptables filter, and lo and behold, it works! It works
well! Before, turning networking off and then back on, Nautilus
continued to be really slow, but now that I've turned iptables off,
everything works well, and responds quickly.

Sooo... here's what I found:
gnome2 (and nautilus, and maybe some other progs) try to connect to
127.0.0.1 port 111 (sunrpc, or portmapper). Not realizing the full
implications, I set my iptables INPUT chain to default to DROP. Then I
explicitly allowed various types of packets through. But I didn't allow
any 127.0.0.1 packets through! They were all being dropped, hence the
delay. If they were to be rejected or accepted, there would be no delay.
So by adding an ACCEPT rule for 127.0.0.1, it fixes the problem.

Woo hoo!

Thanks all for your help! I hope this helps someone else in the future.
:-)

-- Aaron Unger
[email protected]



_______________________________________________
gnome-2-snapshots maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gnome-2-snapshots
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.