Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Extremely Slow sshd [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
WhiskeyTango
n00b
n00b


Joined: 14 Feb 2006
Posts: 6
Location: Los Angeles

PostPosted: Wed May 03, 2006 5:46 am    Post subject: Extremely Slow sshd [SOLVED] Reply with quote

Hey Everybody,
I have been using gentoo on my ppc now for a little while now without many problems that couldn't be solved by either looking online or on these forums, but this one has me stumped.
Within the last week, I emerged tightvnc onto the system and enabled sshd so I could logon remotely and use VNC. The first couple of times that I logged on through ssh, it worked just fine. But now, no matter where I log on at, my connection is ridculously slow.
For example, when I type something into the terminal when I get connected, which usually takes 20-30 seconds to ask for the password and authorize me, it is always delayed by a second or two. And the more I type, it will hang for a bit, then quickly catch up.
Initially I thought it was the kernel, so I reverted to an older kernel that I knew worked well, and it was still slow. Also, I noticed that VNC also stopped working correctly. It became very slow as well. I am new to this kind of stuff, so I may just have a simple configuration error.
I also pulled any sort of firewall that could be blocking it. The box is on a private network, and is not readily accessable from the internet.
Can anyone think of something simple right off the bat that could cause this? Thanks.
-WT

Gentoo 2.6.15-r1
PPC G4 dual 500Mhz
768 Megs RAM


Last edited by WhiskeyTango on Thu May 04, 2006 8:18 am; edited 2 times in total
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Wed May 03, 2006 2:15 pm    Post subject: Reply with quote

(reverse) dns lookups?
ipv6 lookups?
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
WhiskeyTango
n00b
n00b


Joined: 14 Feb 2006
Posts: 6
Location: Los Angeles

PostPosted: Wed May 03, 2006 8:48 pm    Post subject: Reply with quote

davjel wrote:
(reverse) dns lookups?
ipv6 lookups?


Hmm, currently I have disabled any form of IPV6 through my router. With regard to the reverse DNS, would it be a problem if I dont have a DNS server setup locally. Basically I am doing this across a small private LAN, because I have more computers that I have keyboards or monitors :D . Since it seemed to work quickly a couple times before, I'm not quite sure how it could be a reverse DNS problem. But then again, I am not very familiar with DNS besides the basic concept of linking names to IP addresses. Is there some test I could run to potentially see if it has something to do with the network vs a problem internally like the kernel configuration?
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Thu May 04, 2006 4:16 am    Post subject: Reply with quote

WhiskeyTango wrote:
davjel wrote:
(reverse) dns lookups?
ipv6 lookups?


Hmm, currently I have disabled any form of IPV6 through my router.

I mean ipv6 on your ppc.
Code:
# emerge --info

should not show ipv6

Quote:
With regard to the reverse DNS, would it be a problem if I dont have a DNS server setup locally.

No, but your ppc should be able to resolve addresses
Code:
$ ping -c1 forums.gentoo.org

should show 0% packet loss

Quote:
Basically I am doing this across a small private LAN, because I have more computers that I have keyboards or monitors :D . Since it seemed to work quickly a couple times before, I'm not quite sure how it could be a reverse DNS problem. But then again, I am not very familiar with DNS besides the basic concept of linking names to IP addresses. Is there some test I could run to potentially see if it has something to do with the network vs a problem internally like the kernel configuration?

run some basic network tests
Code:
# ifconfig
# route
# time ping -c1 forums.gentoo.org

_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
WhiskeyTango
n00b
n00b


Joined: 14 Feb 2006
Posts: 6
Location: Los Angeles

PostPosted: Thu May 04, 2006 5:01 am    Post subject: Reply with quote

Ok. So far here is whats happening.
First of all, ipv6 was installed. It was not in my make.conf file, so I am assuming that it is installed by default. I fixed that by adding -ipv6 to the use line in my make.conf file.

Second, I was unable to ping forums.google.com. However, since I am using the machine right now to browse the internet and reply to this forum, I am assiming that DNS resolving is working.
But just to make sure, I went ahead and ran a trace route on gentoo.org. Here are the results


PowerTux ~ # tracepath gentoo.org
1: PowerTux.Stiegnet (192.168.1.50) 0.504ms pmtu 1500
1: 192.168.1.1 (192.168.1.1) 1.444ms
2: 208-179-109-1.lax.conquesthousing.com (208.179.109.1) 4.138ms
3: s6-1.dcap5.lax.us.tierzero.net (208.179.253.141) 5.432ms
4: asbr3.bsap.lax1.ca.us.tierzero.net (216.31.128.133) asymm 6 5.864ms
5: ip-208.49.147.101.gblx.net (208.49.147.101) asymm 6 6.826ms
6: no reply
7: no reply
8: no reply
9: no reply

and it pretty much goes on with no reply from there. So I am assuming that the hop after gblx.net is blocking pings to keep down traffic.

I guess all that is left to do now is to re compile the daemon so that no longer has ipv6 support. Is there a way I could simple disable that in the configuration file, or do I have to re-emerge the whole thing? And if I have to recompile it, what would I type. I tried this

PowerTux ~ # emerge net-misc/ssh
Calculating dependencies
!!! All ebuilds that could satisfy "net-misc/ssh" have been masked.
!!! One of the following masked packages is required to complete your request:
- net-misc/ssh-3.2.9.1-r1 (masked by: missing keyword)

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.

But as you can see, that was not it.
Also, where do I give good feedback since you helped me? Thanks.
-WT
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu May 04, 2006 5:05 am    Post subject: Reply with quote

The package is openssh, not ssh. :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
WhiskeyTango
n00b
n00b


Joined: 14 Feb 2006
Posts: 6
Location: Los Angeles

PostPosted: Thu May 04, 2006 5:13 am    Post subject: Reply with quote

crazy quick reply. Will try it out.

Ok
I re-emerged openssh :D, and that was successful. However it is still slow as a dog.
Now, when my machine boots up, I am getting this message that says

* Re-caching dependency info (mtimes differ)...
* Re-caching dependency info (mtimes differ)...
* Re-caching dependency info (mtimes differ)...
* Re-caching dependency info (mtimes differ)...
* Starting sshd ... [ ok ]

Could this be causing problems?
Anyting else I might try and test. I went ahead and used ssh on the machine to itself, (ie ssh 'username'@127.0.0.1), and that seemed to work great, which makes me thing its a network issue.
Thanks
-WT
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Thu May 04, 2006 6:20 am    Post subject: Reply with quote

WhiskeyTango wrote:
Ok. So far here is whats happening.
First of all, ipv6 was installed. It was not in my make.conf file, so I am assuming that it is installed by default. I fixed that by adding -ipv6 to the use line in my make.conf file.

Second, I was unable to ping forums.google.com. However, since I am using the machine right now to browse the internet and reply to this forum, I am assiming that DNS resolving is working.

forums.google.com does not exist :)
see my previous post, it was forums.gentoo.org, ofcourse

but it is on the pc you ssh into that you need to perform this

Quote:

But just to make sure, I went ahead and ran a trace route on gentoo.org. Here are the results


PowerTux ~ # tracepath gentoo.org
1: PowerTux.Stiegnet (192.168.1.50) 0.504ms pmtu 1500
1: 192.168.1.1 (192.168.1.1) 1.444ms
2: 208-179-109-1.lax.conquesthousing.com (208.179.109.1) 4.138ms
3: s6-1.dcap5.lax.us.tierzero.net (208.179.253.141) 5.432ms
4: asbr3.bsap.lax1.ca.us.tierzero.net (216.31.128.133) asymm 6 5.864ms
5: ip-208.49.147.101.gblx.net (208.49.147.101) asymm 6 6.826ms
6: no reply
7: no reply
8: no reply
9: no reply

and it pretty much goes on with no reply from there. So I am assuming that the hop after gblx.net is blocking pings to keep down traffic.

something like that

Quote:

But as you can see, that was not it.
Also, where do I give good feedback since you helped me? Thanks.
-WT


Hm, I don't think the gentoo forums have such a feature

Quote:
I re-emerged openssh :D, and that was successful. However it is still slow as a dog.
Now, when my machine boots up, I am getting this message that says

* Re-caching dependency info (mtimes differ)...
* Re-caching dependency info (mtimes differ)...
* Re-caching dependency info (mtimes differ)...
* Re-caching dependency info (mtimes differ)...
* Starting sshd ... [ ok ]

Could this be causing problems?

No, don't think so
run
Code:
# modules-update
to fix this

Quote:

Anyting else I might try and test. I went ahead and used ssh on the machine to itself, (ie ssh 'username'@127.0.0.1), and that seemed to work great, which makes me thing its a network issue.
Thanks
-WT

127.0.0.1 is resolved through /etc/hosts
looks like it could be a dns issue
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
WhiskeyTango
n00b
n00b


Joined: 14 Feb 2006
Posts: 6
Location: Los Angeles

PostPosted: Thu May 04, 2006 8:17 am    Post subject: Reply with quote

Corrections:

your right, there is no such site as forums.google.com
I meant to say I had pinged both forums.gentoo.org and google.com. Both however did fail.

That traceroute that I posted was from the ppc machine that I have been trying to log in to using ssh. Everything locally on the machine seems to work great. The last post I made to this forum (ie the one before this), was on that machine.

I also had already updated the hosts file on that machine to reflect the change in the name.

127.0.0.1 PowerTux

Thinking it may be a dns problem, I went ahead and made some changes to the host files on both the client ant server machines

on the server (powertux), i added the client machine name and corresponding ip address
192.168.1.101 avs-g4

and on my laptop, which is a macintosh running OSX i added this line to the hosts file
192.168.1.50 powertux

Still intolerably slow. :evil:

Would what I did potentially fix a DNS issue, or am I barking up the wrong tree?

You know what... Just did figure out whats going on. The machine is fine, it is my router that is having the DNS issues. I appreciate everyone's help in this n00b matter, espically davjel. Laters.
Back to top
View user's profile Send private message
biggyL
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 120
Location: Israel

PostPosted: Mon Jun 05, 2006 11:54 am    Post subject: Reply with quote

Seems to be connected to hwclock:

Running:
# date {set here the right date/time}
# hwclock --systohc
# hwclock -w

Should solve it.
Back to top
View user's profile Send private message
converter
Apprentice
Apprentice


Joined: 24 Dec 2002
Posts: 163

PostPosted: Mon Jun 05, 2006 12:32 pm    Post subject: Reply with quote

WhiskeyTango wrote:
Corrections:

I also had already updated the hosts file on that machine to reflect the change in the name.

127.0.0.1 PowerTux



You're guaranteed to have problems with this configuration eventually, because applications won't be able to resolve "localhost".

Make it:

Code:

127.0.0.1    localhost


and then add another record for the LAN interface IP address with your machine's Fully Qualified Domain Name.

When it's all said and done, you should be able to resolve both localhost and powertux.
_________________
converter
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum