Save your disk, write files directly into RAM with /dev/shm
https://hiandrewquinn.github.io/til-site/posts/save-your-disk-write-files-directly-into-ram-with-dev-shm/
#ycombinator #todays_lucky_10000 #cost_optimization #everything_is_a_file #law_of_diminishing_returns #linux #simple_suboptimal_solutions #things_you_should_never_do #wikis #ramdisks
https://hiandrewquinn.github.io/til-site/posts/save-your-disk-write-files-directly-into-ram-with-dev-shm/
#ycombinator #todays_lucky_10000 #cost_optimization #everything_is_a_file #law_of_diminishing_returns #linux #simple_suboptimal_solutions #things_you_should_never_do #wikis #ramdisks
Save your disk, write files directly into RAM with /dev/shm
Given my interest in extending the life of my SD cards and hard drives as much as possible, I’m surprised I haven’t come across /dev/shm before. In a word it’s a world-accessible RAM scratchpad, which seems baked right into POSIX, so that virtually every ~Unix~ EDIT: Linux system already has it mounted as a tmpfs by default: 1 2 ❯ mount | grep '/dev/shm' tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64) Today’s lucky 10,000, indeed.
Hacker News