When creating a swap device using zram I get Buffer I/O errors

Bug #1218278 reported by Konrad Hofer
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I use zram as swap device, but get Buffer I/O errors when creating a swap device.

1. modprobe zram
2. echo 2097152000 > /sys/block/zram0/disksize
3. mkswap /dev/zram0

tail /varlog/syslog

Aug 29 12:07:01 ubz10035sev kernel: [ 1044.003716] Buffer I/O error on device zram0, logical block 511999
Aug 29 12:07:01 ubz10035sev kernel: [ 1044.005792] Buffer I/O error on device zram0, logical block 511999
Aug 29 12:07:01 ubz10035sev kernel: [ 1044.007918] Buffer I/O error on device zram0, logical block 511999
Aug 29 12:07:01 ubz10035sev kernel: [ 1044.009930] Buffer I/O error on device zram0, logical block 511999
Aug 29 12:07:01 ubz10035sev kernel: [ 1044.011965] Buffer I/O error on device zram0, logical block 511999
Aug 29 12:07:01 ubz10035sev kernel: [ 1044.012917] Buffer I/O error on device zram0, logical block 511999
Aug 29 12:07:01 ubz10035sev kernel: [ 1044.013793] Buffer I/O error on device zram0, logical block 511999
Aug 29 12:07:01 ubz10035sev kernel: [ 1044.014680] Buffer I/O error on device zram0, logical block 511999
Aug 29 12:07:01 ubz10035sev kernel: [ 1044.015542] Buffer I/O error on device zram0, logical block 511999
Aug 29 12:07:01 ubz10035sev kernel: [ 1044.016395] Buffer I/O error on device zram0, logical block 511999

cat /proc/version_signature
Ubuntu 3.8.0-29.42-generic 3.8.13.
---
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/controlC0', '/dev/snd/hwC0D0', '/dev/snd/hwC0D3', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/pcmC0D2c', '/dev/snd/pcmC0D3p', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
CurrentDmesg: Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: Permission denied
DistroRelease: Ubuntu 13.04
MachineType: Hewlett-Packard HP Compaq 8100 Elite CMT PC
MarkForUpload: True
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: ro initrd=initrd.img nbdroot=10.7.28.49:9577 nbdswap=10.7.28.49:9573 clientid=lin BOOT_IMAGE=vmlinuz
ProcVersionSignature: Ubuntu 3.8.0-29.42-generic 3.8.13.5
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RfKill:

Tags: raring
Uname: Linux 3.8.0-29-generic x86_64
UpgradeStatus: Upgraded to raring on 2013-07-09 (51 days ago)
UserGroups: admin sudo
WifiSyslog:

dmi.bios.date: 12/16/2009
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: 786H1 v01.02
dmi.board.asset.tag: 11618
dmi.board.name: 304Bh
dmi.board.vendor: Hewlett-Packard
dmi.chassis.asset.tag: 11618
dmi.chassis.type: 6
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-Packard:bvr786H1v01.02:bd12/16/2009:svnHewlett-Packard:pnHPCompaq8100EliteCMTPC:pvr:rvnHewlett-Packard:rn304Bh:rvr:cvnHewlett-Packard:ct6:cvr:
dmi.product.name: HP Compaq 8100 Elite CMT PC
dmi.sys.vendor: Hewlett-Packard

Revision history for this message
Konrad Hofer (konrad.hofer) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1218278

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
Revision history for this message
Konrad Hofer (konrad.hofer) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected raring
description: updated
Revision history for this message
Konrad Hofer (konrad.hofer) wrote : HookError_cloud_archive.txt

apport information

Revision history for this message
Konrad Hofer (konrad.hofer) wrote : HookError_source_linux.txt

apport information

Revision history for this message
Konrad Hofer (konrad.hofer) wrote : IwConfig.txt

apport information

Revision history for this message
Konrad Hofer (konrad.hofer) wrote : Lspci.txt

apport information

Revision history for this message
Konrad Hofer (konrad.hofer) wrote : Lsusb.txt

apport information

Revision history for this message
Konrad Hofer (konrad.hofer) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Konrad Hofer (konrad.hofer) wrote : ProcEnviron.txt

apport information

Revision history for this message
Konrad Hofer (konrad.hofer) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Konrad Hofer (konrad.hofer) wrote : ProcModules.txt

apport information

Revision history for this message
Konrad Hofer (konrad.hofer) wrote : UdevDb.txt

apport information

Revision history for this message
Konrad Hofer (konrad.hofer) wrote : UdevLog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.11 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11-rc7-saucy/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
description: updated
tags: added: kernel-fixed-upstream
Revision history for this message
danmb (danmbox) wrote :

might be related to bug #1217189 which raises the possibility of hard machine LOCK-UPS due to zram errors. I've had several such lock-ups on precise after the most recent linux-lts-raring updates (and none before that) that seemed to go away after disabling zram.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Tim Gardner (timg-tpi) wrote :

There will be a linux-lts-saucy shortly after 13.10 is released.

Revision history for this message
danmb (danmbox) wrote :

@timg-tpi: Have you seen bug #1217189, involving machine lock-ups due to this error, probably triggered after heavy swapping?

Do you have any suggestions as to why regular raring users seem unaffected by this bug (or at least they're not complaining)?

Revision history for this message
danmb (danmbox) wrote :

This might explain the reasons

https://lkml.org/lkml/2013/8/13/22

(assuming this was a change backported to 3.8 and 3.5 by Ubuntu)

Revision history for this message
danmb (danmbox) wrote :

I'm marking this as a duplicate of bug #1217189. I don't find @timg-tpi's comment very reassuring. This is a critical bug for the LTS release.

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.