in linux

Increase tmpfs partition without restarting

Low on space in /run.

tmpfs filesystem keeps the entire filesystem (with all it’s files) in virtual memory. All data is stored in memory, which means the data is temporary and will be lost after a reboot. Typically a tmpfs filesystem mounted at /dev/shm as used for the implementation of POSIX shared memory.

The filesystem is automatically created when mounting a filesystem with the type tmpfs via a command such as the following:

$ sudo mount -t tmpfs -o size=10M tmpfs /mnt/mytmpfs
To increase the size, do the following:
  1. Modify /etc/fstab line to look something like this:
    tmpfs                /run                    tmpfs   defaults,size=10g       0 0
    tmpfs                /dev/shm                tmpfs   defaults,size=10g        0 0
  2. mount -o remount,size=10G /run
    mount -o remount /dev/shm
  3. df -h      (to see the changes)
  4. Note: Be careful not too increase it too much b/c the system will deadlock since the OOM (Out-Of-Memory) handler can not free up that space.