TheBigBrother

joined 7 months ago
[–] TheBigBrother -2 points 4 months ago

what it's log2ram

Log2Ram is a utility designed to extend the lifespan of storage devices, particularly SD cards in Raspberry Pi systems, by reducing write operations[1][4]. Here's an overview:

How it works

Log2Ram redirects log files from being written directly to storage (/var/log) to being written to RAM instead[1]. It creates a mount point in RAM for /var/log, so all logs are written to temporary memory (tmpfs) rather than the physical disk[2].

Benefits

  1. Extended storage life: By reducing write operations to SD cards or SSDs, Log2Ram helps prolong their lifespan[1][4].

  2. Improved performance: Writing to RAM is faster than writing to disk, enhancing system responsiveness[4].

  3. Transparency: Applications continue to write logs to /var/log as usual, unaware that it's now in RAM[1].

Key features

  • Configurable RAM allocation for logs (default 40M)[2]
  • Daily synchronization of RAM logs to disk via a cron job[1]
  • Synchronization on system shutdown to preserve logs[1]
  • Optional use of rsync for synchronization[2]
  • Compatibility with zram for space-efficient log storage[3]

While Log2Ram offers significant benefits, it's important to note that logs may be lost in case of unexpected power loss or system crashes before synchronization occurs[3].

Citations: [1] How log2ram works. | The World's Linux Journal https://linuxfun.org/en/2021/01/01/what-log2ram-does-en/ [2] Log2Ram https://nimno.net/dev/linux/log2ram/ [3] Extend The Lifespan of Your Raspberry Pi's SD Card with log2ram https://ikarus.sg/extend-sd-card-lifespan-with-log2ram/ [4] Optimizing Performance with Raspberry Pi Log2Ram https://fleetstack.io/blog/raspberry-pi-log2ram-guide [5] Using Log2RAM on the Raspberry Pi - Pi My Life Up https://pimylifeup.com/raspberry-pi-log2ram/ [6] How To Write Log Files In RAM Using Log2ram In Linux - OSTechNix https://ostechnix.com/how-to-write-log-files-in-ram-using-log2ram-in-linux/ [7] Extend your Pi's SD Card Life with Log2Ram! - YouTube https://www.youtube.com/watch?v=MrRGa7kAhQo [8] How to extend the lifespan of memory cards on the Raspberry Pi with Log2Ram https://www.geekbitzone.com/posts/2020/log2ram/log2ram-raspberry-pi/

[–] TheBigBrother -2 points 4 months ago (4 children)

Look for log2ram on a LLM.

[–] TheBigBrother 0 points 4 months ago

No but, I have a dream machine..

[–] TheBigBrother 1 points 4 months ago* (last edited 4 months ago) (2 children)

Not everything what shine is gold..

[–] TheBigBrother 14 points 4 months ago

Who told you android isn't profitable? Maybe not directly but indirectly it's a fucking money machine..

[–] TheBigBrother 4 points 4 months ago* (last edited 4 months ago) (1 children)

Thx

Edit: I will stay with cron I believe it's easier to configure.

sudo apt install cron sudo crontab -e @daily sudo apt update && sudo apt upgrade -y

Easy peasy..

[–] TheBigBrother 6 points 4 months ago (3 children)

I'm using cron to run daily "sudo apt update && sudo apt upgrade -y" LMAO, what's the way to use unattended-upgrades?

[–] TheBigBrother 42 points 4 months ago (5 children)
[–] TheBigBrother 2 points 4 months ago* (last edited 4 months ago) (1 children)

What's the point if 5 years later she wouldn't be able to freeze their eggs anyway?

view more: ‹ prev next ›