While you're here, please consider supporting GamingOnLinux on:
Reward Tiers: Patreon. Plain Donations: PayPal.
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Reward Tiers: Patreon. Plain Donations: PayPal.
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register
- Steam Controller 2 is apparently a thing and being 'tooled for a mass production' plus a new VR controller
- Unofficial PC port of Zelda: Majora's Mask, 2 Ship 2 Harkinian has a big new release out
- Half-Life: Blue Shift remake mod Black Mesa: Blue Shift - Chapter 5: Focal Point released
- Linux kernel 6.12 is out now with real-time capabilities, more gaming handheld support
- Steam Deck OLED: Limited Edition White and Steam Deck Australia have launched
- > See more over 30 days here
-
The Sci-Fi Shooters Humble Bundle is a top deal with Sy…
- Pyrate -
S.T.A.L.K.E.R. 2: Heart of Chornobyl review - works on …
- Shmerl -
S.T.A.L.K.E.R. 2: Heart of Chornobyl review - works on …
- Trias -
S.T.A.L.K.E.R. 2: Heart of Chornobyl review - works on …
- Shmerl -
S.T.A.L.K.E.R. 2: Heart of Chornobyl review - works on …
- Trias - > See more comments
- What do you want to see on GamingOnLinux?
- Liam Dawe - Types of programs that are irritating
- Cyril - Weekend Players' Club 11/22/2024
- StoneColdSpider - Our own anti-cheat list
- Liam Dawe - Spare gog keys
- on_en_a_gros - See more posts
View PC info
I have seen that when i play games (it varies from game to game) that almost all my RAM is beeing used. The "most extreme" case was when i startet a game and the RAM went from idk 7-8GB to 14-15, and i only have 16GB (okay technically 32 but one of the sticks is not working, and i do not have either the money right now nor the patience/skill to remove that huge noctua cpu cooler to even get to my ram sticks, since it was a hassle to get the pc build in the first place) anyway so my question is: Is that normal that the RAM usage goes that high? I have read that when there is not enough VRAM that DXVK just uses the RAM so maybe thats why? At least if thats true. I mean it would explain a lot since i'm currently still running a GTX 750 TI which only has 2GB. So yeah is that normal behaviour?
View PC info
So, looking for input from others: do proprietary Windows games in $CURRENT_YEAR normally consume 5+ GB of memory?
View PC info
I believe so. From what I remember learning Linux, it will basically use as much RAM as it wants and will continue to use that RAM if there's no reason not to (ending the process, another process asking for RAM, etc).
I see this all the time in my home server, where it will use 80%+ of my RAM even during idle periods.
Basically, if you have the RAM, Linux will try to use it.
I am a little curious as to the state of your system when you say you start at 7-8gb. I'm usually in the 2-4gb area on start up. You might have a lot of other stuff loaded that may be unnecessary.
Last edited by denyasis on 26 July 2022 at 12:13 am UTC
It's hard to know without more details. Run free -h (-h for human-readable) in the terminal:
total used free shared buff/cache available
Mem: 31Gi 5,4Gi 20Gi 869Mi 5,0Gi 24Gi
Swap: 29Gi 0B 29Gi
Used is the actual memory allocated by applications. Buff/cache is the volatile cache. Available is free + cache.
Linux is very good at caching stuff. When you start an application for the first time, it will be read from the disk. But after that Linux will keep the application files cached in memory, so it can start faster. Like others have mentioned, if there is nothing else using the memory, the cache just stays there. If, however, another applications requests more memory, then the cache will be released in favor of the application. This is normal behavior and is good for performance.
On the other hand, if there is a lot of used memory, then there probably is something else at play. Easy way to find memory hogs is to run top and hit Shift+M to sort by memory usage. Look at the RES column.
View PC info
Even with the swappiness tunable set low, like "10" or even "1" the kernel will still try to preserve the page cache.
Myself, I hate when I've worked with big archives and things and they are all in my page cache. The system will eventually drop it, but sometimes I'd rather just drop it immediately rather than let the kernel go through those gymnastics.
Sometimes if I play a bloated game that uses a ton of RAM (e.g. DX12 translation) and accesses a lot of data on disk, I also hate to let the kernel try to preserve that data when I intend to fill up RAM with something completely different, next anyway.
#echo 1 > /proc/sys/vm/drop_caches
(That will clear only the page cache... echo 3 if you want to also clear cached dentries and inodes... should not be necessary)
That can be done at any time, on the fly and it resumes normal operation after that.
This is not something I recommend doing under normal circumstances. Dropping the page cache would be the opposite of what you'd want to do most of the time. I only do that under a few, specific, annoying circumstances.
Last edited by Grogan on 28 July 2022 at 9:00 pm UTC