druck <ne…@druck.org.uk> wrote:
> On 01/12/2026 12:45, The Natural Philosopher wrote:
> > On 01/12/2026 11:27, Chris Green wrote:
> >> my software comprises one python script. Yes, I know Python
> >> takes space but not **that** much and since it's just the one script it
> >> will just be sitting static in memory (or swap) and not moving about.
> >
> > What kills SD is writing to them especially when nearly full.
> >
> > Its not your scripts, its things like eystemd and other logs that insist
> > on splatting superfluous data into log files.
> I keep forgetting how bad the out of the box configuration of Raspberry
> Pi OS has become. By default journald (part of systemd) will spam
> everything to binary files on the card.
>
> I re-enable rsyslog to keep manageable text logs, and set journald to
> only log to memory.
>
> Edit /etc/systemd/journald.conf so you only have these lines uncommented.
>
> Storage=volatile
> RuntimeMaxUse=32M
> RuntimeMaxFileSize=8M
> RuntimeMaxFiles=4
> ForwardToConsole=no
> ForwardToWall=no
>
I do this on **all** my systems, not just on Pis, using tools I know
(e.g. grep etc.) is much simpler than having to learn journalctl's
options. It also reduces the space used because journalctl's defaults
are ridiculous except for large servers.
--
Chris Green
·