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.
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.
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
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
Posts must be relevant to programming, programmers, or computer science.
No NSFW content.
Jokes must be in good taste. No hate speech, bigotry, etc.
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.
That’s amazing.
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.
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
Just post the external IP of your Minecraft server. We’ll help keep your system awake
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