Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-28-2022, 01:18 AM
|
#1
|
Member
Registered: Mar 2022
Posts: 220
Rep:
|
Ryzen 5 5600G - Kernel - Processor family - Generic-x86-64?
Hello,
For compiling kernel support for the Ryzen 5 5600G, is it better to use Opteron/Athlon64/Hammer/K8, or Generic-x86-64?
THANKS
|
|
|
04-28-2022, 02:29 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,543
|
[obviously] better to use amd specific settings. I think it is very well documented.
|
|
|
04-28-2022, 03:55 AM
|
#3
|
Member
Registered: May 2019
Posts: 265
Rep: 
|
Quote:
Originally Posted by pan64
[obviously] better to use amd specific settings. I think it is very well documented.
|
But which one is the amd specific option though? At least for intel it is more clear, either it is atom or duo core and above.
At least I select generic, and it works well for both Intel and AMD.
|
|
|
04-28-2022, 07:30 PM
|
#4
|
Member
Registered: Mar 2022
Posts: 220
Original Poster
Rep:
|
I think this is odd in the Kernel development that later AMD ARCH are not being listed, because Zen 3 is Ryzen 5000, and I would of assumed, when the kernel was updated the latest AMD ARCH Zen would be listed.
Ryzen is not a Opteron/Athlon64/Hammer/K8.
By chance, anyone using the Zen Kernel in Slack?
https://github.com/zen-kernel/zen-kernel
Last edited by SlackIT; 04-28-2022 at 07:35 PM.
|
|
|
04-28-2022, 11:15 PM
|
#5
|
Member
Registered: Jan 2010
Location: Malang, +62
Distribution: slackware
Posts: 201
Rep:
|
All AMD Zen CPU should use generic x86_64.
If you are looking for optimization for specific cpu feature, then it should be in the compiler (GCC/CLANG/LIBC). Meaning that you will have to rebuild your system to use CPU specific optimization flags for the compiler.
Last edited by walecha; 04-28-2022 at 11:21 PM.
|
|
|
04-29-2022, 03:05 AM
|
#6
|
Member
Registered: Mar 2022
Posts: 220
Original Poster
Rep:
|
Quote:
Originally Posted by walecha
All AMD Zen CPU should use generic x86_64.
If you are looking for optimization for specific cpu feature, then it should be in the compiler (GCC/CLANG/LIBC). Meaning that you will have to rebuild your system to use CPU specific optimization flags for the compiler.
|
generic x86_64 hmm
Last edited by SlackIT; 05-09-2022 at 10:50 PM.
|
|
|
05-09-2022, 10:50 PM
|
#7
|
Member
Registered: Mar 2022
Posts: 220
Original Poster
Rep:
|
Well, to be honest, when I look over the replies, one says it's better to go AMD, another says to go Generic...
Hmm
What say anyone else?
THANKS
|
|
|
05-10-2022, 12:38 AM
|
#8
|
Member
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773
|
Hmmmm... since you have the time
Why not run some stress tests on different compiled kernels to see what - if any? - difference it makes?
As you got different answers to OP, apparently we could all learn a bit from it... 
|
|
|
05-10-2022, 12:51 AM
|
#9
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,543
|
when you compile your kernel the compiler will automatically compile for the given host, will automatically select the best options. So you don't really have to deal with it. But if you want to compile for a different host you need to specify it.
the flag Opteron/Athlon64/Hammer/K8 is used to compile for K8 family CPUs, which is quite outdated nowadays (and actually will switch off cpu auto-detection).
|
|
|
05-10-2022, 01:08 AM
|
#10
|
Member
Registered: Mar 2022
Posts: 220
Original Poster
Rep:
|
Quote:
Originally Posted by pan64
when you compile your kernel the compiler will automatically compile for the given host, will automatically select the best options. So you don't really have to deal with it. But if you want to compile for a different host you need to specify it.
the flag Opteron/Athlon64/Hammer/K8 is used to compile for K8 family CPUs, which is quite outdated nowadays (and actually will switch off cpu auto-detection).
|
Ok, I just went with generic x86_64.
THANKS
|
|
|
All times are GMT -5. The time now is 08:05 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|