home.social

#neepery — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #neepery, aggregated by home.social.

  1. Today I discovered:

    I rarely think of "this software is written in this language with this toolkit" as a positive factor, only a neutral or negative factor.

    #TIL #tech #neepery

  2. CW: #linux neepery: tmpfs

    There are two kinds of ram disk that you can set up in most Linux systems: tmpfs and ramfs. ramfs is very simple: it's dynamically allocated as you store files and remove them, and it will not go to swap. If you run out of memory in ramfs, you have run out of memory in your system, and bad things will happen.

    tmpfs will go to swap if necessary, so it won't kill your system until it has allocated all the memory it can -- and, at mount time, you must specify a limit to the size that it can grow. You can be silly and specify a size larger than RAM + swap, but that's on you.

    So the primary downside of tmpfs is having to decide up front how much memory it can use (at max -- it is also dynamically allocated/deallocated). But!

    mount -o remount,limit=2G /mnt/mountpoint will reset that limit without wiping the current contents.

    You're welcome.
    #linux #tmpfs #neepery