Skip to header Skip to main navigation Skip to main content Skip to footer

Search form

Site branding

Home
What's up, home?

Main navigation

  • Home
  • Story mode
  • About
  • Features
  • Hardware list
  • Videos
  • GitHub (opens in new tab)
  • Daily AI generated stories (opens in new tab)

Part 55: How badly a limping memory card affects Raspberry Pi 4 performance?

Breadcrumbs

Breadcrumb

  • Home
  • Part 55: How badly a limping memory card affects Raspberry Pi 4 performance?

Main page content

By whatsuphome | 7:36 PM EET, Tue November 21, 2023

TL;DR

My Raspberry Pi 4 memory card started failing with I/O errors, pushing I/O wait times over 15 seconds and making even basic commands like uptime take eight seconds. Monitoring graphs clearly showed when the card began deteriorating, though Zabbix
dimes from my Raspberry

Now almost a year ago I blogged about my nine months of experience with running Zabbix on Raspberry Pi 4. I guess it's time to revisit that a bit, as the probably soon-to-fail memory card that came with Raspberry is causing all kinds of issues, even though everything important like Zabbix database is stored on external USB drive.

The filesystem layout

My Raspberry Pi is still booting from the memory card that came with it. However, I have moved much of the stuff to external USB drive I have connected to Raspberry:

  • Logs
  • MySQL for Raspberry
  • Grafana datafiles
  • Debian apt repository info
  • Home Assistant Docker iamge

Operating system itself is still contained on memory card, and, well, things sure look interesting now.

Can you spot the time of failure?

I'm pretty sure I don't have to tell you when the memory card started to throw I/O errors. Yes, I have also power-cycled my Raspberry Pi 4, hoping it would make things work again. That did not help. I did not yet try to reseat the memory card, I'll just order a new one.

But wow, over 15 SECONDS of I/O request waiting time.

How does this affect the every day life of my Raspberry?

So far, it's just that trying to use the thing interactively can be painful. With that, I mean ssh sessions. Even the simple commands like uptime can take several seconds to run.

❯ time uptime
19:50:30 up 6 days, 11:18,  6 users,  load average: 7.46, 6.30, 5.84
uptime  0.00s user 0.01s system 0% cpu 8.213 total

That took over eight seconds! Other than that, the server load remains constantly high, and occasionally my Zabbix complains that Docker -- so basically my Home Assistant instance -- is not responding, with soon enough it getting back to business. I know, I know, this is the perfect example of alert noise that was one of the speeches at Zabbix Summit 2023, but I also know that this disturbance in the force will be temporary.

Home Assistant response flapping

Other than that, everything keeps on working. I think it's a testament to stability of Linux and Zabbix that Zabbix still can gather data and keep its server & user interface working, albeit the latter working slower than usually.

whatsuphome
zabbix
raspberrypi4
hardware
failure
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
My Raspberry Pi 4 memory card started failing with I/O errors, pushing I/O wait times over 15 seconds and making even basic commands like uptime take eight seconds. Monitoring graphs clearly showed when the card began deteriorating, though Zabbix

Search

Who am I?

  • Janne Pikkarainen from Finland 🇫🇮
  • Began with computers in 1986 with C64
  • Doing IT for living since 1999
  • Principal Site Reliability Engineer at Forcepoint
  • A Zabbix Summit speaker every year since 2022
  • Walking, talking Zabbix commercial

Support my project

Buy me a coffee 

Footer menu

  • Contact

What's up, home? | Janne Pikkarainen | contact(at)whatsuphome.fi | 2022 - 2026

Developed and Designed by Janne Pikkarainen