Wind River Support Network

HomeDefectsOVP-25
Fixed

OVP-25 : Inaccurate core topology exposed to guest OS

Created: Aug 20, 2013    Updated: Mar 11, 2016
Resolved Date: Dec 3, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.11
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Documentation

Description

Launching a virtual machine with "-smp 4" can cause the guest to have incorrect topology information. This can lead to issues with software that parses /proc/cpuinfo to determine the topology, such as the Intel DPDK.

Workaround

Use "-smp cores=4" instead. This can be found in the Documentation/00-README file, and should also be replaced in any other instances where we provide example scripts for launching virtual machines directly via QEMU (this may not happen when using virsh).

Steps to Reproduce

Launch a guest with -smp 4 in the QEMU parameter list, and then run the provided system_hw script attached in the guest.

root@localhost:~# ./system_hw 
localhost:
	Linux: 3.4.34-ovp-ga-rt40-WR5.0.1.6_preempt-rt
	Arch: x86_64
	Sockets: 1 CPUS: 4
		0: Intel(R) Xeon(R) CPU E5-2658 0 @ 2.10GHz
			1 core, 1 thread, cache 4096 KB, bogomips 4189.90

It identifies 4 CPUs, and then proceeds to tell me I have 1 core, 1 thread. That should have indicated 4 cores.

Change it to "-smp cores=4" and re-run system_hw:

localhost:
	Linux: 3.4.34-ovp-ga-rt40-WR5.0.1.6_preempt-rt
	Arch: x86_64
	Sockets: 1 CPUS: 4
		0: Intel(R) Xeon(R) CPU E5-2658 0 @ 2.10GHz
			4 core(s), 1 thread(s), cache 4096 KB, bogomips 4189.90

Now it indicates 4 cores. The script is just used for convenience, all the information can be identified via /proc/cpuinfo using the physical id and core id values.  

Other Downloads


Live chat
Online