this post was submitted on 03 Nov 2023
1204 points (97.6% liked)

Programmer Humor

32558 readers
634 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

Context: this is a legit screenshot I took on my workplace around 1.5 years ago. Hopefully it's been patched by now? Completely ridiculous behavior

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 35 points 1 year ago (2 children)

I have a personal server, mostly acting as a NAS but with some web hosting as well. For whatever reason, it randomly freezes until you manually power cycle it, it happens really often, like every 20 minutes.

Turns out it's due to some weird interaction between debian and older ryzen CPUs, if the CPU isn't busy it just dies. Solution? A Minecraft server, with no one on it, it keeps the CPU just busy enough to keep it alive. I've had it running for months at a time with no issues.

[–] [email protected] 42 points 1 year ago (2 children)

Go into grub and set intel_idle.max_cstate=1 if you want it to be elegant. Had the same problem. AMD didn't implement proper sleep states. There's an open PR ranting about interconnect issues somewhere if I can find it.

[–] [email protected] 5 points 1 year ago

Cheers, I'll give it a go, though I suspect I've already done it. I believe I've read the rant you're talking about too

[–] [email protected] 3 points 1 year ago (1 children)

You might've just opened my eyes about an issue I've been having with my ryzen server! I've been using it to host a discord bot, and every now and then it has to be manually restarted (which is a hassle for me since it's over 40 miles away from my house) so I'll definitely be trying this, or the Minecraft server solution lol

[–] [email protected] 1 points 1 year ago

Just post the external IP of your Minecraft server. We'll help keep your system awake

[–] [email protected] 5 points 1 year ago

That's amazing.