# zram: Decompression failed! err=-22

**URL:** <https://forums.balena.io/t/zram-decompression-failed-err-22/339883>\
**Category:** balenaFin\
**Created:** [July 20, 2021, 11:42am UTC](https://forums.balena.io/t/zram-decompression-failed-err-22/339883 "2021-07-20T11:42:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ST-Mono](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@ST-Mono](https://forums.balena.io/u/ST-Mono)\
**Post date:** [July 20, 2021, 11:42am UTC](https://forums.balena.io/t/zram-decompression-failed-err-22/339883/1 "2021-07-20T11:42:46Z")

</div>

I’ve had some issues recently with my devices failing with a “zram: Decompression failed!” error in the dmesg logs.

Sometimes the unit runs for a while before this issue occurs, sometimes it can happen quite quickly. I’m running 4 containers on a BalenaFin v1.1.1, including InfluxDB and Telegraf to collect system metrics to check on the health of my devices (ironically to monitor the memory usage of my device to catch/prevent OOM errors with InfluxDB). The other 2 containers are a GUI and a python based data uploader (small packets of data in the 10’s of kB), which don’t consume much memory (10-20MB each reported by Balena)

As far as I can tell, I’m not maxing out the memory, unless something big is happening between logs (every 15seconds).

Setup:

- BalenaFin v1.1.1
- 4 Containers + Supervisor (And occasional health-check container the supervisor runs)
- OS version: balenaOS 2.80.3+rev1
- Supervisor version: 12.7.0
- Typical memory used around 60-65% when issue occurs
- Peak memory used has been as high as 75%

Below is a screen grab of the system metrics with a data gap in the middle (where the white markers are) where the unit stopped working, and then restarted a little later (although in this instance it didn’t seem to start 2 of the containers properly for some reason & I had to restart them manually)

 ![image](https://global.discourse-cdn.com/balena/original/2X/b/b9601de46ff91c7a8e937f2e5601827ee5483f2c.png)

Anyone run into this before?

I can provide some more dmesg output if needed.

---

<div class="post-metadata">

**Author:** ![alexgg](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@alexgg](https://forums.balena.io/u/alexgg)\
**Post date:** [July 21, 2021, 2:47pm UTC](https://forums.balena.io/t/zram-decompression-failed-err-22/339883/3 "2021-07-21T14:47:58Z")

</div>

Hi, there is a reported kernel problem that feels similar fixed in v5.10 (see [kernel/git/torvalds/linux.git - Linux kernel source tree](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.14-rc2&id=e91d8d78237de8d7120c320b3645b7100848f24d)).  
We are working on supporting the 5.10 kernel for our RaspberryPi family of devices including the balenaFin. I have linked the github issue tracking that work ([Community user is requesting kernel 5.10 for RPI · Issue #601 · balena-os/balena-raspberrypi · GitHub](https://github.com/balena-os/balena-raspberrypi/issues/601)) here and we will update here once it’s ready.

---

<div class="post-metadata">

**Author:** ![ntzovanis](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ntzovanis/32/1150_2.png) [@ntzovanis](https://forums.balena.io/u/ntzovanis)\
**Post date:** [July 22, 2021, 9:12am UTC](https://forums.balena.io/t/zram-decompression-failed-err-22/339883/5 "2021-07-22T09:12:02Z")

</div>

Hey @ST-Mono ,

Just to let you know that we’ve just merged support for kernel 5.10.

Cheers!

---

<div class="post-metadata">

**Author:** ![ST-Mono](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@ST-Mono](https://forums.balena.io/u/ST-Mono)\
**Post date:** [July 22, 2021, 3:16pm UTC](https://forums.balena.io/t/zram-decompression-failed-err-22/339883/7 "2021-07-22T15:16:45Z")

</div>

Great! I look forward to testing it once its available on the BalenaCloud dashboard to upgrade to.

---

<div class="post-metadata">

**Author:** ![ST-Mono](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@ST-Mono](https://forums.balena.io/u/ST-Mono)\
**Post date:** [August 21, 2021, 7:27pm UTC](https://forums.balena.io/t/zram-decompression-failed-err-22/339883/9 "2021-08-21T19:27:42Z")

</div>

Any idea when there will be a release of BalenaOS with kernel 5.10 for the BalenaFin available via BalenaCloud?

---

<div class="post-metadata">

**Author:** ![klutchell](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/klutchell/32/861_2.png) [@klutchell](https://forums.balena.io/u/klutchell)\
**Post date:** [August 23, 2021, 6:46pm UTC](https://forums.balena.io/t/zram-decompression-failed-err-22/339883/10 "2021-08-23T18:46:48Z")

</div>

Hey @st-mono I’ve opened an issue with our devices team as we prioritize testing and releasing versions for each device type. You can track the progress here, and once released we will update this thread.

> <https://github.com/balena-os/balena-raspberrypi/issues/698>
>
> To address zram issues that have been patched in the latest 5.10 kernel.

---

<div class="post-metadata">

**Author:** ![klutchell](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/klutchell/32/861_2.png) [@klutchell](https://forums.balena.io/u/klutchell)\
**Post date:** [September 23, 2021, 6:00pm UTC](https://forums.balena.io/t/zram-decompression-failed-err-22/339883/12 "2021-09-23T18:00:57Z")

</div>

Hey @st-mono, just a heads up that v2.83.21+rev1 has been released to production for Balena Fin with kernel 5.10!

---

<div class="post-metadata">

**Author:** ![ST-Mono](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@ST-Mono](https://forums.balena.io/u/ST-Mono)\
**Post date:** [September 29, 2021, 5:01pm UTC](https://forums.balena.io/t/zram-decompression-failed-err-22/339883/14 "2021-09-29T17:01:11Z")

</div>

Hi @klutchell, thanks for the update. We are now testing this release and haven’t seen any zram errors so far (just a few other bugs of our own doing to sort out now 🙂 ).

---

<div class="post-metadata">

**Author:** ![klutchell](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/klutchell/32/861_2.png) [@klutchell](https://forums.balena.io/u/klutchell)\
**Post date:** [September 30, 2021, 12:46pm UTC](https://forums.balena.io/t/zram-decompression-failed-err-22/339883/15 "2021-09-30T12:46:13Z")

</div>

Great, glad we seem to have avoided further zram errors. Let us know if there is anything else!
