this post was submitted on 07 Sep 2023
34 points (97.2% liked)

Linux

45479 readers
1304 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I undervolted my CPU about a year ago and haven't had any issues with it till now. I've been dual booting Linux recently and noticed whenever I was in Linux it would crash/reboot after a couple of hours or less of using it. I noticed the behavior was similar to when I set the voltages too low when initially setting up the undervolt so I disabled it and haven't had any crashed since. Any idea why it would be stable on Windows but not Linux? I tried a couple of different distros as well. I'll probably just raise the voltage until I get it stable again but I'm interested to know what could cause this! If its relevant my CPU is a Ryzen 7 3800x

top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 9 points 9 months ago (1 children)

What kernel version are you running? I'm no expert but I'm pretty sure that Windows and Linux handle Ryzen power states differently, as there have been some changes to the kernel recently to improve power state handling on AMD. I don't know whether the latest kernel would fix the issue but might be worth a try to rule that out.

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

I'm on 6.4.12 so not the very latest but close. You did make me think to check the CPU frequency scaling though and I've spotted a couple of things it could be. I seem to be using the acpi-cpufreq driver rather than amd_pstate, not sure if its worth switching over? It also seems to be set to keep the frequency between 2.2-3.9GHz whereas on Windows my CPU almost always boosts to around 4.2-4.3. I might change that if I notice any performance issues but tbh I might leave it for now and see how things go. It might run a bit cooler if its not always boosting and I can probably still undervolt just not by as much

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

It might run a bit cooler if its not always boosting

I've heard that amd_pstate is a lot more power efficient (thus cooler) compared to acpi.

Like I believe amd_pstate has a lot more states than acpi-cpufreq so it gives Linux much more granular control over the CPU's performance.

[–] [email protected] 4 points 9 months ago (1 children)

I can validate that. Switched my NAS to amd_pstate, went from 2.12 kW.h per day to 1.95 kW.h per day.

[–] [email protected] 1 points 9 months ago

hmm I might give it a try then, last time I mentioned it I was recommended to just stick with the defaults

[–] [email protected] 7 points 9 months ago

Stable overclock on windows doesnt mean it will be stable on linux. I have intel CPU, but almost the same experience. I had to find different voltage and clock (I went from 4.8 to 4.7 GHZ)