136
submitted 1 day ago* (last edited 1 day ago) by DieserTypMatthias@lemmy.ml to c/linux@lemmy.ml

For me, it's Shared GPU memory.

you are viewing a single comment's thread
view the rest of the comments
[-] teawrecks@sopuli.xyz 15 points 8 hours ago

Shared GPU memory (as described in that article) is just how Windows decided to solve the problem of oversubscription of VRAM. Linux solves it differently (looks like it just allocates what it needs in demand and uses GART to address it, but I would like to know more).

So I'm curious what you mean when you say you miss it. Are you having programs crash OOM when running on Linux? Because that shouldn't be happening.

It's not ideal to be relying on shared gpu mem anyway (at least in a dgpu scenario). Kinda like saying you have a preference on which crutches to use.

[-] DieserTypMatthias@lemmy.ml 1 points 4 hours ago* (last edited 4 hours ago)

There is one game called Cities: Skylines 2 that always fills up my VRAM, so yeah, I'm getting an OOM, but on the VRAM (I have GTX 1660super with 6 gigs of VRAM and I have 32 gigs of system RAM). I encourage you to try playing this game with a moderately sized city and with this GPU.

[-] teawrecks@sopuli.xyz 2 points 17 minutes ago

Assuming C:S2 uses DX and you're running it through proton/dxvk, it's ultimately the Vulkan driver's job to page to system memory correctly. This honestly sounds like you're seeing a bug. In that circumstance, it shouldn't crash, it should just hurt performance from all the paging. I see a couple of older issues where people were seeing exactly this kind of issue with DXVK+Nvidia.

  • This old Witcher 3 one where they blamed it on Nvidia's memory allocator not playing well with linux THP (transparent huge pages). Disabling THP was a workaround.
  • This other issue for several titles that were hitting memory alloc failures despite having tons of system memory, just as you describe. They try several workarounds, but ultimately they believe it was fixed by a driver update.

One other thing to try is, idk if you're running the game in dx11 or dx12 mode, but apparently both exist. If it's currently running in dx11 mode, try the launch flag -force-d3d12. If you're already using dx12, maybe try swapping back to dx11. Good luck!

this post was submitted on 30 Nov 2024
136 points (95.9% liked)

Linux

48375 readers
1223 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS