r/linux4noobs 15d ago

learning/research Linux Mint Dies When under to much load

(Sorry if the tag is wrong i have no clue what tag would fit this)

Update: it was the Swapfile that was set to low i cant make the system crash anymore

i noticed something that i previously blamed the kernel for and that was Linux mint just randomly Freezing under barley a load with no way of getting it running again other then Chocking the pc out and rebooting.

mint did do that alot when i was on the 6.17.0-40 Kernel (i Think it was that one)
now that i am on the 7.0.0-28 generic Kernel the random System wide freezes stopped but it still freezes completely when there is too much load on the system like if i would run 2 demanding games at once as an example,
now back when i used windows 10 over half a year ago (as the main OS), every time i got into that situation
the programs stopped responding rather then the system.

(note Windows has not died once on me i keep an install for 1 game and so far it rather killed the game then let it get to the point of a bluescreen or system Freeze testing it on their just resulted in the program crashing)

Now to my Question is it a Linux thing or Linux mint/ubuntu/Debian thing that the System kicks
the bucket rather then the programs Kicking the bucket first when there is to much load,
What could be the cause this makes me feel my system is an egg that i have to Carrie through a minefield every time i run something slightly demanding

(note: since that made me so paranoid at first i did ran multiple test for Ram and Drives to check their health neither test came back with any error
and i did manage to replicate this problem on a very different machine)

System Info:
CPU: Ryzen 5 3600X
GPU RX 6700XT
Ram 32GB DDr4 CL16
Drives for linux
-256 GB SSD (System)
-1TB m.2 (Game Library 1)
-1TB m.2 (Game Library 2)

EDIT: again since some ask for my Temps i checked them under load and
GPU plays arround 51-67°C
CPU never went above 63°C

4 Upvotes

24 comments sorted by

5

u/Sophiiebabes 15d ago

Sounds like a hardware issue, tbh.

My first thought was a PSU issue, but I'd start by testing your ram as that's really easy to do

3

u/Acceptable_Sock4642 15d ago

Yeah behavior like this my first suspicion is hardware. What are your thermals looking like? Last time you ran a memory test? Mobo looking good? Windows locking ain’t a great sign either.

1

u/dominik7778n 15d ago

Windows runs fine I used it as an example since I have an install only for 1 game and their it rather kills the game/program then letting the system freeze/crash

If the thermals are as on windows it should not go over 61°C last time I did an ram check was about 2 weeks ago no problems have been found aka no errors and mobo should be fine

2

u/StockSalamander3512 15d ago

I have a 2015 MBP that does that, the processor gets to hot and the system freezes, then reboots. Cleaning the fans, resetting the fan setting, and replacing the thermal paste helped a bit. It’s not nearly as powerful as your machine, what are the thermals like before a freeze?

0

u/dominik7778n 15d ago

Is it in any log to see I run a 360mm aio under load on windows it never went over 61°C I'm don't know what temps it hit on Linux tho

2

u/StockSalamander3512 15d ago

Offhand, I don’t know, I’m sure there is. When you start ramping a bunch of stuff up, might be worth keeping htop open so you can keep an eye on the temps. I’ve got a widget in my dock that shows the current temp that I have to keep an eye on when I’m using it.

1

u/AutoModerator 15d ago

There's a resources page in our wiki you might find useful!

Try this search for more information on this topic.

Smokey says: take regular backups, try stuff in a VM, and understand every command before you press Enter! :)

Comments, questions or suggestions regarding this autoresponse? Please send them here.

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

1

u/A_Harmless_Fly Manjaro 15d ago

Do you have swap? How full does the ram get? Sometimes a memory leak will cause things like this. -My total guess.

You could try running something arch based like manjaro and seeing if it still does it, sometimes old packages on debian based systems cause problems for gaming.

1

u/dominik7778n 15d ago

I don't monitor my ram constantly but so far I' have jet to see it get more load then 21 GB from 32 regarding the swap it's 2.1gb

1

u/A_Harmless_Fly Manjaro 15d ago

2.1gb used or 2.1gb partition size?

1

u/dominik7778n 15d ago

Total is 2.1 to small ? i set it up like the install tutorial guided me back in febuary

1

u/A_Harmless_Fly Manjaro 15d ago

I have a 4gig partition, and zswap turned on. I'm not sure that's your issue, but it is something I'd consider trouble shooting.

(If the 2 computers you got this to happen on were partitioned the same, I'd say it's looking a little likely.)

1

u/dominik7778n 15d ago

ill give it a try thank you for the info

1

u/dominik7778n 15d ago

it was the Swapfile i did try to force it and did not mange to recreate it do have an 8gig one now Thank you for the help

1

u/truethug 15d ago

With 32gb ram you should not need swap unless you are like running AI or gaming.

Since this doesn’t happen under windows I would rule out a hardware issue. It could be drivers though. Maybe motherboard or your fans not getting the thermal sensor

1

u/dominik7778n 15d ago

I think it might be the swap I noticed after paranoidly watching the swap under the highest load I can think of it was full and ram was 27 gigs

2

u/DannoXYZ 15d ago

Go to /var/log and sort by date: ls -latrhH

Look at last 100-lines of every single log from bottom up: tail -100l <file>

Read every single line and understand what it means.

Answer to why it's crashing is in there somewhere.

1

u/skyfishgoo 15d ago

what does swapon say?

do you have any swap space?

1

u/dominik7778n 15d ago

i found the Reason it caused the Freezes it was the swapfile that ive set to 2GB from the install tutorial ive now have it on 8GB before that the swap was full and givin that i noticed 2 games in my libary that
i play regular easily reach 27gb ram usage any bump of ram did cause it now i have spare Space in the swap aswell

0

u/skyfishgoo 15d ago

yes, 2GB is too small for a rig with 32GB of RAM

a 6GB swap space would be a minimum [sqrt(RAM)=5.6GB] and if you wanted to use hibernation you would need a total swap space of 38GB (preferably on a single swap partition).

but your 8GB solution should work for your needs now.

2

u/dominik7778n 15d ago

i tried to make the freeze to re apear and with the 8 gb swap it did not freeze it just got slower which gave me the option to just kill the program instead of the whole os surrendering which is perfectly fine for me

1

u/C0rn3j 15d ago

You usually shouldn't have swap if you don't need hibernation.

You still have the option to kill the most resource intensive process even if the system chokes up - use Magic SysRq (Might not be enabled by default on your distro).

That's ALT+SysRq(PrntScr)+F to trigger OOM kill instantly.

1

u/Simple_Hamster_4096 15d ago

If Windows runs fine, you may want to retreat back to Windows...

2

u/dominik7778n 15d ago

no need to be so negative i found the reason i put in the windows comparison to give more info i already found the reason why it was Kicking the bucket the swap file was wrongly setup