"Temporary paging file created" error: causes and solutions. Windows paging file, what it is, what it is eaten with and how to set it up A problem in the configuration of the paging file

The pagefile.sys file is the Windows virtual memory (read - the paging file).

Contrary to popular belief, the paging file is needed not only to compensate for the lack of RAM. Virtual memory is required for Windows features such as SuperFetch, ReadyBoost, and BSOD crash dumps (blue screens). For these functions to work properly, the page file must be located on the partition where Windows is installed (usually drive C) and the size of this file must be at least as large as the amount of physical random access memory (RAM).

Swap file setup

In Windows 7, 8, as in all previous versions of Windows, you can easily reduce or increase the size of the paging file. (further setting example will be given for Windows 8).

1. Log in to Windows as an administrator.

2. Open Control Panel -> System.

3. From the left menu, select Additional system settings.

4. Tab Additionally In chapter Performance press the button Options.

5. Open a tab Additionally and in the section Virtual Memory press the button Change.

6. Uncheck Automatically choose swap file size.

7. Select the drive on which you want to change the paging file size.

8. Select radio button Specify size, enter in the fields Original size (MB) and Maximum size (MB) new sizes in megabytes, click the button Ask, and then - OK.

To delete , select the radio button in step 8 No swap file and press Ask, then - OK. In this case, you will most likely need to restart your computer for the changes to take effect.

Problem with creating temporary swap file

Periodically, some users experience a known issue where, immediately after Windows starts, Performance Options opens and a message appears:

A temporary swap file was created because a problem with the swap file configuration was detected during startup. The total size of the swap file for all drives may be slightly larger than the size you specified.

Cause

Windows creates a temporary swap file when user changes to Control Panel > System > Advanced > Performance > Advanced > Virtual Memory incorrectly entered into the Windows registry. Specifically, the value of the multi-string parameter is not changed ExistingPageFiles In chapter:

If you restore the correct values ​​​​of all registry settings responsible for the pagefile.sys configuration, then from the next reboot the temporary paging file will no longer be created and you will again be able to configure virtual memory in the usual way - in Performance Options. If the problem with the temporary paging file recurs after a while, then restore the correct values ​​of the corresponding registry settings again.

Registry settings that configure the paging file

The following options are located under:

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management

  • Multi-string parameter ExistingPageFiles(REG_MULTI_SZ) contains information about the location of all paging files on the computer. If the page file is disabled on all partitions, then the ExistingPageFiles setting is automatically cleared after a reboot.
  • Multi-string parameter PagingFiles(REG_MULTI_SZ) contains information about the minimum and maximum sizes of each swap file.
  • DWORD value TempPageFile(REG_DWORD) with value 1 tells the system to create a temporary swap file. If not needed, the TempPageFile parameter is set to 0 or is completely absent in this registry key as unnecessary.

Greetings to all who looked at the light. Today we will talk about the system error "Created a temporary paging file ...". Typically, the message appears when you turn on the computer after loading the OS. The text of the original message is longer. It notifies the user that at startup a malfunction was found in the configuration of the same swapfile and that its size differs from the parameter set by the user. I propose to figure out what this swapfile is and what it is for. Judging by your requests, the trouble with the creation of a temporary paging file indicated above appears in different versions of the OS - it was also noticed in windows 10, 7 and even in XP. Let's find out its causes and talk about methods of elimination.

Definition

In order to find out why an error occurred and why the system created a temporary parameter instead of a constant one, let's figure out what the very culprit of the failure is - the mysterious one.

Based on the fact that the swapfile volume is configured in the OS performance section responsible for virtual memory, we can draw conclusions based on logic alone:

  1. A swap file is a space on one of the disks (memory) that has a certain capacity (volume).
  2. Windows needs this place in order to somehow increase its performance.

That's right! Swapfile - space on a given local disk, reserved by the OS in reserve. She uses it when there is not enough RAM for the correct operation of herself and the programs installed on the PC. This, by the way, happens infrequently, usually the size of the RAM is enough, the need to enable this option is very controversial.

Causes

Friends, there are several reasons that cause the above problem. Windows creates a temporary swap file not just out of boredom, but because there are problems in the configuration of the permanent parameter - the integrity of the swapfile is broken (damage can be caused by viruses), its location has been changed, user settings (increasing or decreasing the volume) are incorrectly registered in the registry. By and large, the causes of the trouble are not of particular importance, the methods of its elimination are important, of which I know only two.

Decision

If, when you turn on your PC, you see the alert “Created a temporary paging file ...”, then you are probably interested in how to remove it.

First way

When you click OK on the error message window, Windows will usually open Performance Options automatically. If this does not happen, then you can get there as follows:

  1. In the "Control Panel" we find "System" (right-click on "Computer" and select "Properties").
  2. Switch to the "Advanced" tab and open the parameters of the "Performance" section by clicking the appropriate button.
  3. We move to the "Advanced" attachment and open the "Virtual Memory" settings wizard by clicking the "Change" button.

We will try to solve the problem under consideration by entrusting the management of the swapfile volume to Windows itself (often this helps, the user cannot always set the settings correctly). In the "Virtual memory" window that opens, mark the item "Size at the choice of the system" with a dot. After confirming the action, be sure to restart the computer for the changes to take effect.

Second way

If the first method did not help, then the message will reappear after the reboot. It remains only to disable this option. To do this, we return to the virtual memory settings window along the path described above and mark the item “Without paging file” with a dot. We restart the computer again.

Friends, finally, let me remind you that all the above steps must be performed with administrator rights. Write in the comments which method helped you. See you soon.

16.05.2009 11:58

The pagefile.sys file is Windows virtual memory.

Contrary to popular belief, the paging file is needed not only to compensate for the lack of RAM. Virtual memory is required for Windows features such as , and the creation of crash dumps for BSOD errors (blue screens). For these functions to work properly, the swap file must be located on the partition where Windows is installed (usually drive C) and the size of this file must be at least as large as the amount of physical random access memory (RAM).

Swap file setup

In Windows 7, as in all previous versions of Windows, you can easily reduce or increase the size of the paging file.

1. Log in to Windows 7 as an administrator.

2. Open Control Panel -> System.

3. From the left menu, select Additional system settings.

4. Tab Additionally In chapter Performance press the button Options.

5. Open a tab Additionally and in the section Virtual Memory press the button Change.

6. Uncheck Automatically choose swap file size.

7. Select the drive on which you want to change the paging file size.

8. Select radio button Specify size, enter in the fields Original size (MB) and Maximum size (MB) new sizes in megabytes, click the button Ask, and then - OK.

To delete , select the radio button in step 8 No swap file and press Ask, then - OK. In this case, you will most likely need to restart your computer for the changes to take effect.

Problem with creating temporary swap file

Periodically, some users experience a known issue where, immediately after Windows starts, Performance Options opens and a message appears:

A temporary swap file was created because a problem with the swap file configuration was detected during startup. The total size of the swap file for all drives may be slightly larger than the size you specified.

Luckily, I managed to solve it.

Cause

Windows creates a temporary swap file when user changes to Control Panel > System > Advanced > Performance > Advanced > Virtual Memory incorrectly entered into the Windows registry. Specifically, the value of the multi-string parameter is not changed ExistingPageFiles In chapter:

If you restore the correct values ​​of all registry settings responsible for the pagefile.sys configuration, then from the next reboot, the temporary paging file will no longer be created and you will again be able to configure virtual memory in the usual way - in Performance Options. If the problem with the temporary paging file recurs after a while, then restore the correct values ​​of the corresponding registry settings again.

Registry settings that configure the paging file

The following options are located under:

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management

  • Multi-string parameter ExistingPageFiles(REG_MULTI_SZ) contains information about the location of all paging files on the computer. If the page file is disabled on all partitions, then the ExistingPageFiles setting is automatically cleared after a reboot.
  • Multi-string parameter PagingFiles(REG_MULTI_SZ) contains information about the minimum and maximum sizes of each swap file.
  • DWORD value TempPageFile(REG_DWORD) with value 1 tells the system to create a temporary swap file. If not needed, the TempPageFile parameter is set to 0 or is completely absent in this registry key as unnecessary.

Examples of correct values

If you created a swap file on partition C with a minimum (original) size of 1 gigabyte (1024 megabytes) and a maximum size of 2 gigabytes (2048 megabytes), then:

parameter ExistingPageFiles will get the value:
\??\C:\pagefile.sys

parameter PagingFiles will get the value:
c:\pagefile.sys 1024 2048

parameter TempPageFile

If you have two swap files: 100 megabytes on drive C and 200 megabytes on drive D, then:

parameter ExistingPageFiles will get the value:
\??\C:\pagefile.sys
\??\D:\pagefile.sys

parameter PagingFiles will get the value:
c:\pagefile.sys 100 100
d:\pagefile.sys 200 200

parameter TempPageFile will be set to 0 or will be absent.

If the swap file is completely disabled on all drives, then:

parameter PagingFiles will receive an empty value (two empty lines);

parameter ExistingPageFiles will be missing;

parameter TempPageFile will be missing.

Nutrition and performance


New Articles

Comments (22) on “How to adjust pagefile.sys page file size”

I did not understand what will happen if I add or remove it, it will work faster or what will happen if I increase the swap size ???

Try it and find out.

I've thought 7 times, and decided that it's easier to ask a knowledgeable person! Will you answer me what to give if I increase the swap file?

p.s. Very good site, a lot of what was written was needed, thanks.

Alexei, it’s different for everyone - for some, the system speeds up after increasing the paging file, for others it slows down, for others nothing changes at all (for me, for example, with a paging file, without a paging file - it works the same). It depends on many factors, that's why I say - try it and then you will see for yourself, this is the easiest option.

PS Thanks for the kind words.

Thanks for the explanation, I'll give it a try and see. It’s a pity you don’t have a forum, the site is excellent, nothing more.
I just love it, thanks again!

Thank you, Alexei once again for the kind words

Another question, if there is information that you do not have, but it is about "Win 7", can you somehow send it to you?

Hello, I've run into an interesting problem. It consists in the fact that the specified parameters are not written to the swap file. That is: having set the value I need, I save everything, click apply, reboot the system, but I get the “performance settings” window, opening the tab with the paging file, everything is default there. And no matter how much I try to change the swap file, so that I don’t set it, anyway, after a reboot, the values ​​\u200b\u200bare lost, sometimes an error pops up that it was not possible to save the couple there, I tried to specify the size of the FP manually, i.e. in the registry in the corresponding branch. But still, after a reboot, nothing, everything goes astray and the system again asks to change something. xs what to do, I've already tried it through the safe mode - it doesn't work. Help plz.

Good day, tell me on which drive you need to enable the paging file on C or D, or can it be enabled on both drives? otherwise I had it set to D by default.

I have the same problem as igor. When the system boots up, a window pops up with the paging file settings. The settings indicate that there is no paging file. Whatever you set, the settings are not saved and the next time you reboot everything is new.
It all started after I changed the HDD and transferred the system there using Partition Magic 9.0

Hello. Very interesting and useful site. Got a lot of new stuff from here.

Your site is great. Thanks for the useful information. I'm too meticulous about everything. And what I wanted to know about the paging file, about cleaning it - you can’t even ask like knowledgeable computer scientists. Yes, and it’s inconvenient to ask once again, because they say - that’s how you climb there, you don’t understand. Rather, they do not understand, but I dug out from the 128MB OP and improved the performance of the computer, which is very satisfied and I don’t think to run for a new one yet. Thank you.

And now I want to give advice: maybe someone will come in handy. The paging file must be set not on the system drive, and yet, set the same value for the initial and maximum size (I set 2048 MB (2GB)). And I'm happy with the computer. Thanks again for the site.

and what does it give I made the game start to slow down

Heard like that the paging file should be on a disk where there is no OS. Is it so?
Thanks in advance.

Not necessary.

I wanted to ask, if I'm not going to load the computer with strong toys and prefer to play fairly common games (weak), is it better to lower the swap file or, on the contrary, make it bigger?

I think it's possible without a swap file. By the way, the forum is intended for questions.

I strongly disagree that it is unnecessary to install a paging file in C, tk. With loaded system. On the busiest (in terms of work) disk, you need to put this file! First, C has a higher linear read speed. The second is that the file must be physically located in the working data heap itself. the slowest thing in the hard drive is still the mechanism for moving the heads. Imagine what happens to it (the mechanism) if you work with the same Photoshop installed on C (closer to the edge of the disk), and the paging file is physically located at a completely different end of the disk (closer to the center) and the heads are worn from one edge in another. Questionable performance increase. Then complaints - one of the screw is cracking, the second - generally fell ill. But avoiding fragmentation is the right thing to do. Although, it seems, there are programs that can defragment the paging file, but I usually do this: after installing Windows, I disable the paging file, then defragment the C drive, then set a fixed size of the paging file to C, and, finally, all other programs: office , photoshop, etc. As a result, the swap file is not fragmented and is located in the most strategically accessible and advantageous place - between the system and working data. Those. the heads constantly fly over the swap file zone and there is no need to specially run somewhere far and waste time.

Thanks for the info

1. "First of all, C has a higher linear read speed."
Why's that? What if there is only one C drive? And if the linear read speed is constant on half of the hard drive, and drive C takes up, for example, a quarter?
2. "Second - physically the file must be located in the heap of working data"
Where is the work data? Are you sure that you save all your documents to drive C, and specifically “to the workspace”? And Photoshop will load into memory once and no more calls to this place on the disk are required.
3. "mounted on C (closer to the edge of the disk)" - are you sure you know where the "edge" of the disk is when LBA-addressing?
4. In general, when installing the system, I personally recommend making drive C exclusively for the system and software, and drive D exclusively for the paging file (2-4GB), while storing all data on drives E, F, G ... and do not forget about backup (reservation)! . It is logical to set the paging file to the size of disk D (min=max). In this case, no defragmentation on drive D should ever be carried out (!), And when Windows crashes, drive C is simply formatted, Windows and software are reinstalled without data loss. Yes, for this, of course, certain knowledge in Windows is necessary. But if you are concerned about 0.0001% performance gain from the location of the file on the hard drive, then this already implies that you have this knowledge or a desire to acquire it.

Vovan, terr0rist, Microsoft also recommends installing the paging file on a partition other than the system partition in its knowledge base. So the argument is meaningless. Thanks for the comments though, it was interesting to read

When loading Windows personal settings, the computer stops responding (hangs) or the following error message appears after logging into Windows.

Not enough virtual memory
The paging file is missing or too small.
To resolve this issue, double-click the System icon in Control Panel, click the Advanced tab, and then click Settings under Performance. On the Advanced tab, click Edit. Select "Custom size" and enter the initial or maximum size of the paging file.

When you try to view the page file settings by following the instructions in this message, you may receive the following error message:

A temporary swap file was created because a problem with the swap file configuration was detected during startup.
The total size of the swap file for all drives may be slightly larger than the size you specified.

Cause
This error message can occur if Windows tries to create a page file on an NTFS volume and the System and Administrator accounts do not have the appropriate NTFS permissions to access the volume.

Decision
To resolve the issue, give the System and Administrators accounts Full Control rights to the NTFS volume where the page file should reside. To do this, follow these steps.

1 . If the computer is running Windows XP Home Edition or Windows XP Professional but is not a member of a domain, boot the computer into Safe Mode.
Note. If the computer stops responding while the operating system is loading personal settings, press ALT+TAB to open the Low Virtual Memory window, and then click OK.

2 . Open the drive in Explorer that should contain the paging file.
To determine which drive should contain the page file, follow these steps:
a. From the Start menu, select Run, type control sysdm.cpl, and then click OK.
b
c. Open the Advanced tab and click the Change button in the Virtual Memory section.
d. If you highlight a drive in the list, the paging file size for the selected drive area will display the paging file settings for that drive. If the message No paging file is displayed for any drive, then the selected drive does not have a paging file.
If the swap file exists on more than one drive, then the first time you perform these steps, select the first drive in the list, the second time the second drive in the list, and so on.
e. Click Cancel and then Cancel again to return to the System Properties window.
f. On the Computer Name tab, look for the substring that is in the Full computer name field up to the first period character. This substring is the name of the computer. You will need this name in the following steps.

3 . From the File menu, select Properties. Select the Security tab to view current permissions.

4 . Click Add, enter computername\system, and then click OK.

5 . Click Add, type ComputerName\Administrators, click OK, and then click OK again.
Please note that you must enter Administrator s, not Administrator.

6 . Select the System item and check the Full control box. This action will automatically check the rest of the checkboxes.

7 . Select Administrators and select the Full Control check box. This action will automatically check the rest of the checkboxes.

8 . To change the paging file settings, follow these steps: From the Start menu, select Run, type control sysdm.cpl, and then click OK.

9 . On the Advanced tab, in the Performance group, click Options.

10 . Open the Advanced tab, click the Change button located in the Virtual Memory section, and specify the required values.

11 . Close the System Properties window, close all running applications, and restart your computer.

Additional Information
The page file (Pagefile.sys) is a hidden operating system file. By changing the NTFS permissions on a volume, you can accidentally revoke the permissions granted to the System account. In this case, the operating system will not be able to manage some resources (such as the paging file).
By default, the Everyone group has Full Control permissions on the NTFS volume. In some cases, to improve security, permissions for the Everyone group are removed and permissions are added for individual accounts (for example, the Administrator account). However, the Everyone group contains the System account. Removing permissions for the Everyone group without adding permissions for the System account makes it impossible to use the paging file.