RAM issues causing graphical glitches

Hi! I have sort of made a post about this before, but I believe I have new information that would be better if explained in a new post.

as stated in that post, I sometimes get weird graphical glitches, and I also think it’s causing my computer to crash every so often.

downgrading did work, but now I’m using flakes on the newest unstable version (again) and do not have mesa installed in path. (It could be a dependency, I don’t know.)

the new information: I had to remake my system from scratch, and it took two days or so to see the glitches appearing again. I found a BIOS setting on my laptop “VRAM Size”. (or something like that) I use an integrated GPU and part of it’s VRAM is taken from my System’s RAM. after changing this setting to “GAMING” (only other option, and it increased the VRAM dramatically) it took weeks before my system started crashing. I still haven’t seen the graphical glitches yet, but I have a feeling that they’re not far behind.

is it still possible that this is caused by mesa? or is it something else? my configuration is drastically different now compared to my old post, ask if you need to see it.

Hello again.
My first question would be, can you post your config?
Second can you monitor your total memory usage when the graphical glitches and crashes appear?
Than can you post your dmesg log and journalctl log.
To upload it post it on pastbin.com and share the link.
I think the problem with the crashes is that your Ram is at 100%. This will cause the crashes (have the same problem on my system when memory is at 100%).

  1. here is a GitHub repository of my config (configuration.nix, hardware.nix, and home.nix excluded, due to wanting anonymity, but they don’t contain much and shouldn’t be the source of the issue, I can post them with redacted information if needed).
  2. theoretically yes, in practice… it didn’t used to be the case, but it now happens so rarely that I’d basically have system monitor on indefinitely until I caught it again.
  3. do you want me to post dmesg log and journalctl log now or directly after a glitch/crash?
  4. it might be RAM being at 100% but I don’t think I’ve seen it go above 20% in waybar. I could have just missed it though.

Yes exactly.

This can happen pretty fast but when you don’t do anything (not opening some program or loading a file) it should not happen that fast.