Control Google`s Chrome browser cache and configs.

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

Control Google`s Chrome browser cache and configs.

#1 Post by sunburnt »

These are CLI commands I found for Chrome:

Code: Select all

google-chrome --user-data-dir=( /PathTo/Configs.) 
google-chrome --disk-cache-dir=( /PathTo/Cache ) 
google-chrome --disk-cache-size=( Cache size in bytes.)
I shut Chrome off and it`s cache size had climbed to 355 MB !

Then I restarted it with: google-chrome --disk-cache-size=20971520

( 20 MB cache size.)

Started Chrome up again and now the cache size is 3 MB and slowly climbing.

gcmartin

#2 Post by gcmartin »

Thanks for the cli commands. I can see usefulness to these.

Questions, if you dont mind my asking
  1. Which distro are you using?
  2. How much RAM is on your PC?
  3. Was there any unusual Chrome behavior leading up to your discovery?
  4. When you emptied the cache while Chrome was running, did it instantly climb back or go thru a gradual increase as you navigated?
It would be helpful if you could let us know what you see when Chrome reaches 20MB.

This would help my understanding.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#3 Post by sunburnt »

Good Qs gcmartin; The exact kind I`d ask...

I`m using PolarPup Puppy528-005, but I`ve tried it on a few others.
It works for me on any of the Ubuntu based Puppies, 524, and 528-3
Which makes sense as I downloaded the Ubuntu .deb from Google.
# It`d be interesting to know if it works on Slacko, some .deb pkgs. do.

500 MB, 2 GB swap on old PC. New PC is 1 GB. 2 GB swap ( same HD ).

As I said, like Firefox first it ran fast, then it got slower and slower.
Firefox I shut caches off and it was fast like a new install again.
Same behavior for my Chrome AppPkg, it now run like new again.
And here I thought a cache was supposed to speed it up.!

Over 2 days of use the cache is now 27 MB. I`ll watch it and report it.
I was surprised that the size option was to be in bytes, it`s usually KB.

Post Reply