LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-28-2022, 01:18 AM   #1
SlackIT
Member
 
Registered: Mar 2022
Posts: 220

Rep: Reputation: 22
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
 
Old 04-28-2022, 02:29 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,543

Rep: Reputation: 8071Reputation: 8071Reputation: 8071Reputation: 8071Reputation: 8071Reputation: 8071Reputation: 8071Reputation: 8071Reputation: 8071Reputation: 8071Reputation: 8071
[obviously] better to use amd specific settings. I think it is very well documented.
 
Old 04-28-2022, 03:55 AM   #3
slac
Member
 
Registered: May 2019
Posts: 265

Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
[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.
 
Old 04-28-2022, 07:30 PM   #4
SlackIT
Member
 
Registered: Mar 2022
Posts: 220

Original Poster
Rep: Reputation: 22
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.
 
Old 04-28-2022, 11:15 PM   #5
walecha
Member
 
Registered: Jan 2010
Location: Malang, +62
Distribution: slackware
Posts: 201

Rep: Reputation: 66
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.
 
Old 04-29-2022, 03:05 AM   #6
SlackIT
Member
 
Registered: Mar 2022
Posts: 220

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by walecha View Post
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.
 
Old 05-09-2022, 10:50 PM   #7
SlackIT
Member
 
Registered: Mar 2022
Posts: 220

Original Poster
Rep: Reputation: 22
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
 
Old 05-10-2022, 12:38 AM   #8
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
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...
 
Old 05-10-2022, 12:51 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,543

Rep: Reputation: 8071Reputation: 8071Reputation: 8071Reputation: 8071Reputation: 8071Reputation: 8071Reputation: 8071Reputation: 8071Reputation: 8071Reputation: 8071Reputation: 8071
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).
 
Old 05-10-2022, 01:08 AM   #10
SlackIT
Member
 
Registered: Mar 2022
Posts: 220

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by pan64 View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Ryzen 5 5600G - xf86-video-amdgpu-21.0.0-x86_64-1? SlackIT Slackware 6 04-28-2022 09:29 PM
fb0: switching to amdgpudrmfb from EFI VGA on -current with 5600G downhomechunk Slackware 2 08-12-2021 07:38 AM
LXer: Overclock your AMD Ryzen Mobile on Linux with Ryzen Controller LXer Syndicated Linux News 0 08-27-2019 06:31 PM
kernel-generic and kernel-generic-smp ?? liuyug Slackware - Installation 5 06-01-2014 07:01 PM
Kernel: Processor Family Selection for Generic i686 frozenQueue Linux - Kernel 1 09-23-2010 02:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:05 PM.

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