Skip to content

Michael-Sebero/Tmpfs-Overlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How Tmpfs Overlay Works

Temporary directories (/tmp, /var/tmp, /var/log, /var/cache, /home/$USER/.cache/) are mounted as tmpfs to leverage RAM for high-speed file storage. Each mount has a predefined limit (/tmp = 5G, /var/tmp = 1G, /var/log = 512M, /var/cache = 2G, /home/$USER/.cache = 2G). Essential directories /var/cache/pacman, /home/$USER/.cache/paru, /home/$USER/.cache/nvidia, /home/$USER/.cache/mesa_shader_cache, /home/$USER/.cache/mesa_shader_cache_db are excluded and bind-mounted on local storage.

Requirements

. mimalloc (optional)

How to Install

. Place tmpfs-overlay in /bin

. Make the program executable

sudo chmod 755 /bin/tmpfs-overlay

. Add this section to rc.local

# TMPFS Overlay
if [ -x /bin/tmpfs-overlay ]; then
    ( sleep 0.1; setsid nohup /bin/tmpfs-overlay >/dev/null 2>&1 ) &
fi

. Restart system

About

This program overlays various temporary directories in tmpfs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages