cpuset_exclusive in controllers from ubuntu_ltp failed on P9

Bug #1836188 reported by Po-Hsu Lin on 2019-07-11
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Po-Hsu Lin
linux (Ubuntu)

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

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.

tag=cpuset_exclusive stime=1562844139
cmdline=" cpuset_exclusive_test.sh"
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"
duration=0 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=0

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
 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'
 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

ProcFB: 0 astdrmfb
ProcKernelCmdLine: root=UUID=acd1a0d7-f6fc-4130-928c-c8b11ad6e4be ro console=hvc0
ProcLoadAvg: 0.74 1.52 0.74 1/1338 6264
 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
 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
 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
 min: 2.862 GHz (cpu 79)
 max: 2.945 GHz (cpu 83)
 avg: 2.903 GHz
 Could not retrieve current diagnostics mode,
 No kernel interface to firmware
cpu_smt: SMT=4

Po-Hsu Lin (cypressyew) wrote :
description: updated
tags: added: 4.18 sru-20190701 ubuntu-ltp
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>
  Nodes that have regular memory.

Po-Hsu Lin (cypressyew) wrote :

The code:
  N_NODES=$(($N_NODES + 1))

Take cares only the case with a range of nodes:

But not some specific nodes like in this case:

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
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) on 2019-07-25
summary: - cpuset_exclusive in controllers from ubuntu_ltp failed on C P9
+ cpuset_exclusive in controllers from ubuntu_ltp failed on P9
Po-Hsu Lin (cypressyew) wrote :

Kindly pinged the mailing list.

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.


Changed in ubuntu-kernel-tests:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers