|How do I adjust the size and location of the Chrome cache?||AlphaDog||1/29/09 3:54 PM|
So far, I have been unable to locate a configuration option that will let me put the cache files on a drive I use for that purpose.
|Re: How do I adjust the size and location of the Chrome cache?||Hanafubuku||4/15/09 9:00 PM|
Simple answer: Chrome won't let you configure cache size nor will it allow you to change the default cache directory.
I exhausted a search of all menus in Chrome, and the only answer I can give to this question is that Chrome doesn't let you edit cache path or size. I am guessing there is some long work around via inf file, but if there is, I haven't found it. Took a look at the install locations (%userprofile%\Local Settings\Application Data\Google\Chrome, and %programfiles%\browserrecord) and found no inf file that had that setting. Also did a quick browse through the registry for references to Chrome and no luck either.
Hoping Google doesn't expect us to look at and edit the source code to make such a change.
The option to set the cache size at the very least is available on all the other browsers I have used (ie, firefox/mozilla/netscape, and opera )... seems odd that Chrome would lack such a feature, instead of improving on it.
|Re: How do I adjust the size and location of the Chrome cache?||ogamagoga||6/20/09 12:36 AM|
just run chrome with appended --user-data-dir="type the full path of your own cache folder here" at the end of program path,
|Re: How do I adjust the size and location of the Chrome cache?||AlphaDog||6/20/09 3:05 AM|
Good sluething to uncover that option which can be used with a shortcut.
But where would "--user-data-dir= " be appended if Chrome is set as the default browser? I don't see the Advanced button for the file type association with, say, htm. And, in any event, it should not be necessary to go to such work-arounds for a basic setting.
|Re: How do I adjust the size and location of the Chrome cache?||danimal4k||6/22/09 11:46 PM|
Although the --user-data-dir trick will allow you to change the cache location, it sets the location used for all Chrome state on disk - user settings, bookmarks, cookies, etc. You probably don't want to set it to a location where you might lose the files (ie removable drive), which would not be the case if it was only for the cache files.
|Re: How do I adjust the size and location of the Chrome cache?||aroth_||10/17/09 6:10 PM|
Works, though it's a bit silly that there's no configuration available in the UI for this. All other major browsers provide UI options for configuring the cache, and if that's not sufficient justification for Google to have something similar, then there's at least one other good reason to add it: SSD's. Most current generation SSD's can only sustain a limited number of write-cycles before they wear out, and if Chrome's cache settings aren't configurable then the browser might end up needlessly wearing out the user's drive, which is very not cool. It's not uncommon for chrome to rack up 2 GB or more "I/O Write Bytes" daily, as reported by the Windows task manager. I don't know how much of that is caching vs. paging vs. other misc I/O, but 2+ GB/day is not an insignificant amount of wear for an SSD, and if the browser is going to be writing that much data to disk, there needs to be a better way to configure where it goes.
|Re: How do I adjust the size and location of the Chrome cache?||DramaKing||10/23/09 2:16 AM|
You can make a Symbolic Link (symlink) and point the %userprofile%\google folder to another folder like ramdisk:\google. The easiest way is to use a program called junction. Get it here: http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
Remember to move the contents of the %userprofile%\google to the new folder.
|Re: How do I adjust the size and location of the Chrome cache?||vhradice||12/8/09 12:18 PM|
When is Google going to fix this problem?
|Re: How do I adjust the size and location of the Chrome cache?||maxadamo||12/20/09 9:31 AM|
1. I wonder why I should change my cache dir. In Linux and Mac OS I can make a symlink but I really don't need such thing.
2. Cache size missing can be a problem: you can exceed you filesystem limits (files per directories), you can fill you disk, your filesystem can get corrupted. But I think controlling cache continuously can cause performance issue. 99% of cases you'll use the browser at cache limit usage, and it means, all times, every file you open, your browser must insert a new file to cache and then delete another one. Hope you understand what I mean. Furthermore, at Google someone understood that, at certains extent, and in certain situations, filesystem performs better that sqlite stuff, and doesn't need maintenance. sqlite in chromium is used for some other stuff, but (luckily) not for caching files. sqlite files sometime need to be optimized, compressed and I don't think they scale very well.
|Re: How do I adjust the size and location of the Chrome cache?||danimal4k||12/23/09 9:59 PM|
No offense to those at Google (I used to work there), but sometimes I know the configuration for my computer better than them. For example, the hard disk on my laptop has very poor performance, and the firmware pauses the disk for a few seconds whenever the laptop is moved (to prevent damage to the disk)... but I usually have plenty of available RAM and decent bandwidth. I'd love to disable the disk cache for my browser and only use a RAM cache.
The other excellent argument for configurable browser caches are SSD drives. On today's SSD drives, each block has a limited number of writes during the lifetime of the disk. I haven't heard of any SSD drives being ruined by a browser, but in theory in could happen after a couple of years.
I recently tried symlinking (with cygwin) Chrome's cache dir to a RAM disk, but it removed the link and created a new directory for cache files. I'm hesitant to symlink the higher level directory because it contains files I wouldn't want to lose if I lost the contents of the RAM disk (unlike the cache folder). I may look into the junction tool next - thanks for the pointer.
|Re: How do I adjust the size and location of the Chrome cache?||MamiyaOtaru||1/5/10 2:28 AM|
Lack of control is also annoying when using Enhanced Write Filter (EWF). EWF prevents a volume from being written to by caching all changes made to the filesystem in RAM. Great for running off a medium with slow or limited writes (SDHC card for example). If you create a new 50MB file it isn't actually written (though Windows thinks it was); instead you have 50MB less free RAM. On reboot, all changes are gone.
The problem with this as it relates to Chrome is this: if you create a file (which uses some of your RAM), deleting that file doesn't free the RAM. That is to say, every file that goes in your Chrome cache depletes RAM with no way to get it back aside from rebooting. If you could configure the cache to only be in RAM, your RAM would be used, but would be freed again when the file was no longer cached.
Having the cache on disk with no possibility to change it means browsing with Chrome one an EWF system limits your uptime between reboots, as your "on disk" cache eats RAM and never gives it back. Having the possibility of a regular RAM cache that can be given back to the OS when Chrome is done would be much nicer.
|Re: How do I adjust the size and location of the Chrome cache?||jonniji||1/13/10 7:18 PM|
I feel it's VERY important to be able to control where the USER DATA is stored for a browser. I store "all' USER files on a 2nd partition (D: drive). Then I 'Ghost' or 'Image Copy' the C: drive. Since all the User Data is stored on the D: drive, if I ever have to restore a Ghost image to repair a critical error on the C: drive, the user can start working immediately with all their data still intact. I've been doing this for IE & Firefox data for years!!! I also do it for the Desktop, My Documents, Outlook/Email, Music, Pictures, etc. It's a nearly bullet proof method for 'system recovery'. Much better than using 'Restore Points' or anything else out there as far as I can tell.
I really love Google Chrome! I hope they build some type of 'Profile Manager' into their up-coming releases soon.
|Re: How do I adjust the size and location of the Chrome cache?||ManiacalV||1/28/10 5:32 AM|
Even simpler: when developing and looking at small, incremental changes, I don't want to have to manually go two clicks into the menu, kill the cache, kill windows and bring everything back up, nor do I want to have to append garbage text to the end of all of my links, RSS includes and image SRCs. . As much as I love Chrome for browsing, having no way to turn off the caching makes it useless when developing. I don't want to hear whining about 'best practices' either: I want to have some control over the amount of data my browser is caching, or if it is caching at all. Without that control, I find the browser significantly diminished as a useful tool.
|Re: How do I adjust the size and location of the Chrome cache?||degarb||2/1/10 9:27 PM|
I like chrome but it is getting removed from both my windows and linux systems, because the cache is not controllable. Especially on the linux notebook, where space is precious.
|Re: How do I adjust the size and location of the Chrome cache?||grimreaper666||2/2/10 9:45 PM|
If users are not able to adjust the size of the cache I will not be using GC. I do notice a difference when using my other browsers where i can change the cache size. i may still use GC, but it won't be my first browser of choice.
|Re: How do I adjust the size and location of the Chrome cache?||Bapabooiee||2/3/10 12:51 AM|
|Re: How do I adjust the size and location of the Chrome cache?||degarb||2/4/10 7:16 AM|
Since linux runs on machines a tenth the size of windows xp-on-up, I would assume some other people are reviving old discarded destops and laptops and installing Ubuntu. Since you might be talking 6 gigs of harddrive space on a Ubuntu machine that runs like windows 7 with near same functionality, a relevant thread needs to be made with linux.
Now, I am too new to Ubuntu (windows user since 1988, hard core because of ease/compatibility philosophy of windows. Now, the Ubuntu philosophy), I do not know if linux supports command line switches.
|Re: How do I adjust the size and location of the Chrome cache?||Pokémon||6/13/10 9:46 PM|
Perhaps I am just incompetent, but I tried placing --disk-cache-size=52428800 at the end of the Google Chrome shortcut target command line to limit the cache size to 50 megabytes, but it does not seem to work as the cache folder continues to grow past 50 megabytes and is now at 463 megabytes and climbing at the moment. I am running Google Chrome version 5.0.375.70 (Official Build 48679) on Windows 7 Home Premium. Any help you can provide is greatly needed and appreciated!
|Re: How do I adjust the size and location of the Chrome cache?||KarlM||11/19/10 12:03 AM|
Glad to see Chrome has this feature. The next feature I would like to see is to be able to force Chrome to *always* access the cached file (unless hit refresh) instead of always checking for an updated copy. Sometimes I have to wait up to 5 sec for Chrome to access a page I just visited 3 minutes ago. It should be instant with Ram caching. Also I don't believe people can browse offline either. Why Google, why? I love Google and Chrome but if your goal is speed you should allow users to decide when to check for updated page data. Not to rub it in your face or anything (ok maybe to rub it in a little) IE and Firefox allow these changes yet Chrome does not. Please add this feature or let us know of a workaround!
|Re: How do I adjust the size and location of the Chrome cache?||jt3498734||11/24/10 8:28 AM|
We urgently need user friendly control over chrome's cache. Today mine was at 1.5 GB - this is just ridiculous. What were the devs thinking when they decided users would have no control of cache size? Not to mention wear on my SSD. Very surprising
|Re: How do I adjust the size and location of the Chrome cache?||vasa1||11/24/10 8:32 AM|
jt34, this is from 4 posts above your:
Does it not work for you? Agreed though that it's not upfront unlike most other browsers.
|Re: How do I adjust the size and location of the Chrome cache?||LouGrinzo||12/15/10 5:01 PM|
I just discovered this cache behavior, and like others here, I find it dumbfounding that there's no way to control size and placement via the UI.
One suggestion, which might help a few people, is to grab a copy of the free program Crap Cleaner and use it to clean up Chrome's extravagant cache after the fact.
|Re: How do I adjust the size and location of the Chrome cache?||Trigun||1/19/11 6:15 PM|
Google, fix this already; it is ridiculous that this issue has gone unnoticed for so long.
The cache size option is essentially worthless, because it does not effectively control size.
Either fix it, or allow an in-memory only cache, as opposed to disabling it completely.
chrome.exe --disk-cache-dir="Z:" --disk-cache-size=52428800
And yet the directory is hundreds of megabytes in size, even though I've specifically limited it to 50MB.
|Re: How do I adjust the size and location of the Chrome cache?||mipesom||2/3/11 8:22 AM|
@Trigun The value represents MB - so, you've set it to 52428800 MB. But we really need a way to control this via UI.
|Re: How do I adjust the size and location of the Chrome cache?||jpyper||2/10/11 1:53 PM|
On all of my Linux boxes, I have a separate partition for /var/cache to prevent file fragmentation in the main OS partition.
---[CACHE TRICK #1]---
In a terminal, do the following:
Make a directory for Chromium called /var/cache/chromium.
sudo mkdir /var/cache/chromium
Set the ownership of the directory to your user:
sudo chown USERNAME:USERNAME /var/cache/chromium
Change USERNAME to your system username. Once that's done, go back to my home directory:
Delete the existing Chromuim cache directory:
rm -R ~/.cache/chromium
Make a symbolic link from the normal location and point it at the /var/cache/chromium directory with this:
ln -s /var/cache/chromium ~/.cache/chromium.
---[CACHE TRICK #2]---
I have also tried a few other tricks as well. Some seem to like making the Chromium directory as a tmpfs. This works as well because it will be deleted when you reboot.
In a terminal, do this:
rm -R ~/.cache/chromium
As 'root' open the fstab:
sudo nano /etc/fstab
At the bottom of the file, make a new line and add the following:
cache-chromium /home/USERNAME/.cache/chromium tmpfs defaults,noatime,mode=1777
Change USERNAME to your system's username. Save the file and reboot your system.
I am open for any further ideas of Chromium cache management. I have not tried to combine both of these tips together yet. Almost seems pointless. One or the other should work well. I opt for CACHE TIP #1 myself. CACHE TIP #2 would probably work best for laptops, notebooks and netbooks with little space.
|Re: How do I adjust the size and location of the Chrome cache?||branis||2/11/11 3:32 AM|
For all of those who want to take video file bigger then 60 or so MB from cache, use opera. Simply as that.
In opera go to preferences, tab advanced and in there choose history.From disk cache dropdown menu choose size. And there you go. Type in address field about:cache to see cache. Damn chrome, and firefox.
|Re: How do I adjust the size and location of the Chrome cache?||morganmacarthur||6/28/11 7:37 AM|
branis that's a great point-- and i bet it's a faster way to a fix for chrome too. they just aren't interested in us begging, they're interested in market share. so leave, folks. use a browser from people that listen and improve. chrome will catch up when they have to, it'll be here.
|Re: How do I adjust the size and location of the Chrome cache?||sjackwu||9/11/11 7:26 AM|
I have a Macbook Air with SSD, and I want to use RAM disk to avoid the SSD wearing out too soon. I need to switch to Firefox because Chrome doesn't provide this particular feature on Mac OS.
|Re: How do I adjust the size and location of the Chrome cache?||Joe Momma||9/16/11 11:22 PM|
The thread above command line switches that supposedly work, but absolutely do NOT work. Not on any Windows OS, and not with any syntax changes. UTTERLY WORTHLESS fodder. GOOGLE has been asked literally thousands of times (search the forums for "cache", you'll see) to include an option for limiting cache, but they absolutely refuse to do anything about it for the last three years and many, many "updates" to the software. It's now time to ABANDON CHROME and use Safari.Or Firefox. Or Opera. Or even (gasp!) IE.
|Re: How do I adjust the size and location of the Chrome cache?||Fuzzy||9/17/11 8:27 AM|
Or switch to Chromium.
|Re: How do I adjust the size and location of the Chrome cache?||邵小妞||10/19/11 6:46 PM|
|Re: How do I adjust the size and location of the Chrome cache?||degarb||12/3/11 6:22 AM|
Hurry, Chrome finally broke my computer because of this stupid bug: cache out of control. Filled up C: , making Chrome and Mozilla unstartable. I was unable to find the cache to manually remove the directory and files!!!!
Is there a intelligent way to control cache via option setting in Chromium? Rather than some common 1988, broken open-source, solution--a sign of programming disinterest in the end user.
|Re: How do I adjust the size and location of the Chrome cache?||A-Style||5/7/12 12:07 PM|
This may be coming a bit late, but... there is a way to do it in Win7. Mine is Ultimate, but I think it might work in other versions, too.
1. Download and install VHD Attach (version 3.20 at time of this post) from http://www.jmedved.com/vhdattach/
2. Navigate to the Chrome cache folder in Windows Explorer (C:\Users\%USER%\AppData\Local\Google\Chrome\User Data\Default)
3. DELETE the "Cache" folder. Leave explorer window open, you'll need it later.
4. Launch VHD Attach.
5. Use the "New" button to create a new VHD disk. I would suggest sizing it to 60 MB, and make it *Fixed size* rather than "Dynamically expanding".
6. Click "Create", this will prompt you to save the VHD. Location for saving the VHD should be in the Chrome cache folder (The one you navigated to in Step 2). IMPORTANT: Name the VHD something other than "Cache"! I named it "real_cache".
7. Click "Format disk" button when asked, and complete the formatting process.
8. In Start menu, type "disk", then find "Create and format hard disk partitions".
9. In Disk Management window, find the volume that corresponds in size to the VHD that you created.
10. Right-click on that, select "Change Drive Letter and Paths".
11. In the window that pops up next, select and delete everything. Then click "Add".
12. Select the option that says, "Mount in the following empty NTFS folder".
13. Browse to the folder where the Cache folder is supposed to be. This means stop at the User Data\Default folder. You'll notice that there is no Cache folder (Of course, you deleted it in Step 3).
14. Click on "New Folder", and name it "Cache" (w/o quotation marks!)
15. Start clicking the OK buttons. You'll be back at Disk Management.
16. It's a good idea to label the VHD. My label is "Google Chrome Cache". The way to do it, right click the volume, select Properties.
17. We're not done! We want to make this persist across reboots, which is why we downloaded VHD Attach in Step 1. Go to the VHD Attach, click the tiny Options button (Second from right).
18. In the Options window, there is a section to "Auto-attach VHDs". Click "Add", find the real_cache vhd, and click Open, then OK.
19. That's it, you're done! Now clicking on the Cache folder's Properties will show you that it acts like a hard disk, and will not go over the 60 MB limit you specified in Step 5. Of course, if you'd like more cache size, those VHD's are easy to change and manage. And rebooting will not make you lose the hard work of following the steps.
Of course, it would be nice if Google had a decent option in Settings, but this is a good way to create OS-enforced cache limits.
|Re: How do I adjust the size and location of the Chrome cache?||A-Style||5/7/12 12:09 PM|
Oh, and BTW: Google Chrome needs to be CLOSED while you do this. Otherwise, the computer will not cooperate with you through the steps.
|Re: How do I adjust the size and location of the Chrome cache?||ForgetWindows||6/4/12 12:53 PM|
here's what i did in Ubuntu 10.10
we need to edit a file we don't own so from the command line...
then use the window that pops to navigate to etc/chromium-browser/default
you see CHROMIUM_FLAGS=""
add the flags you wish to use in between the "" (size is in bytes)
i used CHROMIUM_FLAGS="--disk-cache-dir=/dev/null --disk-cache-size=1"
this uses 1 byte of cache and is sent to null.
credit goes to Daniel \/
hope they enable this in preferences in the future rather than making us jump though hoops x-O
|Re: How do I adjust the size and location of the Chrome cache?||Pablo Lozano||10/24/12 9:06 AM|
I think the best workaround for now is ln -s (Linux) and mklink /D (Windows Vista or newer)