azlux/log2ram
View on GitHub ↗ ★ 3,142 Shell
ramlog like for systemd (Put log into a ram folder)
16 mentions on Hacker News by 13 people: 1 story, 15 comments · first 2019-01-29 · latest 2024-12-20
20082026
-
…to every second. I played around with mount options like commit=n It kind of helped to use log2ram: https://github.com/azlux/log2ram but it sure didn't eliminate the problem. I think with a little effort from the proxmox guys, they could…
comment by m463 · 2024-12-20 · in How Proxmox VE shreds your SSDs – with details -
…of the time it's the verbose logging of application servers that is the culprit of sdcard failures. https://github.com/azlux/log2ram
comment by stevenhuang · 2023-09-28 · in Raspberry Pi 5 -
…to logs-in-RAM we've been running the same SDs for years. DIY via {fs,journalctl} config , or using https://github.com/azlux/log2ram Also, mount the SD with the `noatime` flag of course: https://wiki.archlinux.org/title/Ext4#Disabling_acces…
comment by ronjouch · 2023-08-23 · in I only lost 10 minutes of data, thanks to ZFS -
…its log files and swap partition If this is the problem, the solutions are no swap and log2ram https://github.com/azlux/log2ram I also noticed that Armbian logs to a ramdisk. I didn't investigate the implementation and if its contents…
comment by pmontra · 2022-12-18 · in EsPiFF: An ESP32 in the Raspberry Pi form factor -
…in ram and then writes them to disk on a slower cadence that doesn’t work your SD card that much. https://github.com/azlux/log2ram
comment by jakemauer · 2022-11-01 · in I finally found a use case for my Raspberry Pi Model B+ -
…under 24/7 use. Routing most logs to memory rather than disk vastly reduces the wear on the SD: https://github.com/azlux/log2ram
comment by lukifer · 2022-02-28 · in The Life of Pi: Ten Years of Raspberry Pi -
…drastically reduces the write-thrashing on the SD card, and greatly prolongs the life of a 24/7 Pi: https://github.com/azlux/log2ram Depending on the use case, RAM disks are also pretty easy to set up for any temporary/volatile storage…
comment by lukifer · 2021-07-31 · in Raspberry Pi OS now has SATA support built-in -
…reducing the writes of logging at least. It saves logging to ram and then writes it once a day. [1] https://github.com/azlux/log2ram
comment by mikkelam · 2021-03-23 · in The Raspberry Pi can boot off NVMe SSDs now -
…the money where my mouth is: 1. A little how-to for storing your logs in RAM, a la Armbian style: - https://github.com/azlux/log2ram (It's still updated) 2. Move your SWAP to ZRAM, again Armbian style: -…
comment by bayindirh · 2021-02-28 · in Ask HN: Always on low power home server -
…is not the best storage option for the OS and would like to move mine over to an nvme drive. [0] https://github.com/azlux/log2ram
comment by fl0under · 2021-02-16 · in Pine64 Unveils Quartz64 SBC -
…log2ram, which greatly reduces the write cycles on the boot SD, especially for Pi's that run 24/7: https://github.com/azlux/log2ram
comment by lukifer · 2020-11-23 · in Upgrade Raspberry Pi 4 with a NVMe boot drive -
I've been using log2ram [1] which helps my sd cards survive longer than otherwise. [1] https://github.com/azlux/log2ram
comment by mikkelam · 2020-11-07 · in Raspberry Pi 400 – First Impressions -
Most writes are the logs, I use log2ram [1], it reduces SD writes substantially. [1] https://github.com/azlux/log2ram
comment by jakobdabo · 2020-09-14 · in Raspberry Pi as a local server for self hosting applications -
…writing to it then eventually it sets itself read-only. You can mitigate this somewhat with https://github.com/azlux/log2ram With some finagling you can get them to boot an OS from an external disk then your SD card can just hold a…
comment by seanhandley · 2019-07-17 · in The Raspberry Pi 4 needs a fan -
Check out: https://github.com/azlux/log2ram Explanations: The script creates a /var/log mount point in RAM. So any writing of the log to the /var/log folder will not actually be written to disk (in this case to the sd card for a raspberry…
comment by jftuga · 2019-01-29 · in New Raspberry Pi Compute Module 3+