PDA

View Full Version : Slow as snot SSH login


schotty
February 25th, 2003, 17:55
I dont know if it supposed to be this way, but the SSH daemon is about %2000 slower than any other OS I have tried. I am presuming it is a configuration error. What would be causing this? This is before the password is prompted. It takes about 72 seconds to get to the password.

elmore
February 25th, 2003, 18:36
One word: DNS

schotty
February 26th, 2003, 09:35
Well I dont have dns in place. I have been using the ip for some time now. I havent worked out getting a dhcp server going that assigns specific IPs to my buddies. That way I can plop in the crap in my hosts file.

Another thing I noticed after getting X up and going, was that the whole machine is slow. I wonder if a CPU or mainboard is bad. Cuz it is really slow. I gotta upgrade the kernel (will do later today via CVS) to get the nVIDIA drivers installed. I can do a glxgears to see how bad it truly is. Or a time make on the kernel build ....

soup4you2
February 26th, 2003, 09:58
there was some info in the mailing lists a little while ago about people talking about that.. try updating your sources and rebuild sshd and also check pam

schotty
February 26th, 2003, 14:02
Well, perhaps I have a bad CPU mobo ::

I was grabbing cvsup from ports, and after downloading the stuff it needed, I noticed that my system was HORRIBLY slow. Popped up an xterm with top to notice a 2.14 sys load. Got out of gnome and into wmaker and that dropped to (now) 1.35 load. Something is definitely wrong. I will slap in a RH 7.3 drive I got laying around after the build is done, but my system is as follows :

Athlon 700Mhz SlotA CPU
FIC something or another
TNT 1 16MB
512 MB Ram

I dont think for non gaming purposes I should see that much of a slowdown from my main box, which is a 900Mhz athlon and has a Geforce 2 (same ram, and a msi mobo).

schotty
February 26th, 2003, 14:04
there was some info in the mailing lists a little while ago about people talking about that.. try updating your sources and rebuild sshd and also check pam

I am a compleat idiot to PAM. How would I see or diagonse errors there? Kernel, I need to upgrade anyhow so that was on my list. SSH, allright that makes sense. Ill update that too.

soup4you2
February 26th, 2003, 14:41
for the 4.7 releases this is the generic defaults

[code:1:8110e50593]
# OpenSSH with PAM support requires similar modules. The session one is
# a bit strange, though...
sshd auth sufficient pam_skey.so
sshd auth sufficient pam_opie.so no_fake_prompts
#sshd auth required pam_opieaccess.so
#sshd auth sufficient pam_kerberosIV.so try_first_pass
#sshd auth sufficient pam_krb5.so try_first_pass
sshd auth required pam_unix.so try_first_pass
sshd account required pam_unix.so
sshd password required pam_permit.so
sshd session required pam_permit.so
[/code:1:8110e50593]

Kernel_Killer
February 27th, 2003, 03:18
Is there something that needs to be done for optimization for AMD CPUs? I noticed a drop of performance when switching to FreeBSD with my AthlonXP.

soup4you2
February 27th, 2003, 09:17
i believe there's a kernel option i might have this wrong i cant get into my box w/ the athlon at the moment.. but athlon_sse_hack

soup4you2
February 27th, 2003, 10:36
options CPU_ATHLON_SSE_HACK

Strog
February 27th, 2003, 12:00
schotty:
What does top show using all that cpu time?


Kernel_Killer and Soup4you2:
I posted your comments and started a new thread over in the FreeBSD Kernel Configuration forum. :mrgreen:

http://screamingelectron.org/phpBB2/viewtopic.php?p=1923#1923

elmore
February 27th, 2003, 12:05
Nice thanks Strog you beat me to it.

schotty
February 27th, 2003, 18:51
schotty:
What does top show using all that cpu time?


Usually X or the window manager plus whatever application I am currently using. Outside of X I really dont notice any speed issues unless it gets cpu intensive.

I booted to the redhat on the unit and I have identical issues. I am going to swap the board and cpu. I got a k62-500 that runs better.

Kernel_Killer
February 27th, 2003, 23:35
Kernel_Killer and Soup4you2:
I posted your comments and started a new thread over in the FreeBSD Kernel Configuration forum.

w00t!! Killer man! Now I wont have to search all through this topic looking for it again. :P