0

I know completely disabling the swapfile is not a good idea, so i'd like just to minimize its usage, so that the memory pages will be swapped only when the physical memory is completely full.

I know this old registry setting to force the kernel in RAM, but what about the user apps?

EDIT: Recent PCs have a lot of RAM (>=8GB) and also have SSDs that dislikes frequent writes. Also i think unnecessary/strategic swapping slows down the system.

The Linux kernel has a nice configurable swappiness parameter, is there something similar on Windows?

eadmaster
  • 1,177
  • 1
  • 14
  • 31
  • That sounds like a terrible idea – Keltari Nov 08 '15 at 01:10
  • @Keltari: could you explain why? – eadmaster Nov 08 '15 at 01:52
  • First off MS doesnt make things the way they are for no reason. They do massive amounts of research and testing, they do things they way they do, as it is generally the best way to do it. Now, as for your idea of not swapping until memory is full, that would just result in massive amounts of endless paging once the ceiling is hit. – Keltari Nov 08 '15 at 02:17
  • If you are having issues with paging, 99/100 you dont have enough memory to support your computer usage. – Keltari Nov 08 '15 at 02:18
  • Possible duplicate of [Modify Windows "Swappiness"](http://superuser.com/questions/644136/modify-windows-swappiness) – eadmaster Nov 08 '15 at 16:53
  • @Keltari: Firstly, Microsoft don't control the vast majority of software that can run on Windows, and secontly their settings are tuned for broadest compatibility and reliability, not best performance on a very specific combination of hardware. – qasdfdsaq Nov 08 '15 at 17:54
  • The closet thing to a "swappiness" parameter is the optimize memory allocation for foreground/background applications setting. – qasdfdsaq Nov 08 '15 at 17:56

1 Answers1

1

Update to Windows 10, here Windows compresses RAM that was not used for a longer time and instead of paging it to the page file on disk, it stores the compressed memory inside the SYSTEM process.

enter image description here

This reduces paging dramatically and is what you want.

magicandre1981
  • 97,301
  • 30
  • 179
  • 245