Fixed
Created: Jul 24, 2019
Updated: Aug 15, 2019
Resolved Date: Aug 7, 2019
Found In Version: 10.17.41.16
Fix Version: 10.17.41.17
Severity: Standard
Applicable for: Wind River Linux LTS 17
Component/s: BSP
While looking at the block I/O tracing utilities and the below command helps in dumping per process disk read/write in KB/sec which would be very helpful debug/analysis.
This utility is working fine in wrl6 but on wrl9 seems to be hitting this minor bug ([https://bugzilla.redhat.com/show_bug.cgi?id=1321875]). (this is fixed in upstream later),
On wrl9 ->
root@tahoma-node:~# btrace -s /dev/sda5
FAILED to start thread on CPU 8: 22/Invalid argument
FAILED to start thread on CPU 9: 22/Invalid argument
FAILED to start thread on CPU 10: 22/Invalid argument
FAILED to start thread on CPU 11: 22/Invalid argument
FAILED to start thread on CPU 12: 22/Invalid argument
FAILED to start thread on CPU 13: 22/Invalid argument
FAILED to start thread on CPU 14: 22/Invalid argument
FAILED to start thread on CPU 15: 22/Invalid argument
(curtailed output for reference after running for less than a minute)
# cat /proc/cmdline
BOOT_IMAGE=/vmlinuz root=LABEL=jrootb_P ro quiet pcie_port_pm=off libata.force=noncq isolcpus=2-7 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=512M {color:#FF0000}*maxcpus=8*{color} acpi_enforce_resources=lax
root@tahoma-node:~# cat /sys/devices/system/cpu/online
0-7
root@tahoma-node:~#
root@tahoma-node:~# cat /sys/devices/system/cpu/offline
8-15
-----
Looking into source code for "blktrace" I observed upstream fix 80c4041b2e7a7d5afb75df563bf51bb27773c095 is missing in WRL9 whereas it is available in LTS18,
https://kernel.googlesource.com/pub/scm/linux/kernel/git/axboe/blktrace/+/80c4041b2e7a7d5afb75df563bf51bb27773c095%5E!/
https://bugzilla.redhat.com/show_bug.cgi?id=1321875
NA
Active in customer env.
Host - WR9.0.0.20_ovp
Project configration:
--dl-layers --distros wrlinux-ovp --machines intel-x86-64 --templates feature/initramfs,feature/kdump,feature/kexec,feature/kernel-ovp-kvm,feature/sysklogd,feature/dpdk,feature/package-management --layers wr-kernel wr-ovp
Add "blktrace" into build by adding IMAGE_INSTALL_append = " blktrace"
bitbake wrlinux-image-ovp-kvm
Deploy host image to target.
# blktrace -w 1 -d /dev/sda
OR
# btrace -s /dev/sda