You are not logged in.
I want to build Linux kernel and I want to choose Processor family for Intel Pentium N3520. I am not sure to choose between Core 2/newer Xeon and Intel Atom.
$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 55
Model name: Intel(R) Pentium(R) CPU N3520 @ 2.16GHz
Stepping: 3
CPU MHz: 550.333
CPU max MHz: 2415.7000
CPU min MHz: 499.8000
BogoMIPS: 4326.40
Virtualization: VT-x
L1d cache: 24K
L1i cache: 32K
L2 cache: 1024K
NUMA node0 CPU(s): 0-3
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer rdrand lahf_lm 3dnowprefetch ida arat epb dtherm tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms$ lspci -k
00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register (rev 0c)
Subsystem: ASUSTeK Computer Inc. Device 15bd
Kernel driver in use: iosf_mbi_pci
Kernel modules: iosf_mbi
00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0c)
Subsystem: ASUSTeK Computer Inc. Device 15bd
Kernel driver in use: i915
Kernel modules: i915
00:13.0 SATA controller: Intel Corporation Atom Processor E3800 Series SATA AHCI Controller (rev 0c)
Subsystem: ASUSTeK Computer Inc. Device 15bd
Kernel driver in use: ahci
Kernel modules: ahci
00:14.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series USB xHCI (rev 0c)
Subsystem: ASUSTeK Computer Inc. Device 15bd
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine (rev 0c)
Subsystem: ASUSTeK Computer Inc. Device 15bd
Kernel driver in use: mei_txe
Kernel modules: mei_txe
00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller (rev 0c)
Subsystem: ASUSTeK Computer Inc. Device 15bd
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 1 (rev 0c)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.1 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 2 (rev 0c)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.3 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 4 (rev 0c)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Control Unit (rev 0c)
Subsystem: ASUSTeK Computer Inc. Device 15bd
Kernel driver in use: lpc_ich
Kernel modules: lpc_ich
00:1f.3 SMBus: Intel Corporation Atom Processor E3800 Series SMBus Controller (rev 0c)
Subsystem: ASUSTeK Computer Inc. Device 15bd
Kernel modules: i2c_i801
02:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01)
Subsystem: AzureWave Device 2130
Kernel driver in use: ath9k
Kernel modules: ath9k
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5286 (rev 01)
Subsystem: Realtek Semiconductor Co., Ltd. Device 5286
Kernel driver in use: rtsx_pci
Kernel modules: rtsx_pci
03:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 06)
Subsystem: ASUSTeK Computer Inc. Device 200f
Kernel driver in use: r8169
Kernel modules: r8169Normally I will choose Core 2/newer Xeon but I see that are loaded modules with Atom. What processor family I should select?
Offline
Post the output of:
gcc -c -Q -march=native --help=target | grep marchNormally I will choose Core 2/newer Xeon but I see that are loaded modules with Atom. What processor family I should select?
Also know that the range of gcc-specific options in the kernel is very narrow; you can consider this patch to allow a wider range of options.
Last edited by graysky (2016-02-13 11:53:00)
Offline
Definitely choose Core2. The Atom option is for the old crappy in-order-execution Atoms (Diamondville, Pineview, Cedarview). But the Pentium N3520 (Baytrail) is an out-of-order execution design, quite different and tons better than those old Atoms.
Offline
Post the output of:
gcc -c -Q -march=native --help=target | grep march
$ gcc -c -Q -march=native --help=target | grep march
-march= silvermontRight now I take Gusar suggestion and select Core2.
Offline
@peer - Apply the patch I linked and compile with silvermont option which has been included quite some time ago.
Offline