Location of .c2 files Raspberry Pi >> tmpfs in RAM

27 views
Skip to first unread message

PE3ES / F4VTQ

unread,
Mar 2, 2022, 10:50:22 AM3/2/22
to SparkSDR
As all these files are in .config they are as I imagine on the SD card. As these files are written per digimod decoder per band in a 15 second to 2 minute period this adds a lot of tear on the SD card.
Having them in a windows PC in a harddisk tmp area is not too bad but for a Raspberry Pi it would be preferable to have them on a tmpfs dir in ram.
Could that be added to the Raspberry Pi preferred way of working Alan?

ahop...@googlemail.com

unread,
Mar 2, 2022, 12:32:31 PM3/2/22
to SparkSDR
Hi,
that is a good point, I'll think about adding a configurable location for this. You might be able to do it with a symlink for the wsprd,ft8 etc directories pointed to a ramdisk.
I have on my todo list to make the internal level 0 decoders not even create the temp files.  
73 Alan M0NNB

Thomas Beiderwieden

unread,
Mar 2, 2022, 1:01:12 PM3/2/22
to SparkSDR
as this is a common problem with SD-Cards on a raspberry, I have configured mine to delay writing everything. 

/etc/sysctl.d/07-dirty.conf   should contain:

vm.dirty_ratio = 40
vm.dirty_background_ratio = 30
vm.dirty_expire_centisecs = 360000 

In my understanding, that reduces writing to once per hour. Disadvantage, you will loose data, if you have a power outage and no UPS or a kernel halt. But on most of my systems which run 24/7, that is no big issue.

Reply all
Reply to author
Forward
0 new messages