In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how linux expands the memory to accelerate the page loading speed of FireFox and Chrome. The article is very detailed and has a certain reference value. Interested friends must read it!
When you visit a web page in a browser, except for downloading all the page content from the server for the first time, most of the files are read from the local cache when you visit the same website. So based on this principle, we can put the browser's cache directory in the tmpfs file system so that it can read cached data directly from memory and speed up page loading.
Tmpfs is a file system based on virtual memory (VM). Tmpfs is a virtual disk (ramdisk). Tmpfs can use both memory and swap partition (swap). Because tmpfs uses virtual memory, tmpfs files reside in memory, so the speed of reading and writing is very fast.
The tmpfs file system is enabled by default under Ubuntu. The mount point is / dev/shm, and the capacity is generally half of the actual memory. However, tmpfs is different from ramdisk in that it can use swap partitions as well as RAM.
It is easy to put the cache of FireFox and Chrome in / dev/shm under Linux, as long as you modify the corresponding parameters, here is the method.
-FireFox
Enter about:config in the address bar and enter, then right-click to create a new String, name is browser.cache.disk.parent_directory, value is / dev/shm/firefox
Browser.cache.disk.parent_directory=/dev/shm/firefox
-Chrome
Chrome is even simpler, just add a parameter to the startup shortcut-disk-cache-dir= "/ dev/shm/chrome/".
/ opt/google/chrome/google-chrome-- disk-cache-dir= "/ dev/shm/chrome/"
Well, when you restart FireFox or Chrome, there will be two more directories, firefox and chrome, under / dev/shm. This is their cache directory, and its capacity will increase as you visit more websites.
These are all the contents of the article "how linux expands memory to accelerate the page loading speed of FireFox and Chrome". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.