How to prevent memory shortages?

I’ve been having a blast with this OS. I can do everything like on windows short of one trouble.

Videogames that I could flawlessly run back on windows run into memory shortages, thus I’ve rendered them unplayable on EndeavourOS on my Steam library collections. And some times when I’m editing a video it happens.

I have a bunch of smaller games that I can run flawlessly anyway, so it’s not been too much of a thorn on my side, but… You know… sometimes you just want things to work optimally haha.

Thanks beforehand!

Jokes aside, i think the problem is that those games are made for windows. In order to run them on Linux, you need a lot more stuff running in the background to mimic a windowy environment, like direct-x to vulkan conversion and “wine” (windows layer) so you have a lot more overhead, even before the game starts to ask for ram, your ram is already gone. Also, the drivers of most gpus i wold assume are made specifically for windows. On Linux, maybe the drivers are more of the “generic” kind with lack of a lot of features that are available to windows.

My suggestion to you is, ditch the desktop. Install a barebones linux distro (or at least one with a “window manager” instead of a desktop). Use the terminal. That will save you a lot of ram.

But take my word with a grain of salt, because i am not even a gamer :slight_smile:

1 Like

What are your system specs? I game a ton on EOS, with 32 GB RAM making a huge difference. Every Windows-based game I play uses way more RAM on Windows than Linux, so I’m curious as to exactly what’s happening. Proton’s overhead is much smaller than the average Windows 10/11 system, so much so that I rarely ever notice.

That being said, not all games run on Linux/Wine, no matter how far gaming on Linux has come. I had multiple issues with a memory leak with Last Epoch (also happened on Windows, but not as often) that would freeze my system until the OOM service killed it.

I would suggest taking a look at https://www.protondb.com; it’s a great source for getting Windows games to run correctly on Steam.

Not sure where you got this (mis)information from, but it can’t be further from the truth. Nvidia, for example, specifically makes fully-supported drivers for Linux that have nothing to do with Windows. If there are features in the Linux driver that are missing from its Windows counterpart, I’ve yet to be negatively affected by this.

And for the record, I’m not a Windows hater; very recently I was running a dual-boot with Windows 11 due to a perceived Linux incompatibility (turned out to be mis-configured RAM).

1 Like

These days memory is cheap, just buy more (the obvious answer) and/or increase swap space.

Let’s say i have seen the very early days of Linux when it did not recognise half the components that you had on your motherboard. And like i said, i am not a gamer. What you say makes me believe that gpu manufacturers put in the work to make proper drivers for Linux since the day Linus flipped the middle finger to Nvidia :slight_smile: That is good news then. No excuse for staying on windows if the “gaming” no longer requires it. That means millions of people can actually jump ship. What’s the hold up?

1 Like

I think the biggest problem with better Linux adoption is that there are so many choices as to be overwhelming to the average Windows user. I started using Linux back in the late 90s, actually had my first dual-boot with Windows XP and RedHat Enterprise version 2 on an IBM Thinkpad. I didn’t ever consider Linux as a gaming platform until Steam Proton started to really gain support/stability.

As an example of how far Linux gaming has become, I just installed Titan Quest II (Early Access). The biggest complaints are all related to performance, which has not affected me in the slightest (highest settings, consistently over 60 FPS).

My system specs (Xfce with XLibre replacing X11):

Memory:
  System RAM: total: 32 GiB available: 31.12 GiB used: 8.08 GiB (26.0%)
  Device-3: Controller1-DIMM0 type: DDR5 size: 16 GiB speed: 4200 MT/s
  Device-4: Controller1-DIMM1 type: DDR5 size: 16 GiB speed: 4200 MT/s
CPU:
  Info: 10-core (6-mt/4-st) model: 13th Gen Intel Core i5-13400F bits: 64
    type: MST AMCP cache: L2: 9.5 MiB
  Speed (MHz): avg: 800 min/max: 800/4600:3300 cores: 1: 800 2: 800 3: 800
    4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800 13: 800
    14: 800 15: 800 16: 800
Graphics:
  Device-1: NVIDIA AD107 [GeForce RTX 4060] driver: nvidia v: 580.95.05
  Display: unspecified server: X.org driver: X: loaded: nvidia

There are still some games/programs that just refuse to play nice on Linux, especially those that insist on kernel-level anti-cheat.

With this minimal info hard to figure out anything, my system is getting on in age and I rarely have issues and when I do I search for the game in protondb or winehq and see what tweaks others have done

Most times there is a simple answer

Early 1990s?
I guess you would need to update your info on things Linux :wink:

1 Like

It wasn’t that far away. And “PC gaming” on Linux has to be a rather new concept.

1 Like

If your point of reference is early 1990s, then yes :sweat_smile:

When I started meddling with Linux in the early-mid 2000’s, gaming was something that was a daydream in this scale that it’s now. I remember getting Fallout 1 and 2 running easily on Ubuntu ant-remember-version, but other games I owned were no-no.

If it did not run on Wine with or out on some of it’s front-ends, well, that was about it. :sweat_smile:

Inertia probably, and the fear of doing a manual install no matter how easy it becomes.

I’ll only add to this… that Microsoft and Apple spend more on marketing than the GDP of many smaller countries. And if you already have to use something at work, well…

1 Like

OP has yet to respond .. but first guess is low RAM and no SWAP.

And zram is often more performant than regular SWAP if you really will be using it as ‘extra memory’ more than anything else.

Thanks for the answer and idea, but it’s not as important for such a nuclear option haha I like the desktop and its advantages more than I want to play those games. But thanks anyway!

I have 4gb of video and 8gb of ram… the processor is a quad something. I don’t know what is the equivalent of dxdiag here that reads you everything about your machine.

inxi -Faz

1 Like

I tried doing that of increasing the swap, but either I think I didn’t understand the guides and did it wrong all the time. If you could show me how to in a… ridiculously fool proof way XD I’d appreciate it a lot!

how did you get all that info shown? someone above asked me for my specs and I don’t know how to show them.

I don’t like those levels of anti cheat anyway. I mainly play single player games.