📜 ⬆️ ⬇️

Wean Chrome to eat hard drives

I like Chrome, but it bothered me that it squeaks with the hard drive as if they do not break. I decided to wean him to do it. It turned out, now sharing the recipe.

What for? First, the hard drive - not iron, in the sense - iron, of course, but knows how to break and the more they hammer it - the faster it breaks (as I understood from my own experience when I lost all the data); secondly, Chrome stores a lot of all sorts of junk in databases that barely use the computer’s memory, as a result, after a month of use even the address set becomes torture - the hard drive squeaks, the letters are typed in seconds. All these problems are removed.

Warning-warning! Immediately warn you - a topic for advanced users, a lot of pitfalls! But if you are worried about your data and the hard drive - welcome to our ranks.

So, the idea is simple. Make RAMDisk (virtual "disk" in the computer's memory) and make Chrome keep there his affairs. It sounds simple, there are enough pitfalls and some inconvenience will be, but then the hard drive will be released alive and Chrome will fly. So do not rush to do, read.
')
1. Downloading the RAM Disk: the link was taken here (+ explanations) and it led to the download (in my opinion, even this is the same thing).

Download, run, there, in general, everything is obvious. I created a 128MB RamDisk (less recommend) called R :.

In theory, it will automatically be recreated at boot time. (I'm creating)

2. Download Iron Portable (this is a modified Chrome that doesn’t send Google too much about you - do you want to be paranoid? Try adding 127.0.0.1 google.com to hosts - Google Chrome will not even be able to work - it needs Google’s dad. At least So it was a couple of months ago.) Link to download . If out of date - look for the Portable version on this page .

Why choose Portable? We want Chrome to store all databases on the RAMDisk (that is, in memory, which is 100 times faster than the hard drive and not so sensitive to overwriting - in other words: it won't break).
But Google Chrome stores all your data in the mystical Application Data / .... directory, and not where you installed it. In theory, you can run Chrome with a parameter that should change this directory to another, but in practice this key is purely meditative (to calm), but does not really change anything. So, it was not possible to force the unmodified version of Chrome to store the databases on RAMDisk. Portable version on the other hand stores data exactly where it is installed. The rest is almost no different.

3. Unpack the Portable version in R: \, rename the folder name to Iron. Validation: the file R: \ Iron \ IronPortable.exe must exist

4. Copy this directory somewhere to your hard drive (backup, because RAMDrive will clear after reboot).

5. Create a shortcut for the Portable version, specify:
Object: R: \ Iron \ IronPortable.exe
Working folder: R: \ Iron \

The working folder must be specified! Otherwise, you will have a profile created where you created a shortcut (on the desktop, for example).

6. Disable phishing protection nafig - these are giant files that slow down the work. If paranoia really hurts - put OpenDNSs as DNS servers - and it will work faster and will dislike phishers. If you register and disable advertising for your ip on non-existent sites, it works fine and does not ask for food.

7. (optional, problems!) By running this label we get almost silent Chrome. There remains one more problem - Chrome has a habit of creating etilqs files (sqlite backwards) in the TMP folder (c: \ Windows \ Temp) - this also creates a load. Go to change the Temp folder on the same RamDrive. ("Windows Key + Break" - "System Properties" - "Advanced" - "Environment Variables" - in the bottom window we search for TMP, put R: \ tmp

Problems


1. The problem of clause 7 is that many programs, for example, WinRAR or installers will unpack temporary files in R: \ TMP and if this file has more than free space (which is about 70MB with Iron Portable installed) then the installation will not reach the end , and the archive will not be unpacked.

2. Another problem arises with the fact that sometimes Chrome will suddenly take off from you - this means that the place on R: \ has ended. We close Chrome, go to r: \ Iron \ Profile \ Default \ Cache \, delete everything there without regrets.

3. Another nuance [*]: YouTube and other videos Chrome has a desire to cache, so large videos that do not fit on the RAMDisk will be shown only in chunks. It may be true, this is solved if you do not do clause 7 (did not check).

[*] Dear Habravchane, do not write, please, more " nuance " - I'm not literate, of course, but it really hurts my eyes and often occurs . (Sometimes you want the tag [spoiler] [/ spoiler])

4. Lastly, if you click “Set Iron as default browser” desktop shortcuts with links like http: // ... will create profiles where this shortcut is opened, so you need to look in the registry (regedit.exe) http: / handler / (I found several of them, in my opinion HKEY_CURRENT_USER \ Software \ Classes \ http \ shell \ open \ command) - replace there Iron.exe with “c: \ ram_iron.bat” - “% 1” and create c: \ ram_iron .bat with this content:

r:
cd \iron\
IronPortable.exe %1 %2 %3 %4


5. Some .html files, for example, from folders with spaces in the name will not open (my bug, but I don’t know how to fix it using the .bat file without using any programming language). The point is that in each argument spaces must be replaced by% 20, and how to do it in .bat - who knows.

Is it worth it?


For me, yes. To me, the health of the hard drive and the speed of browsing are very important.

Personally, I use Chrome (more precisely, Iron) only in this way, otherwise the ideology of SQLite (“we will never lose data, so we write every byte to the hard drive, we don’t need gigabytes of RAM, we want reliability”) no matter how correct ( in theory), but hard on the hard drive beats. There are inconveniences, but they are miserable (to save the state before rebooting, to restore when turned on - of course - not for the novice user), but periodically the cache has to be cleaned (but this can be avoided by taking up more RAMDisk memory).


Yoi Haji
view from Habra

Source: https://habr.com/ru/post/61616/


All Articles