Guides › Settings

Memory settings

Understand how Sovereign OS stretches your PC's memory with compressed memory and the swap file, and when to change these settings.

Memory (RAM) is where programs keep what they are working on. When it gets full, Sovereign OS makes room in two ways, in this order:

  1. Compressed memory. Pages of memory that programs have not used for a while are packed tightly and kept in memory. This is fast, and it means more programs fit before the disk is used.
  2. The swap file. Pages that do not pack well, or that do not fit any more, are written to a file on the system drive and read back when a program needs them.

You do not have to do anything. Both are on by default.

See how much is compressed

  • In Settings > System > About, under Related, click Advanced. Under Compressed memory, the Compressed row shows how much memory the packed pages take now, and how much program memory they hold. For example, "120 MB holding 400 MB of program memory".
  • In Tasks and Processes, open Performance, then click Memory. The Compressed line shows the same numbers.

Turn compressed memory off or on

  1. Go to Settings > System > About.
  2. Under Related, click Advanced.
  3. Under Compressed memory, turn Compress memory off or on. You may be asked for an administrator's approval.
  4. Restart the PC. The change takes effect after a restart.

Most people should leave it on. Turning it off makes the PC use the swap file sooner, which is slower.

Change the swap file

See Storage settings.

Computers with more than one processor socket

Large computers with two or more processor sockets have memory attached to each socket. Memory next to the processor that uses it is faster. Sovereign OS notices this by itself: it gives each program memory near the processor it runs on, and keeps a program's threads on the processors near its memory. There is nothing to set.

5-level paging

Some newer processors can use 5-level paging, a way of reaching much more memory than most PCs have. If your processor has it, Settings > System > About > Advanced shows a 5-level paging switch under Memory addressing. It is off by default.

  • Turn it on only if you were told to, for example on a server with a very large amount of memory. It takes effect after a restart.
  • While it is on, Hibernate is not available, and sleep uses a lighter mode that keeps the screen off instead of the deepest sleep.
  • If the PC does not finish starting with it on, the next start goes back to the normal mode by itself, and the PC stays in the normal mode from then on. The switch then says that the last start with it did not finish. To try again, turn the switch off and on, and restart. You can also add the start option nola57 to the file SYSTEM\BOOTCFG.TXT on the start drive to keep it off.
  • The recovery copy always starts in the normal mode.

Limits

  • Compressed memory uses at most a quarter of your memory, counting all the memory its packed pages take.
  • Pages that are already compressed stay in memory; they are not moved on to the swap file later.
  • These features have been tested in a virtual machine. They have not yet been tried on every kind of real hardware.

If something goes wrong

  • The Compressed row says "Off". It may be turned off in Settings, or with the start option nozmem. The row says which.
  • A program closed with a memory error. If a packed page was damaged, Sovereign OS stops the program rather than give it wrong data. The Event Viewer lists it under Memory. Open the program again. If it happens often, test your memory with the start option memcheck.
  • Hibernate is missing. Check whether 5-level paging is on. Turn it off and restart.

Still stuck? Search the help center or contact support.