Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of large memory consumption of Windows 7

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces Windows 7 memory-intensive example analysis, the content is very detailed, interested friends can refer to, hope to be helpful to you.

There are still many misunderstandings about the amount of memory occupied by the system, especially with regard to the current memory footprint of Windows 7. Most users upgrading from XP think that the system should have as much free memory as possible when the system is idle. However, in the era of 7 (or, more accurately, after Vista), this concept that should have changed is still lingering in everyone's memory. So I would like to introduce the Windows 7 memory management mechanism "Superfetch" to you to understand the reasons why Windows 7 takes up a lot of memory.

What's the difference in Windows 7 memory management?

"Superfetch" is not a new technology, and it has been adopted since the Vista era, but in view of the small number of people who have used Vista, and the various computer skills of the XP era are still deeply rooted in the hearts of the people, many people are wondering why Windows 7 takes up so much memory.

The Superfetch memory management mechanism will preload the application pages that may be used by the user using the available memory space; avoid page calls from the hard disk as much as possible; open the application as quickly as possible; will not be slow to respond to sudden use because the computer has been idle for a long time; and will actively transfer pages that were forced to transfer to virtual memory back into memory after quitting large applications. This seems a bit professional, so moving on, you will have a good understanding of these characteristics.

Why does it feel so slow to start the program for many times?

I believe everyone has had a similar experience. When I turn it on, I run a program, such as Word, every time, which may take 5 seconds to start. When I turn it off, it may only take two seconds. If I don't close it and open another Word file directly, it will be even faster. What is the cause of this?

When we turn it on, there is no Word employee in the working set, he is still at home (hard drive). So when I summoned him, he walked from home to the office (workset). This process is called hard paging, and of course it takes a long time. When we shut down Word, he was sent to another room of the building, but I immediately summoned him again, at this time, before the data in the other room had been cleared, he did not have to come from home, but directly imported from the data structure. Without shutting down the program Word, and when he doesn't have to make way for other programs, it still exists in the office (work set), and it will be faster to summon him. Such a process of "no need to recall data from the hard disk, but remount the pages in the data structure to the working set" is called soft paging. Everyone knows that the speed of memory is much faster than that of hard drives, so the use of "soft paging" is the reason why the second time to run the program becomes very fast.

The reason why Windows 7 takes up a lot of memory

Now we know that when you need a program page in memory, it makes the program start faster. The "Superfetch" in Windows 7 already has the function of learning. Since using Windows 7 for the first time, Superfetch has begun to record our usage habits, loading the pages of the programs we often use in advance after booting, so that when we open the program for * times, we can get the same speed as the second time. So these preloaded pages will make us take up more memory. To put it simply, let all program operations be done in memory and avoid using hard disk hard paging space, which is why Windows 7 feels like it takes up a lot of memory.

View preloaded memory

In the XP era, you may have had a similar experience: when you started using some programs, you left because of something. When I came back, I found that the response of the system was very slow and bad. This is because the memory management mode of XP is very inefficient.

When we left, the programs were not in use. At this time, some background programs of the system, such as disk consolidation and antivirus software, will "run at full speed", resulting in some program pages we use have to be squeezed into the virtual memory of the hard disk. However, when these daemons complete their tasks, the XP system does not import pages that were previously squeezed into virtual memory back into memory. So when the computer is used again, the system will scramble for temporary deployment, or even hard paging. Causes the program to respond extremely slowly. So it looks like XP has a lot of free memory, but in fact it doesn't make much difference.

Recommendations for using Windows 7

Anyone hopes to optimize the speed of their computer to achieve the ideal state, and memory is a very important factor affecting the speed of the computer, we understand the Windows 7 memory management mechanism, and then introduce what methods can speed up the system.

1. Use dormancy and sleep more often

As the SuperFetch needs to be preloaded after booting, it is recommended that you do not turn it off. Try to use "hibernation" or "sleep" so that the preloaded content of SuperFetch is retained. So as to improve speed and efficiency.

2. Use ReadyBoost

Many users who rise from XP are unable to give full play to the function of SuperFetch due to the lack of memory in the system. We can use the "ReadyBoost" function to help us solve this problem.

As long as the flash memory meets the requirements, it can accelerate our system. The ReadyBoost function uses the capacity of flash memory as the storage space for SuperFetch preloaded pages. However, because micro-soft uses a special algorithm, it will not affect the life of the flash memory. Also, the flash memory used for ReadyBoost is 1 to 2.5 times the size of physical memory. If the physical memory of the system is large enough, there is no need to use ReadyBoost. Right-click on the U drive letter to select properties, switch to the readyboost column, speed up to the standard U disk can turn on this function.

Not all flash drives can be used.

Through the understanding of SuperFetch, I hope that more friends will join the team that uses Windows 7. As a matter of fact, if it is the same as Windows, where can it go if it is different? It's temporary if you don't get used to it.

This is the end of the example analysis on the large memory footprint of Windows 7. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report