libhugetlbfs failed with "[Errno 95] Operation not supported" on s390x zVM

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

Bug Description

1. sudo apt-get install git python-minimal -y
2. git clone --depth=1 git://
3. git clone --depth=1 git://
4. rm -fr autotest/client/tests
5. ln -sf ~/autotest-client-tests autotest/client/tests
6. AUTOTEST_PATH=/home/ubuntu/autotest sudo -E autotest/client/autotest-local --verbose autotest/client/tests/libhugetlbfs/control

It will failed with the following python code piece when trying to access /proc/sys/vm/nr_hugepages:

utils.write_one_line('/proc/sys/vm/nr_hugepages', str(pages_requested))

With error message:
  [Errno 95] Operation not supported

For Xenial, the error message is:
  [Errno 524] Unknown error 524

This issue is not a regression.

Full error log:

$ AUTOTEST_PATH=/home/ubuntu/autotest sudo -E autotest/client/autotest-local --verbose autotest/client/tests/libhugetlbfs/control

07:20:37 INFO | Writing results to /home/ubuntu/autotest/client/results/default
07:20:37 DEBUG| Initializing the state engine
07:20:37 DEBUG| Persistent state client.steps now set to []
07:20:37 DEBUG| Persistent option harness now set to None
07:20:37 DEBUG| Persistent option harness_args now set to None
07:20:37 DEBUG| Selected harness: standalone
07:20:48 INFO | START ---- ---- timestamp=1509607248 localtime=Nov 02 07:20:48
07:20:48 DEBUG| Persistent state client._record_indent now set to 1
07:20:48 INFO | START libhugetlbfs libhugetlbfs timestamp=1509607248 localtime=Nov 02 07:20:48
07:20:48 DEBUG| Persistent state client._record_indent now set to 2
07:20:48 DEBUG| Persistent state client.unexpected_reboot now set to ('libhugetlbfs', 'libhugetlbfs')
07:20:49 DEBUG| Running 'apt-get install --yes --force-yes build-essential git gcc'
07:20:50 DEBUG| [stdout] Reading package lists...
07:20:50 DEBUG| [stdout] Building dependency tree...
07:20:50 DEBUG| [stdout] Reading state information...
07:20:50 DEBUG| [stdout] build-essential is already the newest version (12.4ubuntu1).
07:20:50 DEBUG| [stdout] gcc is already the newest version (4:7.2.0-1ubuntu1).
07:20:50 DEBUG| [stdout] git is already the newest version (1:2.14.1-1ubuntu4).
07:20:50 DEBUG| [stdout] The following packages were automatically installed and are no longer required:
07:20:50 DEBUG| [stdout] containerd linux-headers-4.13.0-14 linux-headers-4.13.0-14-generic
07:20:50 DEBUG| [stdout] linux-image-4.13.0-14-generic linux-image-extra-4.13.0-14-generic runc
07:20:50 DEBUG| [stdout] Use 'sudo apt autoremove' to remove them.
07:20:50 DEBUG| [stdout] 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
07:20:50 ERROR| [stderr] W: --force-yes is deprecated, use one of the options starting with --allow instead.
07:20:50 DEBUG| Running 'which gcc'
07:20:50 DEBUG| [stdout] /usr/bin/gcc
07:20:53 ERROR| Exception escaping from test:
Traceback (most recent call last):
  File "/home/ubuntu/autotest/client/shared/", line 378, in _exec
    _cherry_pick_call(self.initialize, *args, **dargs)
  File "/home/ubuntu/autotest/client/shared/", line 738, in _cherry_pick_call
    return func(*p_args, **p_dargs)
  File "/home/ubuntu/autotest/client/tests/libhugetlbfs/", line 39, in initialize
  File "/home/ubuntu/autotest/client/shared/", line 408, in write_one_line
    open_write_close(filename, line.rstrip('\n') + '\n')
  File "/home/ubuntu/autotest/client/shared/", line 416, in open_write_close
IOError: [Errno 95] Operation not supported

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: linux-image-4.13.0-16-generic 4.13.0-16.19
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic s390x
NonfreeKernelModules: zfs zunicode zavl zcommon znvpair
AlsaDevices: Error: command ['ls', '-l', '/dev/snd/'] failed with exit code 2: ls: cannot access '/dev/snd/': No such file or directory
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.7-0ubuntu3
Architecture: s390x
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
Date: Thu Nov 2 07:18:00 2017
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'

Lsusb: Error: command ['lsusb'] failed with exit code 1:

 PATH=(custom, no user)
ProcFB: Error: [Errno 2] No such file or directory: '/proc/fb'
ProcKernelCmdLine: root=/dev/mapper/kl04vg01-kl04root crashkernel=196M BOOT_IMAGE=0
 linux-restricted-modules-4.13.0-16-generic N/A
 linux-backports-modules-4.13.0-16-generic N/A
 linux-firmware 1.169
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)

Po-Hsu Lin (cypressyew) wrote :
Changed in linux (Ubuntu):
assignee: nobody → Po-Hsu Lin (cypressyew)

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1729510

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Po-Hsu Lin (cypressyew) on 2017-11-02
Changed in linux (Ubuntu):
status: Incomplete → In Progress
description: updated
Po-Hsu Lin (cypressyew) on 2017-11-02
description: updated
Po-Hsu Lin (cypressyew) wrote :

The system got HUGETLB enabled in the config:

$ cat /boot/config-4.13.0-16-generic | grep HUGETLB

But there is no hugepage_size in meminfo:
$ cat /proc/meminfo | grep Hugepagesize

Looks like hugepage is not supported. I will fix the detection part in our test suite.

Not sure if this is an expected behaviour in the kernel.

Changed in linux (Ubuntu):
status: In Progress → Confirmed
assignee: Po-Hsu Lin (cypressyew) → nobody
Po-Hsu Lin (cypressyew) on 2017-11-29
description: updated
Sean Feole (sfeole) wrote :

very old bug, with no action on it, marking bug as incomplete and will
close in 5 days if no update.

Changed in ubuntu-kernel-tests:
status: New → Incomplete
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Po-Hsu Lin (cypressyew) wrote :

As 17.10 has reaches its EOL, and the test was blacklisted on Bionic and onward.
I will mark this task as Won't fix.

Changed in ubuntu-kernel-tests:
status: Incomplete → Won't Fix
Changed in linux (Ubuntu):
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers