On 03/12/2026 10:55, Chris Green wrote:
> 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.
>
I think this is one of the best things, apart from noatime on the SSDS that one can do.
IF you have a persistent problem easy enough to rte-enable disk logs
A pi that is doing embedded stuff shouldnt need to write anything apart from its config, to the disk. If it needs more a ramdisk mostly suffices
--
Religion is regarded by the common people as true, by the wise as foolish, and by the rulers as useful.
(Seneca the Younger, 65 AD)