[Operation and maintenance experience] How to put user data into ramdisk

Table of contents

What is User Data for?

The benefits of putting User Data in ramdisk

First method shortcut

Second method link


What is User Data for?

Chrome's "User Data" folder is a directory for storing user-related data, which is used to save the user's personal configuration and browser data. It contains the following important files and folders:

  1. Default folder : This is the default configuration folder, which contains the user's configuration, extensions, bookmarks, history, and more.

  2. Extensions Folder : Stores data about installed extensions.

  3. Bookmarks file : Save the user's bookmark data.

  4. History file : Record the user's browsing history.

  5. Cookies file : Saves cookie data for websites.

  6. Cache Folder : Store browser cache files to speed up web page loading.

  7. Preferences file : Contains user preferences, such as default search engine, home page, etc.

  8. Local State file : Save some local state information, such as the last opened tab, window size, etc.

Through these files and folders, Chrome can provide a personalized browsing experience, save user settings and historical data, and manage installed extensions and bookmarks, among other functions.

The benefits of putting User Data in ramdisk

Putting Chrome's "User Data" folder in a RAMDisk (memory disk) has some benefits:

  1. Improve performance : RAMDisk uses part of the system memory as a disk drive. Compared with hard disk or solid state disk, RAMDisk has faster read and write speed. By putting the "User Data" folder into the RAMDisk, Chrome can read and write user data faster, improving the browser's overall performance.

  2. Reduced Disk Access : Putting the "User Data" folder on a RAMDisk reduces the number of physical disk accesses. This works especially well with traditional hard drives, which have slower random read and write speeds. Improves Chrome load times and improves responsiveness by reducing access to the physical disk.

  3. Extend the life of the hard disk : Putting the "User Data" folder into the RAMDisk can reduce the write operations to the physical disk, thereby extending the life of the hard disk. Because RAMDisk is based on memory instead of disk for read and write operations, it can reduce the wear and tear on the hard disk when saving or updating user data.

  4. Protects privacy and security : A RAMDisk is a temporary storage device whose data is erased when the computer is shut down or restarted. Therefore, putting the "User Data" folder into the RAMDisk can increase the confidentiality and security of the data. Users' personal information and browsing history are not left on the physical disk, reducing potential security risks.

First method shortcut

Among them, the Z disk is a virtual memory disk, commonly known as ramdisk, because it is a virtual hard disk created in memory, so the speed is faster than SSD, and no junk files will be generated on the hard disk.

You can add the following code to the chrome shortcut, for example:

D:\360ChromeX\Chrome\Application\360ChromeX.exe --user-data-dir="Z:\User Data"

But this method has a problem, that is, when you start chrome with an application, chrome will still create a user data in the default path, losing the original intention of setting it to ramdisk.

This method is suitable for multiple users. You can create a separate user data for each user to isolate users.

Second method link

If you want to set the path permanently and all users share a user data, then the following method should be more appropriate.

mklink /d "d:\360ChromeX\Chrome\User Data" "Z:\User Data"

In this way, the user data is permanently placed on the ramdisk. Whether it is from the application or directly opening chrome, the default path will be accessed, but the real files are all in the ramdisk. After actual measurement, the displayed web pages are in milliseconds, which is faster than SSD Even faster.

However, after following the above settings, remember to back up User Data on the hard disk to avoid losing it after shutdown. Of course, if your ramdisk is saved in advance, it will not be lost after restarting. As shown below:

Guess you like

Origin blog.csdn.net/hehuii/article/details/131340701