Wind River Support Network

HomeDefectsLIN1022-6548
Fixed

LIN1022-6548 : Increase in ssh-keygen execution time in LTS22 when compared with LTS19

Created: Feb 19, 2024    Updated: Apr 29, 2024
Resolved Date: Apr 29, 2024
Found In Version: 10.22.33.13
Severity: Severe
Applicable for: Wind River Linux LTS 22
Component/s: Userspace

Description

Upon debugging it was found that ssh-keygen is taking 3-4s to execute whereas in LTS19 it was hardly a second.

=====

PS: We ran set of tests on WR reference board and observed that "ssh-keygen" takes bit longer to execute in case of LTS22 when compared with LTS19.

 

*LTS22 -*

root@intel-x86-64:~# uname -a

Linux intel-x86-64 5.15.136-rt61-yocto-preempt-rt #1 SMP PREEMPT_RT Mon Oct 23 20:38:43 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

root@intel-x86-64:~# cat /etc/os-release

ID=wrlinux-ovp

NAME="Wind River Linux OVP LTS"

VERSION="10.22.33.13"

VERSION_ID=10.22.33.13

PRETTY_NAME="Wind River Linux OVP LTS 22.33 Update 13"

root@intel-x86-64:~#

root@intel-x86-64:~# mkdir -p ~/test/

root@intel-x86-64:~# time echo y | ssh-keygen -t rsa -f ~/test/id_rsa -N ""

Generating public/private rsa key pair.

real    0m1.150s

user    0m1.136s

sys     0m0.004s

root@intel-x86-64:~#

root@intel-x86-64:~# rm -rf test/*

root@intel-x86-64:~# time echo y | ssh-keygen -t rsa -f ~/test/id_rsa -N ""

Generating public/private rsa key pair.

real    0m1.478s

user    0m1.467s

sys     0m0.002s

root@intel-x86-64:~#

 

*LTS19 -*

root@intel-x86-64:~# uname -a

Linux intel-x86-64 5.2.60-rt15-yocto-preempt-rt #1 SMP PREEMPT RT Fri Sep 22 11:34:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

root@intel-x86-64:~# cat /etc/os-release

ID="wrlinux-ovp"

NAME="Wind River Linux OVP"

VERSION="10.19.45.23"

VERSION_ID="10.19.45.23"

PRETTY_NAME="Wind River Linux OVP 19.45 Update 23"

root@intel-x86-64:~#

root@intel-x86-64:~# mkdir -p ~/test/

root@intel-x86-64:~# time echo y | ssh-keygen -t rsa -f ~/test/id_rsa -N ""

Generating public/private rsa key pair.

real    0m0.352s

user    0m0.337s

sys     0m0.004s

root@intel-x86-64:~#

root@intel-x86-64:~# rm -rf test/*

root@intel-x86-64:~# time echo y | ssh-keygen -t rsa -f ~/test/id_rsa -N ""

Generating public/private rsa key pair.

real    0m0.316s

user    0m0.299s

sys     0m0.008s

root@intel-x86-64:~#

=====

Workaround

NA

Steps to Reproduce

LTS22 RCPL0013 OVP Host.

Project configration:
$ --dl-layers --distros wrlinux-ovp --machines intel-x86-64 --templates feature/initramfs-integrated,feature/initramfs-install,feature/kdump,feature/kexec,feature/sysklogd,feature/dpdk,feature/package-management, feature/tpm2

$ . ./environment-setup-x86_64-wrlinuxsdk-linux
$ . ./oe-init-build-env build

$ vi conf/local.conf
DISTRO = "wrlinux-ovp"
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"

$ bitbake wrlinux-image-ovp-kvm

-> Deploy kernel and rootfs on intel-x86-64 target.

root@intel-x86-64:~# uname -a

Linux intel-x86-64 5.15.136-rt61-yocto-preempt-rt #1 SMP PREEMPT_RT Mon Oct 23 20:38:43 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

root@intel-x86-64:~# cat /etc/os-release

ID=wrlinux-ovp

NAME="Wind River Linux OVP LTS"

VERSION="10.22.33.13"

VERSION_ID=10.22.33.13

PRETTY_NAME="Wind River Linux OVP LTS 22.33 Update 13"

root@intel-x86-64:~#

root@intel-x86-64:~# mkdir -p ~/test/

root@intel-x86-64:~# time echo y | ssh-keygen -t rsa -f ~/test/id_rsa -N ""

Generating public/private rsa key pair.

real    0m1.150s

user    0m1.136s

sys     0m0.004s

root@intel-x86-64:~#

root@intel-x86-64:~# rm -rf test/*

root@intel-x86-64:~# time echo y | ssh-keygen -t rsa -f ~/test/id_rsa -N ""

Generating public/private rsa key pair.

real    0m1.478s

user    0m1.467s

sys     0m0.002s

root@intel-x86-64:~#
Live chat
Online