Wind River Support Network

HomeDefectsOVP6-50
Fixed

OVP6-50 : behavior change with nproc between RCPL20 and RCPL31

Created: Dec 13, 2016    Updated: Feb 11, 2019
Resolved Date: Jan 5, 2017
Previous ID: LIN6-12037
Found In Version: 6.0.0.22
Fix Version: 6.0.0.32
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

With WRL 6.0 RCPL 31 we see nproc reports actual number of cores: 
-------- 
root@honavar-node:~# uname -a 
Linux honavar-node 3.10.100-ovp-rt110-WR6.0.0.31_preempt-rt #1 SMP PREEMPT RT Fri Oct 28 03:13:58 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux 
root@honavar-node:~# cat /proc/cmdline 
BOOT_IMAGE=/vmlinuz root=LABEL=jrootb_P ro quiet isolcpus=2-255 enforcing=0 pci=resource_alignment=00:1f.3;09:0d.0 rootdelay=5 unknown_nmi_panic=1 ro max_loop=255 console=ttyS0,9600 crashkernel=256M maxcpus=6 
root@honavar-node:~# uname -a 
Linux honavar-node 3.10.100-ovp-rt110-WR6.0.0.31_preempt-rt #1 SMP PREEMPT RT Fri Oct 28 03:13:58 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux 
root@honavar-node:~# nproc 
6 
root@honavar-node:~# 


While earlier (E.g. WRL 6.0 RCPL 20) it used to show number of cores not isolated: 

root@honavar-node:~# cat /proc/cmdline 
BOOT_IMAGE=/vmlinuz root=LABEL=jrootp_P ro quiet isolcpus=2-255 enforcing=0 pci=resource_alignment=00:1f.3;09:0d.0 rootdelay=5 unknown_nmi_panic=1 ro max_loop=255 console=ttyS0,9600 crashkernel=256M maxcpus=6 
root@honavar-node:~# uname -a 
Linux honavar-node 3.10.79-ovp-rt74-WR6.0.0.20_preempt-rt #1 SMP PREEMPT RT Wed Nov 2 03:26:50 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux 
root@honavar-node:~# nproc 
2 
root@honavar-node:~# 
---------- 

Please let us know the reason for this change and also what is the right way to cross check on how many cores are being used for host (i.e. not isolated). 

Steps to Reproduce

1. configure two project, one with RCPL 20 and one with RCPL31:
/opt/WRLX6/wrlinux-6/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=preempt-rt --enable-rootfs=ovp-kvm+installer-support --enable-addons=wr-ovp --enable-sdkimage-staticlibs=yes --with-template=feature/kvm,feature/benchmark,feature/debug,feature/gdb,feature/kdump,feature/kexec,feature/kernel-debug,feature/kernel-tune,feature/build_libc,feature/dpdk-vswitch,feature/lttng2,feature/python_fix --with-layer=examples/fs-final --enable-parallel-pkgbuilds=8 --enable-jobs=8 --enable-checkout-all-layers=yes --with-package=wrs-kvm-helper,qemu,libvirt,libvirt-libvirtd,libvirt-virsh,kernel-module-kvm,kernel-module-kvm-intel,kernel-module-kvm-amd,bridge-utils,inetutils,inetutils-rshd,inetutils-telnetd,inetutils-ftpd,ltp --enable-rm-oldimgs=yes --enable-internet-download=yes --enable-reconfig --enable-prelink=no --with-rcpl-version=0020


/opt/WRLX6/wrlinux-6/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=preempt-rt --enable-rootfs=ovp-kvm --enable-addons=wr-ovp --enable-sdkimage-staticlibs=yes --with-template=feature/kvm,feature/benchmark,feature/debug,feature/gdb,feature/kdump,feature/kexec,feature/kernel-debug,feature/kernel-tune,feature/build_libc,feature/dpdk-vswitch --enable-parallel-pkgbuilds=8 --enable-jobs=8 --enable-checkout-all-layers=yes --with-package=wrs-kvm-helper,qemu,libvirt,libvirt-libvirtd,libvirt-virsh,kernel-module-kvm,kernel-module-kvm-intel,kernel-module-kvm-amd,bridge-utils,inetutils,inetutils-rshd,inetutils-telnetd,inetutils-ftpd,ltp --enable-rm-oldimgs=yes --enable-internet-download=yes --enable-reconfig --with-rcpl-version=0031

2. boot the two project image on a board, with the same kernel parameter:
isolcpus=2-255 maxcpus=6

3. The output of nproc is not the same, as described above.

Other Downloads


Live chat
Online