cpuset_exclusive in controllers from ubuntu_ltp failed on P9

Bug #1836188 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Po-Hsu Lin
linux (Ubuntu)
Invalid
Undecided
Unassigned
Cosmic
Invalid
Undecided
Unassigned

Bug Description

This issue was only spotted on node Baltar (P9)

This is caused by the return value in:
  $ cat /sys/devices/system/node/has_normal_memory
  0,8

The test was trying to use do arithmetic operation with it, but didn't expect to get a return value with a comma in it.

<<<test_start>>>
tag=cpuset_exclusive stime=1562844139
cmdline=" cpuset_exclusive_test.sh"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
/opt/ltp/testcases/bin/cpuset_exclusive_test.sh: 36: /opt/ltp/testcases/bin/cpuset_funcs.sh: arithmetic expression: expecting EOF: "0,8 + 1"
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=0
<<<test_end>>>

Not sure if this is a test case issue, or if we should see a comma in /sys/devices/system/node/has_normal_memory

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: linux-image-4.18.0-25-generic 4.18.0-25.26
ProcVersionSignature: Ubuntu 4.18.0-25.26-generic 4.18.20
Uname: Linux 4.18.0-25-generic ppc64le
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Jul 11 10:56 seq
 crw-rw---- 1 root audio 116, 33 Jul 11 10:56 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.10-0ubuntu13.4
Architecture: ppc64el
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Date: Thu Jul 11 11:25:40 2019
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 003: ID 0451:80ff Texas Instruments, Inc.
 Bus 001 Device 004: ID 0557:2419 ATEN International Co., Ltd
 Bus 001 Device 002: ID 0557:7000 ATEN International Co., Ltd Hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
PciMultimedia:

ProcFB: 0 astdrmfb
ProcKernelCmdLine: root=UUID=acd1a0d7-f6fc-4130-928c-c8b11ad6e4be ro console=hvc0
ProcLoadAvg: 0.74 1.52 0.74 1/1338 6264
ProcLocks:
 1: POSIX ADVISORY WRITE 1805 00:17:364 0 EOF
 2: POSIX ADVISORY WRITE 3956 00:17:504 0 EOF
 3: FLOCK ADVISORY WRITE 3915 00:17:566 0 EOF
ProcSwaps:
 Filename Type Size Used Priority
 /swap.img file 8388544 0 -2
ProcVersion: Linux version 4.18.0-25-generic (buildd@bos02-ppc64el-009) (gcc version 8.3.0 (Ubuntu 8.3.0-6ubuntu1~18.10.1)) #26-Ubuntu SMP Mon Jun 24 09:32:46 UTC 2019
RelatedPackageVersions:
 linux-restricted-modules-4.18.0-25-generic N/A
 linux-backports-modules-4.18.0-25-generic N/A
 linux-firmware 1.175.6
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
VarLogDump_list: total 0
cpu_cores: Number of cores present = 40
cpu_coreson: Number of cores online = 39
cpu_dscr: DSCR is 16
cpu_freq:
 min: 2.862 GHz (cpu 79)
 max: 2.945 GHz (cpu 83)
 avg: 2.903 GHz
cpu_runmode:
 Could not retrieve current diagnostics mode,
 No kernel interface to firmware
cpu_smt: SMT=4

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
description: updated
tags: added: 4.18 sru-20190701 ubuntu-ltp
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

From the document, it looks like a test case issue to me:
What: /sys/devices/system/node/has_normal_memory
Date: October 2002
Contact: Linux Memory Management list <email address hidden>
Description:
  Nodes that have regular memory.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

The code:
  N_NODES=${N_NODES#*-*}
  N_NODES=$(($N_NODES + 1))

Take cares only the case with a range of nodes:
  0-8

But not some specific nodes like in this case:
  0,8

Changed in linux (Ubuntu Cosmic):
status: New → Invalid
Changed in ubuntu-kernel-tests:
assignee: nobody → Po-Hsu Lin (cypressyew)
status: New → In Progress
Changed in linux (Ubuntu):
status: New → Invalid
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This is also affecting any script that's calling this cpuset_funcs.sh:
  * cpuset_base_ops
  * cpuset_exclusive
  * cpuset_hierarchy
  * cpuset_hotplug cpuset_inherit
  * cpuset_load_balance
  * cpuset_memory cpuset_memory_pressure
  * cpuset_memory_spread
  * cpuset_sched_domains
  * cpuset_syscall

Po-Hsu Lin (cypressyew)
summary: - cpuset_exclusive in controllers from ubuntu_ltp failed on C P9
+ cpuset_exclusive in controllers from ubuntu_ltp failed on P9
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Kindly pinged the mailing list.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

The patch was pending in upstream for too long, so I decided to apply it locally in our repo first.

We can revert this once it's accepted upstream.

https://kernel.ubuntu.com/git/ubuntu/autotest-client-tests.git/commit/?id=fa0b9ed6b81e0cb3d7bbeb980559edec01b27b51

Changed in ubuntu-kernel-tests:
status: In Progress → Fix Released
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.