Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hopeseekr opened this issue Oct 1, 2020 · 1 comment
Labels

Comments

@hopeseekr
Copy link

hopeseekr commented Oct 1, 2020

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.

@abbbi abbbi added the Usecase label Oct 2, 2020
@grandchild
Copy link

The last line in the HowTo is missing a Default/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants