abbbi / abbbi/nullfsvfs

[Usecase] Keep Chrome from needlessly chewing up GBs of worthless cache files

Open
#3 2 comments 4 reactions 0 assignees View on GitHub
Usecase
Dominant language
C
Stars
319
Forks
12
PR merge metrics
No merged PRs in 30d

Description

## HowTo

sudo modprobe nullfs
sudo mkdir -p /media/sinkhole
sudo mount -t nullfs none /media/sinkhole
rm -rvf ~/.cache/{chromium,google-chrome}/Default/Cache
ln -s /media/sinkhole ~/.cache/chromium/Default/Cache
ln -s /media/sinkhole ~/.cache/google-chrome/Cache

## Before

$ du -h ~/.cache/chromium/Default/Cache/;
747M /home/tsmith/.cache/chromium/Default/Cache/
458M /home/tsmith/.cache/google-chrome/Default/Cache/
1.2G total

## After

0 /home/tsmith/.cache/chromium/Default/Cache/
0 /home/tsmith/.cache/google-chrome/Default/Cache/
0 total

It also will save on SSD wear-and-tear, and you won't even notice a performance drag as everything's stored in memory anyway.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.