After all, what is the amount of memory to give the paging file in Windows?

Tips on this subject are countless. But mostly diametrically opposed:
1) 1.5-2 times more than the amount of RAM (in order to avoid a situation with a critical shortage of memory).
2) a small amount (~0.5 x RAM) that the OS started using the swap file for no reason.
July 9th 19 at 11:18
9 answers
July 9th 19 at 11:20
Put automatically the size, and forget about it.
the automatic size will be very fragmented pagefile - Rowena commented on July 9th 19 at 11:23
Yes, if the disk is chock-full, and is used very actively there is a problem.
But you as I understand the pagefile not on the system drive, so it's easier so.
If you are afraid of fragmentation - double the size of the memory set. All of it will not be used, but the problem with the fragmentation will disappear.

In General, it is better to place on the SSD, and memory to add does not hurt, in our time, 4GB is a little. - earl.Weissnat commented on July 9th 19 at 11:26
July 9th 19 at 11:22
Depends on
1. the amount of RAM in the computer
2. the peak of its use
3. free disk space

Before the grass was greener and the swap had to be more. But I like 32 GB of RAM, and 64GB to do the swap absolutely no sense.
For home use, I would recommend to keep the swap within 2-4 GB to Windows could throw at him very legkoizvlekaemye region, and managed to warn what is dying, if suddenly the memory secrets.

And so - still need to watch what you run.
I have 16 GB and no swap at all, for many years, do not use - Rowena commented on July 9th 19 at 11:25
take my configuration for example:
1. Win7x64, 4Gb
2. No idea and it's hard to figure out. I can pomonitorit, of course. But sometimes I only include the browser, sometimes I can run the toy, and occasionally need to cut a bunch of graphics software (photoshop like all sorts of memory).
3. the place is very much (terabyte probably has). - earl.Weissnat commented on July 9th 19 at 11:28
forgot to add, swap on another physical disk (just for backup and scratch files) is located. - Garland36 commented on July 9th 19 at 11:31
And it is generally dynamic to do then? - Rowena commented on July 9th 19 at 11:34
If it is difficult to calculate, leave the swap at the discretion of the system. It it was, then why the question is raised.

If you want to set manually - evaluated.
Run a bunch of graphics software and see how many ate in the task Manager. You do not need to calculate the arithmetic mean, and the maximum that is simple - have launched photoshop with a couple of pictures, made parocco copy and paste layers.
Launched a toy - switched looked. - Rowena commented on July 9th 19 at 11:37
: well, the dynamic size is greatly fragments the swap file, which again will affect performance (and disk resource). - Rowena commented on July 9th 19 at 11:40
The Win keeps the minimum swap of constant size, and adds only if not enough, then cut back to the minimum size (slightly more than the Gigabyte).
If you have such a low memory that really need swap, better in our age to buy more RAM to the max - it is now cheaper hard drives. - Jeff28 commented on July 9th 19 at 11:43
Seriously - you are too much bother about what does not give appreciable growth.
You can just make a 2-4 GB swap and forget about the calculations. If you suddenly need to swap more than 2-4 GB, the computer will die, it is better to buy more RAM or don't run so heavy on this comp. - Rowena commented on July 9th 19 at 11:46
July 9th 19 at 11:24
No General rule.
These "two times more" was relevant to prehistoric configurations with 256MB, 512MB RAM, etc.

The swap file is needed in order to applications do not kresilas from OOM.
If you have lots of RAM, and you rarely reach the limits, then you can leave a small number of 512Мбайт - 1ГБайт.
If you have little RAM, and you constantly get beyond it, then the swap file to compensate for this missing difference is necessary (to you) amount of memory.

a small amount (~0.5 x RAM) that the OS started using the swap file for no reason.

The size of the pagefile has no effect on when it will be used.
If you want to avoid using it at all, then it should be easy to disable.
July 9th 19 at 11:26
Probably do it in flattery is not necessary , if you split and when you install the system will do everything herself , and flattery do not need to
Flattery is generally bad, for true. - Rowena commented on July 9th 19 at 11:29
July 9th 19 at 11:28
Windows for 15 years as she is quite well able to determine the size of the paging file.
July 9th 19 at 11:30
If the "pancakes" - then 4 GB, if the SSD: is it auto to leave.
You can also use this software to clean the memory.
And you can about this tool in more detail? What is she doing? Unloads unused data? I.e. let's say she can killnet remaining hanging process closed the browser? - Rowena commented on July 9th 19 at 11:33
no. it is not Kiley! it reclaims unused memory and clean the system cache. (only 2 steps!)
But it is so steep that it is put on wines-servers in a large production system! - earl.Weissnat commented on July 9th 19 at 11:36
July 9th 19 at 11:32
The argument about the strong fragmentation of the paging file during automatic size untenable.
1) Windows automatically resizes it rarely. I could be wrong (proof not googled, if you have welcome), but I think automatically it can only grow. Self reduce it, Windows doesn't know how. This should dramatically reduce the number of operations of changing the size of the OP and its fragmentation at the file system level.
2) the Data in the RAM is fragmented by themselves, by design, and therefore the OP too. Remember how "crunchy" the disk when you swap, no matter how beautiful a single piece or lay one on the disk. The problem is not fragmentation at the file system level.
July 9th 19 at 11:34
Empirically, for me, about swap=(max total commited memory) - (RAM) + 1(2) GB (depending on the bitness of the OS).
July 9th 19 at 11:36
if RAM is "enough" - swap disable.
Personally live without swap with vin7 and not get sick.

Find more questions by tags Windows