Yeah, so the biggest drains on the system were GIMP which is a memory hog. But quite reasonably so IMO.
And chrome. Which seems to open a new process for every tab. Since http is stateless and a non-persistent connection. I wonder what the idea behind opening a new process for every tab is?
Never did any chrome programming or extension programming so I can't say I know much about the internals. But it seems excessive.
After the system crashing again, I figured I'd do a little spring cleaning and try to bump my swap to the suggested 4GB to see if that made any difference.
So I'd moved all my git projects to /mnt/microsd which freed up some storage space ...
Code:
dara@dara-HP-Stream-Laptop-11-y0XX:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 949628 0 949628 0% /dev
tmpfs 194464 1400 193064 1% /run
/dev/mmcblk0p2 29407228 25762812 2127568 93% /
tmpfs 972300 77780 894520 8% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 972300 0 972300 0% /sys/fs/cgroup
/dev/mmcblk0p1 523248 8596 514652 2% /boot/efi
tmpfs 194460 16 194444 1% /run/user/1000
Then it was a case of releasing as much storage capacity as possible ... so i ran another ..
Code:
du -h | sort -hr | more
1.6G /home/dara/.config/google-chrome
853M /home/dara/.config/google-chrome/Profile 1
646M /home/dara/.config/google-chrome/Default
It turns out that google-chrome in .config is 1.6 freaking GB.
Code:
dara@dara-HP-Stream-Laptop-11-y0XX:~$ du -h ~/.config/google-chrome | sort -hr | more
1.6G /home/dara/.config/google-chrome
853M /home/dara/.config/google-chrome/Profile 1
646M /home/dara/.config/google-chrome/Default
499M /home/dara/.config/google-chrome/Profile 1/Service Worker
492M /home/dara/.config/google-chrome/Profile 1/Service Worker/CacheStorage
231M /home/dara/.config/google-chrome/Profile 1/Service Worker/CacheStorage/8
cbb992fe0cd9ef960e69a214646bd270516a23e
212M /home/dara/.config/google-chrome/Profile 1/Service Worker/CacheStorage/4
c237d5e33167c88df3e45d9c8b59fdd4d727472
189M /home/dara/.config/google-chrome/Default/Service Worker
182M /home/dara/.config/google-chrome/Default/Service Worker/CacheStorage
157M /home/dara/.config/google-chrome/Default/Application Cache/Cache
157M /home/dara/.config/google-chrome/Default/Application Cache
147M /home/dara/.config/google-chrome/Default/Service Worker/CacheStorage/8cb
b992fe0cd9ef960e69a214646bd270516a23e
What should i do about this chrome directory? Apprently .cache is 586MB. So I enter
Code:
chrome://settings/clearBrowserData
in the chrome URL bar. Which clears only 184MB according to chrome...
Code:
dara@dara-HP-Stream-Laptop-11-y0XX:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 949628 0 949628 0% /dev
tmpfs 194464 1400 193064 1% /run
/dev/mmcblk0p2 29407228 25347436 2542944 91% /
tmpfs 972300 74360 897940 8% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 972300 0 972300 0% /sys/fs/cgroup
/dev/mmcblk0p1 523248 8596 514652 2% /boot/efi
tmpfs 194460 16 194444 1% /run/user/1000
But my calculator seems to suggest that it freed 415 MB from my system. Plus I can't find the cache file any more.
I'd like to keep my google-chrome cache file from building up... does anyone know whether i can delete the cache file on system boot from the crontab perhaps?
Code:
crontab -e
@reboot rm -rf ~/.config/google-chrome/cache
Is this safe? Or should i use the above method to delete via chrome?
Lastly, this is how i readjusted my /swapfile to reset it from 1.6GB to 4GB which is the recommended max for a 2GB RAM system ...
Code:
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
only do the last command if cat /etc/fstab doesn't have a swap file listed/mounted already.
It's a pity that chrome lite only comes in android and tablet flavour.
Also, 2 more questions ...
1) Should i move the /swapfile to /mnt/microsd or will there be lagging/connection issues do you reckon? According to the ubuntu docs. It's a good idea to move it off your main harddrive.
2) Is it a good idea to move my work files to /mnt/microsd? I'd prefer not to lose them, but i have most of them backed up...
3) How do i slim down the .config/google-chrome/Profile 1 854MB profile file? I could do with the storage.
My harddrive is now at 100% capacity since I expanded my /swapfile. Bummer. Time for a new computer I think.
Bookmarks