zram02 in kernel_misc from ubuntu_ltp failed on B / B-5.4 i386

Bug #1878896 reported by Po-Hsu Lin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

Issue found on B-hwe-5.3 (5.3.0-53.47~18.04.1) with i386 node pepe (works with other arches)

 startup='Fri May 8 23:50:43 2020'
 zram02 1 TINFO: timeout per run is 0h 5m 0s
 zram02 1 TINFO: create '1' zram device(s)
 zram02 1 TPASS: test succeeded
 zram02 1 TCONF: The device attribute max_comp_streams was introduced in kernel 3.15 and deprecated in 4.7
 zram02 2 TINFO: set disk size to zram device(s)
 sh: echo: I/O error
 zram02 2 TFAIL: can't set '107374182400' to /sys/block/zram0/disksize
 sh: echo: I/O error
 zram02 2 TINFO: AppArmor enabled, this may affect test results
 zram02 2 TINFO: it can be disabled with TST_DISABLE_APPARMOR=1 (requires super/root)
 zram02 2 TINFO: loaded AppArmor profiles: none

 Summary:
 passed 1
 failed 1
 skipped 1
 warnings 0
 tag=zram02 stime=1588981843 dur=0 exit=exited stat=1 core=no cu=2 cs=1

Po-Hsu Lin (cypressyew)
summary: - zram02 in kernel_misc from ubuntu_ltp failed on B-5.3 i386
+ zram02 in kernel_misc from ubuntu_ltp failed on B / B-5.3 i386
tags: added: 4.15 5.3 bionic i386 sru-20200427 ubuntu-ltp
tags: added: sru-20210125
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: zram02 in kernel_misc from ubuntu_ltp failed on B / B-5.3 i386

Found on i386 node pepe 4.15.0-137.141

tags: added: sru-20210222
tags: added: hwe-5.4
tags: added: sru-20210315
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

found on B/hwe 5.4.0-71.79~18.04.1

tags: added: 5.4 hwe
tags: added: 5.8 focal hwe-5.8 sru-20210412
summary: - zram02 in kernel_misc from ubuntu_ltp failed on B / B-5.3 i386
+ zram02 in kernel_misc from ubuntu_ltp failed on B / B-5.4 i386
tags: added: sru-20210816
Revision history for this message
Krzysztof Kozlowski (krzk) wrote (last edit ):

Found on pepe.i386 instances (only):
bionic/linux-hwe-5.4/5.4.0-81.91~18.04.1
bionic/linux-hwe-5.4/5.4.0-84.94~18.04.1

tags: added: hinted
Changed in ubuntu-kernel-tests:
assignee: nobody → Krzysztof Kozlowski (krzk)
Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

I haven't been able to reproduce this on a trusty amd64 3.13.0-187 system, while it failed on a trusty i386 3.13.0-188 system. It also failed on a bionic i386 4.15.0-162 VM.

When running it with dash, it does give I/O Error, but while doing strace with it, it returns ENOMEM and bash does give out the appropriate error message.

echo: write error: Cannot allocate memory

So this looks more like a limitation of zram on 32 bit systems.

Cascardo.

Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

Yeah, so vmalloc space is limited to 122880 KiB on the systems I have here, and I don't think it can be any larger on i386. And zram would try to allocate around ~200MiB for this specific request, so there is not even virtual address space enough for this on i386.

Cascardo.

Po-Hsu Lin (cypressyew)
tags: added: ubuntu-ltp-kernel-misc
removed: ubuntu-ltp
Changed in ubuntu-kernel-tests:
assignee: Krzysztof Kozlowski (krzk) → nobody
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.