r/linuxmint • • 10d ago

Support Request almost double ram usage on Linux mint vs windows 10?

I have to be doing something wrong but I was playing bannerlord while watching a you tube video (one tab open) and i could see that it was staying steady around 90% usage and it was causing the whole computer to freeze dose anyone know what could possibly be cussing this at max setting it is only using about half the ram

19 Upvotes

23 comments sorted by

•

u/AutoModerator 10d ago

Please Re-Flair your post if a solution is found. How to Flair a post? This allows other users to search for common issues with the SOLVED flair as a filter, leading to those issues being resolved very fast.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

8

u/Ripsoft1 10d ago

Has it been a longtime since a reboot? I had a similar issue, reboot fixed it.

3

u/OddAd1423 9d ago

It had been about 4 hours

8

u/Rogalicus 10d ago

At least post a screenshot of your System Monitor or htop next time.

1

u/OddAd1423 9d ago

Will do

4

u/Polyxeno Linux Mint 22.2 Zara | Cinnamon 10d ago

90% usage of how much RAM?

Web browsers, web pages, and how web browsers let web pages hog RAM (and how Linux responds to running out of RAM due to web browser use, which is configurable) are the ways I have seen this sort of problem (at least, on computers with not enough RAM for gluttonous web pages).

2

u/OddAd1423 9d ago

16gb of ddr4 laptop ram
It was mostly the game using all the ram the YouTube tab stole about a gigabyte

4

u/whatthehell7 10d ago

youtube and brower using software decoding instead of hardware decoding like windows could be the problem

1

u/OddAd1423 9d ago

I don’t really understand what that means but it was mostly the game hogging the ram

2

u/SayuriShoji 10d ago

Without you providing any details on your hardware (CPU/GPU/RAM), your swapfile info and what applications were running at the time (in particular the ram-intensive ones... a screenshot of your process monitor might be helpful), it's hard to guess what the issue might be.

1

u/OddAd1423 9d ago

I will get some screenshots soon but I have intel I 5 something 3050ti laptop and 16 gb ddr4 laptop ram it was mostly banner lord using the ram at about 7.5 gb

1

u/skozombie Linux Mint 22.3 Zena | Cinnamon 10d ago

Do you have a swap file setup?

Which process was using your RAM?

Linux will use whatever ram you have to boost performance (buffer and cache). Available is the metric to look at, not Free

1

u/OddAd1423 9d ago

It said in system monitor that it was steam but when I hovered over it it was something something /steam/bannerlord or something like that
What is a swap file

3

u/Classic-Rate-5104 9d ago

90% isn't bad, because unused ram is wasted ram. There can be a completely different reason for your freeze

2

u/FunJackfruit1659 8d ago

This saying makes absolutely no sense.

Less resource usage is good, it allows you to do more with less and improve performance.

Using excess ram to expand the cache is incredibly useful for improving performance, but it has limits...

0

u/Classic-Rate-5104 8d ago

I don't agree. Both my Linux and Windows systems are running between 80% and 90% and the performance is absolutely normal without issues. So when your computer freezes at regular times there must be another problem causing this

2

u/FunJackfruit1659 7d ago

If the excess usage is just the os caching shit it might need, then that's fine, it can be discarded.

If an application is using a shit load of ram unnecessarily then it won't be freed up when needed, and you hit performance issues.

Same with running pointless services in the background. (windows is terrible for this)

-1

u/Classic-Rate-5104 7d ago edited 7d ago

So you can't say (in general) that Mint Linux is using too much memory. You have to find out which programs ate much memory. Take two different Mint installations with differently configured desktop environments and it may dramatically differ. And, still, when you have your swapspace correctly installed, lack of memory does not freeze your system. It can make it slow, which isn't the same

0

u/Brorim Linux Mint Release | Desktop Enviroment 10d ago

lol reported

12

u/[deleted] 10d ago

[removed] — view removed comment

1

u/don-edwards Linux Mint 22.3 10d ago

Use zram if you have nearly-enough RAM and do not have a swap file/partition. Zram creates a virtual swap file in RAM, but if used in combination with a swap file it tends to get filled up with the stuff that won't be needed for a long time - forcing the actively-in-use stuff to swap to disk, sooner and more often than it would if you weren't using zram.

In combination with a disk swap file, zswap is better. At first glance it looks rather similar, but instead of a virtual swap file it creates an intelligently-managed buffer in front of your disk swap file. When the buffer is getting full or needs to shrink, the oldest stuff in it goes to disk - exactly what doesn't happen with zram, but should.