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

What does the Swapfile.sys in Windows mean?

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

What does Swapfile.sys in Windows refer to? in view of this question, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

I don't know if you have found that in the Windows 10 take 8 system, in addition to the pagefile.sys and hiberfil.sys files, there will be an extra swapfile.sys virtual memory file in the system root directory. Why does the Windows 10swap 8 system use both SWAP interchange files and Page page files?

In fact, swapfile.sys files are currently only used to exchange individual type data of Universal App (that is, Metro App), rather than being used directly as system exchange files. Swapfile.sys files, like pagefile.sys and hiberfil.sys, are written to the system root, which you can see if you unhide protected operating system files in the folder options and open the option to show hidden files, folders, and drives.

◆ Hiberfil.sys hibernation files are used to write memory contents to disk when Windows hibernates.

◆ Pagefile.sys page files are used to temporarily exchange data when the operating system is out of memory

◆ swapfile.sys files are mainly used to exchange data related to Universal Apps.

You may ask, why did Microsoft create a separate swapfile.sys virtual page file? Because applications like Universal App work differently from traditional applications, Microsoft needs a new model to build a memory management framework for such applications.

When Windows detects the system load pressure, it automatically writes the exchange data of inactive Universal App applications to the swapfile.sys virtual page file on disk, frees up memory and switches the application to a paused state. When the application is switched to the active state by the user, the exchange data is read into the working set from the disk.

Because there are great differences between Universal App applications and traditional applications in usage patterns, memory space requests, memory growth steps, and read-write strategies, Microsoft finally chose to separate swapfile.sys exchange files from pagefile.sys page files for convenience (lazy shortcuts).

How to delete a Swapfile.sys file

In general, we do not recommend that users delete Swapfile.sys files, which take up a very small disk space and will not exceed 256MB in general. But if you are using mobile settings with very limited storage resources, deleting Swapfile.sys files can free up some disk space. (people don't care much about the release of hundreds of megabytes of space, right?)

Swapfile.sys and pagefile.sys files are managed in the same way and cannot be deleted directly. Because of the unified management approach, to disable swapfile.sys, you have to disable virtual memory, so the pagefile.sys page file disappears.

Disable the configuration of virtual memory: press Windows + R-execute systempropertiesadvanced command-click Settings in performance-Select Advanced tab-Virtual memory to make changes. I would like to give you a few suggestions:

Do not disable virtual memory for Windows whose ◆ memory is less than 4G.

In general, ◆ can set the virtual memory size to 1.5 times the actual physical memory.

Increasing virtual memory in ◆ Windows will take effect immediately. Reducing and disabling virtual memory requires a system restart.

The answer to the question about what Swapfile.sys in Windows refers to is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

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