Unfortunately for some reason my pi keeps crashing regularly.
I’m running on the latest version, a stable power supply and switched on option 2 in the logs, but as it crashes after 10 mins I take it that the logs won’t get written to disk.
I had HTOP running to see if anything funny is going on, but there’s not a lot info as to why it’s crashing.
What else could I “switch on” to determine why it’s crashing.
Please check: dmesg
Especially look for red lines indicating kernel errors and stuff about I/O errors or low voltage warnings. Do you have any USB device attached?
To have persistent logs I would choose logging mode “none” (so disable RAMlog) and then do: mkdir /var/log/journal
With this system logs are written persistent to disk. After crash you can access them via journalctl and inspect the logs around the time of the crash.
Some of the warnings in your second paste are expected when running the RPi (it’s an RPi, right?) with 16M GPU memory as some video features of the chip are disabled then.
So indeed the under voltage is the problem. Do you use WiFi? Otherwise you could disable the internal WiFi device (via dietpi-config > Network Options: Adapters) to save power there.
But as long as you have no USB device attached, with a stable PSU there should be no voltage issues. Did you enable some overclocking profile? Software can just use the features of the board e.g. load the CPU but even with full load this should not lead to voltage issues.
What PSU do you use and which RPi version is it? RPi3 or RPi3+? Assure that the PSU delivers sufficient current (2.5A at least for RPi3(+)). Also the quality is important. E.g. some mobile phone charger will not work in some cases since it is not made to provide 100% reliable 5V but might have some ups and downs. Good quality PSUs made to power SBCs are made to deliver the voltage with less fluctuation.