Understanding what is writing to flash?

I have 3 TP-Link Re450v2 APs running identical openWRT versions (21.02.6, latest supported). These have extremely limited flash, 8MB. They have identical packages installed, however I'm hoping to add another package (zabbix-agent for monitoring).

They have wildly different free space available, and I can't figure out why. I reflashed all 3, they're running identical firmware with identical package lists.

How can I determine (and limit) what is writing to flash?

Sure it's RE540 and not RE450 ?

You are correct, mistype, corrected.

Device pages lag often.

https://firmware-selector.openwrt.org/?version=23.05.4&target=ath79%2Fgeneric&id=tplink_re450-v2

Probably you dont want to install packages in overlay but directly integrate them in sysupgrade image.

I had no idea you could do that...since this is an AP and there's separate DNS/DHCP I can remove dnsmasq from right there, right? This isn't a sysupgrade though, right, I'd have to restore my config?

Likely you need to type config back. Read ewlwase notes.

I'm finding it won't build, and in the links for the actual bin I see support for the v3 and not the v2 (which is consistent with the device page). I think I'm still stuck.

Expand red error - it is too big by default.

I think it's too big for the flash on this chip; I'm considering replacing the AP's anyway:

3829852 bytes (3.8 MB, 3.7 MiB) copied, 0.0239033 s, 160 MB/s
file-system partition too big (more than 3691659 bytes): Success
stat: cannot statx '/builder/build_dir/target-mips_24kc_musl/linux-ath79_generic/tmp/openwrt-23.05.4-ccd27a756bd8-ath79-generic-tplink_re450-v2-squashfs-sysupgrade.bin': No such file or directory
bash: line 1: [: 6160384: unary operator expected
bash: line 1: 8: Bad file descriptor
Failed to open firmware file
sha256sum: /builder/build_dir/target-mips_24kc_musl/linux-ath79_generic/tmp/openwrt-23.05.4-ccd27a756bd8-ath79-generic-tplink_re450-v2-squashfs-sysupgrade.bin: No such file or directory
cp: cannot stat '/builder/build_dir/target-mips_24kc_musl/linux-ath79_generic/tmp/openwrt-23.05.4-ccd27a756bd8-ath79-generic-tplink_re450-v2-squashfs-sysupgrade.bin': No such file or directory
7480+1 records in
7480+1 records out
3829852 bytes (3.8 MB, 3.7 MiB) copied, 0.0193542 s, 198 MB/s
file-system partition too big (more than 3670016 bytes): Success
cp: cannot stat '/builder/build_dir/target-mips_24kc_musl/linux-ath79_generic/tmp/openwrt-23.05.4-ccd27a756bd8-ath79-generic-tplink_re450-v2-squashfs-factory.bin': No such file or directory