[Bug 891383] New: Bad performance of python-paramiko SSHClient.connect()
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=891383 https://bugzilla.novell.com/show_bug.cgi?id=891383#c0 Summary: Bad performance of python-paramiko SSHClient.connect() Classification: openSUSE Product: openSUSE Factory Version: 201408* Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jmatejka@suse.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=601906) --> (http://bugzilla.novell.com/attachment.cgi?id=601906) paramiko sscce Bad performance of python-paramiko SSHClient.connect() paramiko 1.11: yac@linux-1e2q % python paramiko-sscce.py 2014-08-11 19:00:21.954970 2014-08-11 19:00:23.477579 0:00:01.522609 paramiko 1.13: yac@linux-1e2q % python paramiko-sscce.py 2014-08-11 19:03:12.141591 2014-08-11 19:03:22.407041 0:00:10.265450 The difference in this sscce is only ~8 seconds, however in the testsuite of my project it makes difference of 40 seconds per one connection. My guess is it has something to do with open file descriptors. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=891383 https://bugzilla.novell.com/show_bug.cgi?id=891383#c1 --- Comment #1 from Jan Matějka <jmatejka@suse.com> 2014-08-11 17:27:41 UTC --- It seems I can reproduce the issue on gentoo as well but the difference is not so huge. paramiko 1.11: yac@deathstar % python paramiko-sscce.py 2014-08-11 19:25:03.000016 2014-08-11 19:25:03.949961 0:00:00.949945 paramiko 1.13: % python paramiko-sscce.py 2014-08-11 19:24:49.195599 2014-08-11 19:24:53.320047 0:00:04.124448 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=891383 https://bugzilla.novell.com/show_bug.cgi?id=891383#c2 --- Comment #2 from Jan Matějka <jmatejka@suse.com> 2014-08-11 17:32:40 UTC --- seems to be introduced already with 1.12.0 yac@deathstar(gentoo box) % python paramiko-sscce.py 2014-08-11 19:30:07.298126 2014-08-11 19:30:11.064421 0:00:03.766295 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=891383 https://bugzilla.novell.com/show_bug.cgi?id=891383#c3 --- Comment #3 from Jan Matějka <jmatejka@suse.com> 2014-08-11 21:51:11 UTC --- Since neither openSUSE, nor gentoo add any patches to paramiko, I reported the issue upstream at https://github.com/paramiko/paramiko/issues/370 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=891383 https://bugzilla.novell.com/show_bug.cgi?id=891383#c4 Jan Matějka <jmatejka@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Bad performance of |Bad performance of |python-paramiko |python-paramiko |SSHClient.connect() |SSHClient.load_system_host_ | |keys() --- Comment #4 from Jan Matějka <jmatejka@suse.com> 2014-08-12 11:10:58 UTC --- Since the issue is upstream, I'm updating the upstream ticket only (including fixed reproducer and new outputs) form now on. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=891383 https://bugzilla.novell.com/show_bug.cgi?id=891383#c5 Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bwiedemann@suse.com, | |pascal.bleser@opensuse.org, | |vuntz@suse.com Resolution| |UPSTREAM --- Comment #5 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-08-18 08:03:01 CEST --- it seems, upstream now has a fix in the queue. Thanks Jan for pushing this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com