TaKeN
Posts: 4
Joined: Thu Dec 22, 2016 10:02 am

Upgrading from Raspbian 9 to 11 - increase disk write time

Tue Sep 19, 2023 5:42 am

Hello Guys,
I use Raspbian for many years and i just upgrade my both RPI from Raspbian 9 to 10 and later to 11.
After that i saw in Zabbix there is a issue with write time to SD card.
First i was thinking this is a problem with SD card so i clone to another card - same issue.
So i recover from backup Raspbian 9 and all issue vanish.... everything working good....
Anyone else saw problem like this?
Hardware:
Model : Raspberry Pi 3 Model B Plus Rev 1.3
Model : Raspberry Pi 3 Model B Rev 1.2
before.jpg
Before upgrade
before.jpg (150.74 KiB) Viewed 185 times
after.jpg
After upgrade
after.jpg (174.15 KiB) Viewed 185 times

Like You see minimum waiting write request time was 3ms now it's 20ms and average was 8ms and now it's 65ms.....

Best Regards
TaKeN

redvli
Posts: 1280
Joined: Thu Sep 03, 2020 8:09 am

Re: Upgrading from Raspbian 9 to 11 - increase disk write time

Tue Sep 19, 2023 6:14 am

I haven't noticed it, I also don't monitor that parameter, also didn't see the name Zabbix before. I would focus on the kernel version. Raspbian can mean 2 kernel versions per main release like RPiOS 11 can be kernel 5.15.x or 6.1.x

Then there is the numerous firmware upgrades (basically all files on the boot partition). If you know (or get to know) how to create a bootable RPi3 SD-card manually, you can mix the 3 objects firmware, kernel, rootfs to maybe figure out where the difference comes from. There is no guarantee it works, but I have successfully done that it the past.

Also ask yourself if this is bad. Maybe it is good. I don't know your config details. it might be just something in Ext4, I assume you use that.

TaKeN
Posts: 4
Joined: Thu Dec 22, 2016 10:02 am

Re: Upgrading from Raspbian 9 to 11 - increase disk write time

Tue Sep 19, 2023 7:08 am

Looks like i find where is problem.
In Debian 11 there is journald so if You got rsyslogd and journald both write logs, rsyslogd write logs to /var/log/auth etc and journald write to /var/log/journald/
I disable journald:
nano /etc/systemd/journald.conf
set Storage=none
systemctl restart systemd-journald
rm -rf /var/log/journal/*

And looks like working, maybe times is not same like on Debian 9 but working better.
Attachments
disablejournald.jpg
Journal disabled
disablejournald.jpg (143.99 KiB) Viewed 137 times

redvli
Posts: 1280
Joined: Thu Sep 03, 2020 8:09 am

Re: Upgrading from Raspbian 9 to 11 - increase disk write time

Tue Sep 19, 2023 10:39 am

sudo apt purge rsyslog was my way of handling this. Same strategy on other Linux distros.

Return to “Troubleshooting”