<div dir="ltr"><div>Slow ssh logon is almost always reverse DNS problems on the server side.    Adding the client to the server's /etc/hosts will usually resolve the problem.<br><br></div>-Chip<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 18, 2015 at 10:37 PM, PÁSZTOR György <span dir="ltr"><<a href="mailto:pasztor@sagv5.gyakg.u-szeged.hu" target="_blank">pasztor@sagv5.gyakg.u-szeged.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I faced with that, the login onto my new omnios zone is slow.<br>
I tried to debug.<br>
Many of the symptoms seemed pretty the same as this:<br>
<a href="http://broken.net/uncategorized/resolving-slow-ssh-login-performance-problems-on-openindiana/" target="_blank">http://broken.net/uncategorized/resolving-slow-ssh-login-performance-problems-on-openindiana/</a><br>
<br>
Also in my case it stopped at the same point: after the kexinit sent.<br>
<br>
However, on my omnios, the cryptadm list showed this:<br>
pasztor@omni:~$ cryptoadm list<br>
<br>
User-level providers:<br>
Provider: /usr/lib/security/$ISA/pkcs11_kernel.so<br>
Provider: /usr/lib/security/$ISA/pkcs11_softtoken.so<br>
<br>
Kernel software providers:<br>
        des<br>
        aes<br>
        arcfour<br>
        blowfish<br>
        ecc<br>
        sha1<br>
        sha2<br>
        md4<br>
        md5<br>
        rsa<br>
        swrand<br>
<br>
Kernel hardware providers:<br>
[---end of output----]<br>
<br>
So, in my case it did not contained the tpm module.<br>
I tried the opposite: enabling the tpm module, but nothing changed.<br>
(Maybe it become even slower. I did not count the seconds)<br>
So, I rewert it back, and run the same truss command, which revealed this:<br>
There are tons's of file openings in the /usr/lib/locale dir at that point:<br>
<br>
24560:   8.8232 stat("/usr/lib/locale/is_IS.UTF-8", 0x08047D48) = 0<br>
24560:   8.8234 open("/usr/lib/locale//is_IS.UTF-8/LC_CTYPE/LCL_DATA",<br>
O_RDONLY) = 7<br>
24560:   8.8236 fstat(7, 0x08047658)                            = 0<br>
24560:   8.8237 mmap(0x00000000, 94904, PROT_READ, MAP_PRIVATE, 7, 0) =<br>
0xFEDE7000<br>
24560:   8.8238 close(7)                                        = 0<br>
...<br>
24560:  14.5883<br>
open("/usr/lib/locale//el_GR.ISO8859-7/LC_MESSAGES/LCL_DATA", O_RDONLY) = 7<br>
24560:  14.5884 fstat(7, 0x08047678)                            = 0<br>
24560:  14.6061 read(7, " ^ ( ( [EDCD ] ( [E1C1 ]".., 82)       = 82<br>
24560:  14.6063 close(7)                                        = 0<br>
24560:  14.6065 getdents64(5, 0xFEE04000, 8192)                 = 0<br>
24560:  14.6069 ioctl(1, TCGETA, 0x08046DBE)                    Err#22 EINVAL<br>
24560:  14.6069 fstat64(1, 0x08046E00)                          = 0<br>
24560:  14.6070 brk(0x080689D0)                                 = 0<br>
24560:  14.6071 brk(0x0806A9D0)                                 = 0<br>
24560:  14.6072 fstat64(1, 0x08046D00)                          = 0<br>
24560:  14.6074 close(5)                                        = 0<br>
24560:  14.6075 write(1, " C\n P O S I X\n a f _ Z".., 2891)    = 2891<br>
24556:  14.6076 read(3, " C\n P O S I X\n a f _ Z".., 5120)     = 2891<br>
24560:  14.6077 _exit(0)<br>
24556:  14.6080 brk(0x080D0488)                                 = 0<br>
24556:  14.6082 brk(0x080D2488)                                 = 0<br>
24556:  14.6083 read(3, 0x080CD544, 5120)                       = 0<br>
24556:  14.6084 llseek(3, 0, SEEK_CUR)                          Err#29 ESPIPE<br>
24556:  14.6085 close(3)                                        = 0<br>
24556:  14.6296 waitid(P_PID, 24560, 0x080473F0, WEXITED|WTRAPPED) = 0<br>
<br>
So, does somebody knows what is happening at that point,<br>
why,<br>
and how can I "fine-tune" it?<br>
<br>
Kind regards,<br>
György Pásztor<br>
_______________________________________________<br>
OmniOS-discuss mailing list<br>
<a href="mailto:OmniOS-discuss@lists.omniti.com">OmniOS-discuss@lists.omniti.com</a><br>
<a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss" target="_blank">http://lists.omniti.com/mailman/listinfo/omnios-discuss</a><br>
</blockquote></div><br></div>