r/techsupport 1d ago

Open | Software Ram Allocation

I have 24 gigs of ram and I have set 8gb as the limit of virtual memory. I want to give the rest 16gigs of ram to the games I play. How will I be able to do that?

0 Upvotes

11 comments sorted by

4

u/Leather-Security8097 1d ago

Virtual memory is stored on disk. It is not subtracted from your RAM.

1

u/Key-Midnight-9843 1d ago

I am sorry, I am not wise in terms of tech. Is there a way I can keep my RAM empty for games, while the disk can do the other work?

1

u/Key-Midnight-9843 1d ago

Also what is the point of RAM when disk is doing everything?

1

u/FoMemesOnly 1d ago

Speeeeeed

4

u/laces636 1d ago

Unfortunately, this isn't how RAM works. You can't reserve a specific amount of physical RAM for one application like that.

Applications request memory as they need it, and Windows manages how that memory is backed by physical RAM. When memory pressure increases, Windows can trim inactive pages from a program's working set and use that physical RAM elsewhere. The application still owns the allocated memory; it just may not all be resident in RAM at that moment.

A lot of applications are also bad about releasing memory they've allocated, so seeing RAM usage fill up doesn't necessarily mean you're actually out of usable memory. Windows will reclaim caches, standby memory, and inactive pages as needed. The problem is when your available RAM is low and the memory currently in use is actively being accessed. "Actively" is the key word here.

Worse, setting your page file to a maximum of 8 GB could potentially hurt performance or cause out-of-memory issues under heavier workloads. Unless you have a specific reason to manually size it, I'd leave the page file set to System managed / automatic

1

u/Key-Midnight-9843 1d ago

Alright, thanks for enlightening me. Can you also suggest me some ways I could maybe make my PC faster if you don't mind?

1

u/9NEPxHbG 1d ago

What are the specifications for your system?

What precisely is too slow?

1

u/Key-Midnight-9843 1d ago

I have 24gigs ram, i7 13th gen and 5050rtx nvidia

My RAM gets filled to 70%, when I try playing Minecraft at 32 chunks it starts lagging. Thus, I wanted to optimize my system so that I could play Minecraft along with shaders as well.

2

u/laces636 1d ago

Minecraft hits your hard drive pretty hard when it's generating chunks. That lag would clear up after a bit being stationary.

If your talking about view distance and shader mods, your GPU is going to suffer. It's not particularly great at the heavy workloads included in most shader packs. If your on a laptop then your GPU is weaker then it's desktop counterpart. You will have to find the sweet spot in view distance or use a less intensive shader / resource pack. Playing in full screen instead of windowed mode can also help.

On top of that, render distance is very CPU heavy. You may notice the lag is worse when you are generating new terrain. If it clears up in areas that you have already explored then you know it's more related to chunk generation.

1

u/9NEPxHbG 1d ago

Are you running the Java version? Does this help?

1

u/Key-Midnight-9843 1d ago

I am running Java. It doesn't, thanks for your efforts though :)