ppc64_cpu --frequency fails with sched_setaffinity: Invalid argument
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| powerpc-ibm-utils (Ubuntu) |
Invalid
|
Undecided
|
Adam Conrad | ||
Bug Description
---Problem Description---
ppc64_cpu --frequency does not work in Ubuntu 15.04
---uname output---
Linux lep8d 3.18.0-11-generic #12-Ubuntu SMP Fri Jan 23 22:45:52 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux
Machine Type = P8
---Steps to Reproduce---
Install Ubuntu 15.04 DVD on a local hard disk. Then execute the below command to determine the cpu frequency.
root@lep8d:~# ppc64_cpu --frequency
sched_setaffinity: Invalid argument
root@lep8d:~# echo $?
1
root@lep8d:~# lsmcode
Version of System Firmware is FW830.00 (TV830_015) (t) FW830.00 (TV830_014) (p) FW830.00 (TV830_015) (b)
root@lep8d:~# update_flash -d
Current firwmare version :
P side : FW830.00 (TV830_014)
T side : FW830.00 (TV830_015)
Boot side : FW830.00 (TV830_015)
root@lep8d:~#
> The behavior is not consistent. Some times the command fails while in other
> cases returns success and displays proper information
>
> Even with 3.18.0-12-generic I can recreate this failure.
>
> root@lop824:
> sched_setaffinity: Invalid argument
> sched_setaffinity: Invalid argument
> root@lop824:
> Linux lop824 3.18.0-12-generic #13-Ubuntu SMP Thu Jan 29 13:44:26 UTC 2015
> ppc64le ppc64le ppc64le GNU/Linux
> root@lop824:
>
> The other behavior I have observed is first time the command display error
> message twice. On subsequent invocation the same message is displayed only
> once.
>
> root@lop824:
> sched_setaffinity: Invalid argument
> root@lop824:
> sched_setaffinity: Invalid argument
> root@lop824:
> sched_setaffinity: Invalid argument
> root@lop824:
> sched_setaffinity: Invalid argument
> root@lop824:
I ran in a tight loop and didn't see this once. What else is going on when you are doing this?
Can you, next time, run under strace and save a log of the output (strace -f -o log ppc64_cpu --frequency)?
-Nish
I ran few CPU hotplug tests before executing this command.
> Can you, next time, run under strace and save a log of the output (strace -f
> -o log ppc64_cpu --frequency)?
I have already attached strace log in comment #3.
I have captured the log again and have attached here.
root@lep8d:~# strace -f -o strace-
sched_setaffinity: Invalid argument
sched_setaffinity: Invalid argument
sched_setaffinity: Invalid argument
sched_setaffinity: Invalid argument
sched_setaffinity: Invalid argument
| affects: | ubuntu → powerpc-utils (Ubuntu) |
| affects: | powerpc-utils (Ubuntu) → powerpc-ibm-utils (Ubuntu) |
| Changed in powerpc-ibm-utils (Ubuntu): | |
| assignee: | nobody → Adam Conrad (adconrad) |
| Changed in powerpc-ibm-utils (Ubuntu): | |
| status: | New → Invalid |

Default Comment by Bridge