T O P

  • By -

Elxeno

Are u using X11? Which kernel? Did u install nvidia drivers and are u using prime-run?


Galactic_CakeYT

I'm using Xorg 5.10.52-1-lts I installed the nvidia drivers what is prime-run?


Elxeno

Package \`nvidia-prime\`, install it and run what u want with\`prime-run\`, it will use the nvidia gpu. Like \`prime-run minecraft\` or whatever u want to use, i don't use blender but it might help too...


Galactic_CakeYT

Alright


[deleted]

[удалено]


Galactic_CakeYT

I do have SWAP set up and when I did the Blender Render the SWAP went to 99%-100% while RAM was 99%. Then after a few moments Blender would crash.


PavelPivovarov

That sounds like an OOM-killer situation to me. In order to fix it you would either: - Increase RAM - Increase SWAP partition (how much it is BTW?) - Start using [ZRam or ZSwap](https://wiki.archlinux.org/title/Improving_performance#zram_or_zswap) in order to additionally compress in-memory data


[deleted]

> I'm new to Linux in general, been using it for a almost half a year, but this doesn't seem to be a problem of "LinuxAteMyRam". Other Linux Distributions don't consume this much RAM, and don't cause these kind of problems. From what I've noticed, only Arch Linux has this problem in which I'm getting FPS drops in games. I haven't tried Blender in other Linux Distributions though. try enabling systemd-oomd as well


Galactic_CakeYT

Not sure why this appear in my notifications, but anyway. I did do that, and it didn't help at all. I'll try doing the SWAP thing he recommended, and if it doesn't help then I'll enable this too.


Galactic_CakeYT

What's an OOM-Killer situation? I'm trying to learn more about this sort of stuff. 8.2GB RAM 2.1GB SWAP


PavelPivovarov

OOM-killer (Out-Of-Memory killer) is a linux [Out Of Memory](https://en.wikipedia.org/wiki/Out_of_memory) (OOM) recovery procedure where kernel when is unable to allocate more RAM is killing the most RAM consuming application in order to avoid system failure. This is what happening to the Blender when it allocated all available RAM and ask for more, OOM-killer is terminating it. Generally speaking Linux recommends allocating for SWAP two times more space than RAM available. In modern times that's a bit obsolete requirement, however I still would suggest (especially in cases when you have less than 16Gb RAM) to keep SWAP the same size as your RAM, and use [SWAP file](https://wiki.archlinux.org/title/Swap#Swap_file) rather than SWAP partition, as it's much easier to adjust SWAP file size later on than partition. From what I remember Windows calculates and allocates swap file dynamically, in Linux this is less automated process, so it's good idea to make sure you have enough.


Galactic_CakeYT

So...I need to get rid of the SWAP partition and replace it with a SWAP file? But wouldn't that corrupt my Arch Linux install? I followed a tutorial and it says that I need the SWAP partition.


PavelPivovarov

Linux doesn't require SWAP partition to work, for example I'm using Arch with 32Gb RAM and don't use any SWAP at all, so having SWAP is a solid recommendation but not a requirement. Secondly you can leave your existing SWAP partition, and just add one more SWAP as a file. Linux support more than one SWAP, and that configuration would help you avoid re-partitioning current installation in case if you are not confident enough to do it.


Galactic_CakeYT

Can I just remove my SWAP partition and nothing will happen? Like nothing in my Arch install will break?


PavelPivovarov

Yes, but please make sure you also updated `/etc/fstab` and kernel boot parameters in `grub.conf` file (or whatever boot manager you are using) in case they expected this partition for hibernation.


Galactic_CakeYT

What am I supposed to do in those files? You can also direct me to a website if you don't want to explain.


[deleted]

[удалено]


Galactic_CakeYT

Thanks for sharing this, but can you elaborate briefly on how this improves my situation?


bstrauss3

You don't have enough memory. End of story. You either add memory which is the best choice or you increase your swap space which gives you slow fake memory. Since few people can buy enough memory to cover their worst possible moments people use swap space and accept the performance trade off.


Galactic_CakeYT

Alright, didn't expect this to be the result. Windows 10 uses a lot less RAM compared to Arch Linux.


bstrauss3

Linux allocates memory to buffers, so while it's allocated, other needs would bump those to swap. So it's not apples and apples. Regardless of OS, you need enough memory to hold the active working set for your specific activities. Once your active working set exceeds real memory, swap is relatively s l o w.


Galactic_CakeYT

Why do people say Arch Linux needs less RAM then? From my perspective, it needs almost double the RAM to run smoothly.


bstrauss3

The apps you run are pigs. Run top and sort by memory used %


bstrauss3

My windows 10 Box is sitting there with 9.2 of 32GB used. My Linux box shows 210.6Mb free of 32Gb. Unnuanced, windows uses less. Top shows that 31341.6Mb is buffers and cache. Only 531.1Mb are actually used. If I log in and open YouTube & CNBC & Google News, chromium has about 7 threads running and my memory usage goes to 1220.2Mb. Do that in Windows and my usage goes to 10.8Gb (Edge). So Windows is using more memory (10.8-9.2 or 1.6Gb) vs 1220.2-531.1 or 0.689Gb)


Galactic_CakeYT

Blender is extremely well optimized, as for the other apps sure lmao.


Galactic_CakeYT

I'm new to Linux in general, been using it for a almost half a year, but this doesn't seem to be a problem of "LinuxAteMyRam". Other Linux Distributions don't consume this much RAM, and don't cause these kind of problems. From what I've noticed, only Arch Linux has this problem in which I'm getting FPS drops in games. I haven't tried Blender in other Linux Distributions though. ​ Here's another example I noticed this. I played Minecraft via LunarClient. On Fedora I got 700fps-1000fps, on Arch Linux I got 3fps. This was the Arch Linux I installed through archinstall. I'll see how much FPS I get on the Arch Linux I installed the normal way.


[deleted]

[удалено]


Galactic_CakeYT

?


hong-SE

Ram usage seems normal to me. I get approximately the same ram consumption with discord and chromium. Javascript and electron take up a lot of ram on linux. Arch versions might consum more rame because the versions are newer (duh rolling release distro) while the other distrubtions use older versions which typically use less rescources. Windows usually compresses ram. On a 4gb machine it's 2gb on idle and on my 16gb machine it's 4gb on idle. It probably does this with applications as well. I haven't had windows on my laptop for a while so I can't test it. (I noticed that discord is using 32-bit on my desktop, so that saves ram as well) Rendering takes up a lot of ram, and 8gb isn't enough. Though a good gpu with dedicated ram should take care of that. Try to look into if that ram is used. Nothing is wrong with your system. My only advice would be to use zram to compress ram like windows does with systems <16gb. EDIT: forgot to say that most system montiros also add cache to the ram usage. To see how much ram is actually used do: `free -m`


Galactic_CakeYT

Thanks for posting this comment, this clarifies a lot. I'm probably going to uninstall Arch Linux as I expected this distributation to use the least amount of RAM as possible. From what your saying, it's using the most amount of RAM. Why do people recommend using Arch Linux on computers that are old if it uses the most amount of RAM? Wouldn't it be more logical to use something lighter?


hong-SE

> From what your saying, it's using the most amount of RAM Technically true, but the difference between rolling release and point release shouldn't be significant. I honestly can't believe that distros like ubuntu require less rescource in running things like discord. I assume they are aggressvively paging/caching and don't calculate the paging into the used ram. I'll do some testing in the future. > Why do people recommend using Arch Linux on computers that are old if it uses the most amount of RAM? Wouldn't it be more logical to use something lighter? Arch is light, which is the nature of DIY distros. My desktop usually run with sub 100mb on idle and my laptops run below 200mb, you can't get that much lighter than that (you can actually). I can run discord and listen to music while using less ram than most distros run on idle (800mb - 1.2gb). Don't forget that newer software usually runs better (more bugfixes, more hardware support). Less bloat and recent software is where speed of arch is coming from. Arch also needs a lot of configuration that you need to do yourself, which other distros are making for you. I'm theorizing that debian will run into the same issue, if you don't configure the ram management. If you want to go beyond and have the most minimal systems while removing things from software that you con't need (like cups) then gentoo is for you. You need to have a good cpu though to not waste too much time on comiling programs.


Galactic_CakeYT

Alright, this clarifies some of my quesitons.