I have never worn out an sd card by logging, but have killed several due to borderline power supply.?
Surely each cell is good for tens of thousands of writes, and if it's a big card, mostly empty, the card's wear levelling means that it should take years of heavy use to wear out a cell.?
The raspberry pi's achilles heel is the micro USB power connector, plus its intolerance of low supply voltage.?
-------- Original message -------- From: Tom M0LTE <tom@...> Date: Sun, 21 May 2023, 12:31 To: [email protected] Subject: [bpq32] Reducing syslog output
Hi I'm looking to reduce BPQ's syslog output in order to preserve the life of my Pi's SD card. (I don't wish to move to temporary logging or a read-only filesystem.)
I see many lines like
May 21 11:34:28 gb7rdg-node LINBPQ[3390]: BPQ32 Heartbeat Buffers 999#015
and periodically:
May 21 08:29:29 gb7rdg-node LINBPQ[3390]: Resolving update.g8bpq.net#015
May 21 08:29:29 gb7rdg-node LINBPQ[3390]: Resolving chatupdate.g8bpq.net#015
May 21 08:39:32 gb7rdg-node LINBPQ[3390]: CMS #0 54.80.14.54 Official name : ec2-54-80-14-54.compute-1.amazonaws.com#015
May 21 08:39:32 gb7rdg-node LINBPQ[3390]: CMS #1 54.80.114.144 Official name : ec2-54-80-114-144.compute-1.amazonaws.com#015
May 21 08:54:42 gb7rdg-node LINBPQ[3390]: CMS #0 54.80.114.144 Official name : ec2-54-80-114-144.compute-1.amazonaws.com#015
May 21 08:54:42 gb7rdg-node LINBPQ[3390]: CMS #1 54.80.14.54 Official name : ec2-54-80-14-54.compute-1.amazonaws.com#015
Is there a way to disable that logging through config? Or am I best off commenting out lines in source code?
Filtering those out from today's syslog leaves me with this:
May 21 01:00:02 gb7rdg-node LINBPQ[3390]: |Enter HouseKeeping#015
May 21 07:11:15 gb7rdg-node LINBPQ[3390]: BPQ32 L2 Link to Neighbour GB7CIP-5? ?lost#015
May 21 09:34:35 gb7rdg-node LINBPQ[3390]: BPQ32 L2 Link to Neighbour GB7WOD? ? ?lost#015
May 21 10:01:05 gb7rdg-node LINBPQ[3390]: BPQ32 L2 Link to Neighbour GB7WOD? ? ?lost#015
May 21 11:03:41 gb7rdg-node LINBPQ[3390]: BPQ32 overlong KISS frame - len = 539 Port 1#015
May 21 11:03:53 gb7rdg-node LINBPQ[3390]: BPQ32 L2 Link to Neighbour GB7WOD? ? ?lost#015
May 21 11:09:12 gb7rdg-node LINBPQ[3390]: Saving WP Database to /opt/linbpq/WP.cfg#012#015
May 21 11:55:34 gb7rdg-node LINBPQ[3390]: BPQ32 L2 Link to Neighbour GB7WOD? ? ?lost#015
May 21 12:06:00 gb7rdg-node LINBPQ[3390]: BPQ32 L2 Link to Neighbour G5ODB? ? ? lost#015
May 21 12:07:24 gb7rdg-node LINBPQ[3390]: Delete Node for ALIAS:G5ODB Called with active L4 Session - State 5#015
most of which seems fairly useful - excepting "Enter HouseKeeping" and "Saving WP Database" which I see as internal.