question

solarlion avatar image
solarlion asked

What is the "RamDiskMode"?

There is a MQTT Endpoint in settings called "RamDiskMode". But I cant find a single Ressource about it, what is it, how does it work? Anyone has an idea?

"settings/Settings/Vrmlogger/RamDiskMode"

cerbo gxMQTT
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

2 Answers
kevgermany avatar image
kevgermany answered ·

@Solarlion

Moving to modifications

But this link may help.

https://linuxhint.com/create-ramdisk-linux/

Guessing it's a boolean indicator.

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

solarlion avatar image solarlion commented ·
Why modification? Its build in from Victron and in each cerboGX by default.

I know what a RamDisk is, but not what Victron is doing with it.

What is stored inside the Ramdisk - and why? Maybe logging is directed tehre to reduce writing to eMMC for duration? Why is it then disabled by default?

0 Likes 0 ·
kevgermany avatar image kevgermany ♦♦ solarlion commented ·
Because MQTT content
0 Likes 0 ·
Kevin Windrem avatar image
Kevin Windrem answered ·

Looked at the code and it appears this only affects VRM logging when an error writing to the internal storage or an inserted SD/USB card occurs.

The VRM logging stores records in local storage only until they can be sent to the server. Using a RAM disk for this temporary storage means stored records would be lost on a GX device reboot. So it is only a last ditch effort to maintain records.

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

solarlion avatar image solarlion commented ·

Thank you. Any chance to activate this by intend to save eMMC writes or is it only active after the file system is broken?

Currently CerboGX write about 9 GB/Month even with VRM disabled. That calculates to exactly 20 Years of lifetime of the eMMC - no spare time left...

0 Likes 0 ·
Show more comments