LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-16-2018, 12:34 AM   #1
unseengundam
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Rep: Reputation: 0
How well does Linux handle AMD Ryzen CPU Power Management?


I am thinking about building a linux Server on Ryzen, probably on CentOS.

I need to how well can linux handle power states and scaling Ryzen CPU frequency on demand. Can it drop Ryzen to low clock speed when idle, handle light and medium load, plus boost to max frequency on high loads.

Looks like AMD Ryzen has 'SenseMI' power management feature set including 'Pure Power', 'Precision Boost', 'Extended Frequency Range (XFR)'. Any idea of any or all of these features will work on Linux or CentOS?
 
Old 08-08-2018, 02:06 AM   #2
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Rep: Reputation: 58
check what kernel version CentOS is using?

check that kernel version on www.kernel.org or rather search on google for help on "kernel power settings"

YOU DO HAVE TO BE SURE it works before trying it. don't try it until your sure it can't burn up your new chip unless you got "insurance" plan on it at the store. if your chip's power isn't yet supported, if it doesn't have automatic powersaving like intel's chips (i don't know), if you do run it until it overheats running desktop apps: it will burn a hole through it and you'll smell it.

https://wiki.gentoo.org/wiki/Ryzen

for a new fast pc with a gaming video card: consider running win10 and virtualizing linux, because win10 will run all your new hardware very well and linux will lack in support

i can guarantee you if your MB comes with a speed step program for win10 that it works "better than linux's" and supports more features.

however: linux's works sufficiently well on many machines

--------------------------------------
Linux/x86 4.16.12-pm Kernel Configuration

??? Power management and ACPI options ??????????????????????????????????????Ŀ
? ?
? [ ] Suspend to RAM and standby ?
? [ ] Hibernation (aka 'suspend to disk') ?
?[*] Device power management core functionality ?
? [ ] Power Management Debug Support ?
? [ ] Enable workqueue power-efficient mode by default ?
?[*] ACPI (Advanced Configuration and Power Interface) Support ---> ?
? [ ] SFI (Simple Firmware Interface) Support ---- ?
? CPU Frequency scaling ---> ?
? CPU Idle ---> ?
?[*] Cpuidle Driver for Intel Processors ?


??? CPU Frequency scaling ??????????????????????????????????????????????????Ŀ
? ?
?[*] CPU Frequency scaling ?
? [ ] CPU frequency transition statistics (NEW) ?
? Default CPUFreq governor (performance) ---> ?
? -*- 'performance' governor ?
? < > 'powersave' governor (NEW) ?
? < > 'userspace' governor for userspace frequency scaling (NEW) ?
? < > 'ondemand' cpufreq policy governor (NEW) ?
? < > 'conservative' cpufreq governor (NEW) ?
? [ ] 'schedutil' cpufreq policy governor (NEW) ?
? *** CPU frequency scaling drivers *** ?
? [ ] Intel P state control (NEW) ?
? < > Processor Clocking Control interface driver (NEW) ?
? < > ACPI Processor P-States driver (NEW) ?
? < > AMD Mobile K6-2/K6-3 PowerNow! (NEW) ?
? < > AMD Mobile Athlon/Duron PowerNow! (NEW) ?
? < > Cyrix MediaGX/NatSemi Geode Suspend Modulation (NEW) ?
? < > Intel Enhanced SpeedStep (deprecated) (NEW) ?
? < > Intel Pentium 4 clock modulation (NEW) ?
? < > nVidia nForce2 FSB changing (NEW) ?
? < > Transmeta LongRun (NEW) ?
? < > VIA Cyrix III Longhaul (NEW) ?
? < > VIA C7 Enhanced PowerSaver (DANGEROUS) (NEW) ?
? *** shared options *** ?

next realize that your AMD "hopefully" is one of the above meaning that the support for the above includes your processor. but you need to check. does your chip support PowerNow! ?

AMD ACPI2Platform devices support ?

Pentium-4/Celeron(P4-based)/Pentium-4 M/older Xeon ?
? K6/K6-II/K6-III ?
? Athlon/Duron/K7 ?
? Opteron/Athlon64/Hammer/K8 ?
? Crusoe

realize here that you have to ask if your chip is supported by one of the above

also realize to get power savings working, whoever made your kernel had to compile features as "module" (built-in if necessary). they may have (they try to).

if any power savings features are "module" you need to make sure you load the module if your os doesn't do that automaticall

for that: you need to read your OS's documentation

PRETTY MUCH: your gonna have to hear if someone else has tried it and it's working or find something on google.

OR: you can get the kernel source code or manuals and see if they mention your chips specifically (and then also: if power scaling works as well)

but don't guess or hope. run win10 if your doing that. because it's a new new chip.

amd's website should have a "white sheet" or whitepaper on it. that may tell you if your chip SPECIFICALLY supports "powernow!" mostly you want to know if Ryzen has a "limit" mechanism that IGNORES windows 10 and linux and throttles if these try to burn it (some not-unlocked intel models do this). how fast can a chip melt? depends. possibly seconds if run incorrectly without throttling.

https://wiki.gentoo.org/wiki/Ryzen

Kernel 4.11.0 is supposed to have Ryzen support

however: who's to know if CentOS enabled it for the image you downloaded. you have to check.

https://www.tomshardware.com/reviews...en,5011-2.html

tom's suggests you may be able to "lock in your settings by your bios" (preffered on very new systems). if your bios supports it.

Raise it to overclock your CPU. Be careful, though. When the ratio is not set to Auto, AMD's XFR technology is deactivated. The processor switches automatically to overclocking mode and all power-saving features are deactivated.

do you see what i mean? be careful. you chip can be melted. likely it would take minutes not seconds if i have to guess, likely your safe to boot linux.

better safe than sorry: lock your cpu speed in bios (if it assures you it is infact locked from linux, which it may not). boot and check if scaling is available. if you can't do that: ...

i don't know. it's your money i have no idea if you can't afford to loose your newest chip

Last edited by X-LFS-2010; 08-08-2018 at 02:24 AM.
 
Old 08-08-2018, 02:27 AM   #3
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Rep: Reputation: 58
Ryzen 5 1400 4 / 8 3.2 GHz 3.4 GHz 8 MB 65W CnQ, Unlock >
Ryzen 5 2400GE 4 / 8 3.2 GHz 3.8 GHz 4 MB 35W CnQ, Unlock >
Ryzen 5 2400G 4 / 8 3.6 GHz 3.9 GHz 4 MB 65W CnQ, Unlock $169 >
Ryzen 5 1500X 4 / 8 3.5 GHz 3.7 GHz 16 MB 65W CnQ, Unlock $174 >
Ryzen 5 2600E 6 / 12 3.1 GHz 16 MB 45W CnQ
Ryzen 5 1600 6 / 12 3.2 GHz 3.6 GHz 16 MB 65W CnQ, Unlock $189 >
Ryzen 5 2600 6 / 12 3.4 GHz 3.9 GHz 16 MB 65W CnQ, Unlock $199 >
Ryzen 5 1600X 6 / 12 3.6 GHz 4 GHz 16 MB 95W CnQ, Unlock >
Ryzen 5 2600X 6 / 12 3.6 GHz 4.2 GHz 16 MB 95W CnQ, Unlock $249 >
Other families, Zen+ micro-architecture, Socket AM4
Ryzen 5 PRO 2600 (PRO) 6 / 12 3.4 GHz 16 MB 65W CnQ >
Ryzen 7 2700E 8 / 16 2.8 GHz 16 MB 45W CnQ >
Ryzen 7 PRO 2700 (PRO) 8 / 16 3.2 GHz 16 MB 65W CnQ >
Ryzen 7 PRO 2700X (PRO) 8 / 16 3.6 GHz 16 MB 95W CnQ >
Ryzen 7 2700 8 / 16 3.2 GHz 4.1 GHz 16 MB 65W CnQ, Unlock $299 >
Ryzen 7 2700X 8 / 16 3.7 GHz 4.3 GHz 16 MB 105W CnQ, Unlock $369


CnQ means "cool&quiet"/powernow according to "cpuworld". note how some models can run unlocked, others not.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Overclock Your AMD Ryzen CPU On Linux LXer Syndicated Linux News 0 08-31-2017 03:02 PM
LXer: Monitor AMD Ryzen Temperatures In Linux with latest kernel modules LXer Syndicated Linux News 0 07-21-2017 07:33 AM
LXer: AMD graphics cards, Linux basic power management LXer Syndicated Linux News 0 06-29-2013 07:30 AM
NEW USER: GNOME power management/cpu scaling smiley_lauf Mandriva 0 03-30-2006 08:30 AM
Enabling power save/power management/cpu freq scaling features for a Debian system zero79 Debian 0 12-19-2004 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration