Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
General guidance setting up make.conf for a Kabylake
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Tue Jul 04, 2017 5:42 am    Post subject: General guidance setting up make.conf for a Kabylake Reply with quote

Hi all,

getting ready to start building a system on my new Dell XPS15 9560

I have seen various wiki pages and threads about the earlier editions of this machine but I wanted to see what the community would recommend as a good bet for cflags and USE for this machine as the wiki goes as far ask Skylake.

I am out of my depth here but obviously want to draw on the experience of the community so I can get a stable build but one that gets the most out of the serious grunt that this Dell Box has.

Here is the basics:

Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
(cup family:6 model:158)

With 8 Cores I am thinking MAKEOPTS="-j9" is safe?


I take note of this from the Safe CFLAGS wiki page:
Quote:
Note
Skylake march support has been introduced with GCC 6. As Gentoo is still using an earlier version of GCC, we use -march=broadwell.


Code:
processor   : 0-7
vendor_id   : GenuineIntel
cpu family   : 6
model      : 158
model name   : Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
stepping   : 9
microcode   : 0x48
cpu MHz      : 2801.000
cache size   : 6144 KB
physical id   : 0
siblings   : 8
core id      : 3
cpu cores   : 4
apicid      : 7
initial apicid   : 7
fpu      : yes
fpu_exception   : yes
cpuid level   : 22
wp      : yes
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 pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs      :
bogomips   : 5615.92
clflush size   : 64
cache_alignment   : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:


I have 32G RAM, 1T NVMeSDD, 4K touch-display, Intel+Nvidia1050 ThunderBolt 3 (still half bandwidth)

This is the closest wiki page I have found (there are a number of reddit, Arch and Deb pages on earlier models around as well).

https://wiki.gentoo.org/wiki/Dell_XPS_15_Touch_9530

Some other info:
Code:

livecd will # lspci
00:00.0 Host bridge: Intel Corporation Device 5910 (rev 05)
00:01.0 PCI bridge: Intel Corporation Skylake PCIe Controller (x16) (rev 05)
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 05)
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-H Thermal subsystem (rev 31)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-H Serial IO I2C Controller #0 (rev 31)
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-H Serial IO I2C Controller #1 (rev 31)
00:16.0 Communication controller: Intel Corporation Sunrise Point-H CSME HECI #1 (rev 31)
00:17.0 SATA controller: Intel Corporation Sunrise Point-H SATA Controller [AHCI mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #1 (rev f1)
00:1c.1 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #2 (rev f1)
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #9 (rev f1)
00:1d.4 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #13 (rev f1)
00:1d.6 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #15 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-H LPC Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-H PMC (rev 31)
00:1f.3 Audio device: Intel Corporation Device a171 (rev 31)
00:1f.4 SMBus: Intel Corporation Sunrise Point-H SMBus (rev 31)
01:00.0 3D controller: NVIDIA Corporation Device 1c8d (rev a1)
02:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)
04:00.0 Non-Volatile memory controller: Device 1c5c:1285
06:00.0 PCI bridge: Intel Corporation DSL5110 Thunderbolt Bridge [Falcon Ridge LP 2014]
07:00.0 PCI bridge: Intel Corporation DSL5110 Thunderbolt Bridge [Falcon Ridge LP 2014]
07:01.0 PCI bridge: Intel Corporation DSL5110 Thunderbolt Bridge [Falcon Ridge LP 2014]
07:02.0 PCI bridge: Intel Corporation DSL5110 Thunderbolt Bridge [Falcon Ridge LP 2014]
0a:00.0 USB controller: Intel Corporation Device 15b5


Code:
livecd will # lsusb
Bus 004 Device 003: ID 0bda:8153 Realtek Semiconductor Corp.
Bus 004 Device 002: ID 05e3:0617 Genesys Logic, Inc.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 0835:2a01 Action Star Enterprise Co., Ltd
Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 04f3:24a0 Elan Microelectronics Corp.
Bus 001 Device 005: ID 138a:0091 Validity Sensors, Inc.
Bus 001 Device 004: ID 0cf3:e300 Atheros Communications, Inc.
Bus 001 Device 003: ID 13fe:1d23 Kingston Technology Company Inc.
Bus 001 Device 007: ID 0c45:6713 Microdia
Bus 001 Device 002: ID 05dc:a209 Lexar Media, Inc. JumpDrive S70
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
livecd will #


Anything else I need to post to work out the best fit for this new baby of mine?

TIA
\\'
_________________
]8P
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2613

PostPosted: Tue Jul 04, 2017 7:06 am    Post subject: Reply with quote

Don't forget to run cpuid2cpuflags.
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Tue Jul 04, 2017 7:15 am    Post subject: Reply with quote

Thanks for the tip!
_________________
]8P
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2613

PostPosted: Tue Jul 04, 2017 7:32 am    Post subject: Re: General guidance setting up make.conf for a Kabylake Reply with quote

stardotstar wrote:

With 8 Cores I am thinking MAKEOPTS="-j9" is safe?

See the "See also" section of the MAKEOPTS wiki article.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Tue Jul 04, 2017 9:10 am    Post subject: Reply with quote

stardotstar,

It may be worth moving to gcc-6. Its in testing now. As it understands your CPU, it may well provide better performance than gcc-5.x

There are a few things that will not build with gcc-6 or need patches, or both but its possible to switch to gcc-5 for those. The output code is compatible.
Depending on the packages you use, you may never hit a problem. Keep an eye on sys-devel/gcc-6 porting.
All the bugs not crossed off are preventing gcc-6 from being stabilised.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Tue Jul 04, 2017 9:12 am    Post subject: Reply with quote

Great advice, thanks.
And this from that :)
https://blogs.gentoo.org/ago/2013/01/14/makeopts-jcore-1-is-not-the-best-optimization/



Thanks NeddySeagoon, that is a good and useful aspect of my project - I will do as you suggest and hopefully provide some feedback from it.

W
_________________
]8P


Last edited by stardotstar on Tue Jul 04, 2017 9:29 am; edited 1 time in total
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Tue Jul 04, 2017 9:29 am    Post subject: Reply with quote

So...

Code:
>>> Installing (1 of 1) app-portage/cpuinfo2cpuflags-2::gentoo


and I get the following recommended flags:

Code:
livecd portage # cpuinfo2cpuflags-x86
CPU_FLAGS_X86: aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3


and thus my make.conf currently looks thusly:

Code:
livecd portage # cat make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=broadwell -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.
USE="bindist"
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
# MAKEOPTS based on number of cores - we have 8
MAKEOPTS="-j8"

GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo ftp://ftp.swin.edu.au/gentoo rsync://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/"


Do you guys concur and recommend I proceed with the install from chroot?

W
_________________
]8P
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Tue Jul 04, 2017 9:54 am    Post subject: Reply with quote

stardotstar,

Code:
USE="bindist"
Think about that. That builds your binaries so that you may distribute the results.
Firefox and Thunderbird will be renamed and have their logs changed.
Other possibly patent encumbered code will not be built. That use flag has nothing to do with using prebuilt binaries.

Your make.conf alone is not overly useful. The output of
Code:
emerge --info
includes all the settings inherited from your profile and provides a more complete picture of your setup.

Code:
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
are all default settings and need not be included in make.conf
They only need to be included if you want to move those locations.

To test, comment them out and look at your
Code:
emerge --info

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2613

PostPosted: Tue Jul 04, 2017 10:13 am    Post subject: Reply with quote

There is still too much confusing stuff in the make.conf file which comes with stage 3 and Gentoo Handbook is not very clear about what's really needed.
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Tue Jul 04, 2017 10:17 am    Post subject: Reply with quote

...Yes... Thinking about that - it's just how the make.conf file came packaged... Why would such an inappropriate example be shipped? (not trying to be smart)

The only change I made was the march to broadwell (from the skylake info) assuming that is as recent as I can choose (??) for Kabylake?

here is my emerge --info

Code:
(chroot) livecd / # emerge --info
Portage 2.3.6 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r4, 4.5.2-aufs-r1 x86_64)
=================================================================
System uname: Linux-4.5.2-aufs-r1-x86_64-Intel-R-_Core-TM-_i7-7700HQ_CPU_@_2.80GHz-with-gentoo-2.3
KiB Mem:    32671756 total,  26564004 free
KiB Swap:   29296636 total,  29296636 free
Timestamp of repository gentoo: Tue, 04 Jul 2017 09:30:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.26.3::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15-r2::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=broadwell -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=broadwell -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo ftp://ftp.swin.edu.au/gentoo rsync://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg kde kipi kwallet lcms ldap libnotify mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Could you please suggest a safe set of USE flags to proceed? I'm not afraid of the research and study to ensure I grok it myself but I know that is only going to come with time and so I need to know if I can proceed with the Handbook and a good basic config...

Code:
(chroot) livecd /etc/portage # cat make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=broadwell -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.
USE="bindist"
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
#PORTDIR="/usr/portage"
#DISTDIR="${PORTDIR}/distfiles"
#PKGDIR="${PORTDIR}/packages"
# MAKEOPTS based on number of cores - we have 8
MAKEOPTS="-j8"



thank you NS I appreciate the Socratic approach and assistance in getting this right :)
Will
_________________
]8P
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2613

PostPosted: Tue Jul 04, 2017 10:31 am    Post subject: Reply with quote

stardotstar wrote:
...Yes... Thinking about that - it's just how the make.conf file came packaged... Why would such an inappropriate example be shipped? (not trying to be smart)

The only change I made was the march to broadwell (from the skylake info) assuming that is as recent as I can choose (??) for Kabylake?
Leaving it "-march=native -O2 -pipe" should also be a good recommendation. Make sure you have
/etc/portage/make.conf:
CFLAGS
CXXFLAGS
MAKEOPTS
CPU_FLAGS_X86
all with correct values and toss all the other cruft. Anything else can be (re-)added later.
Do not add any USE flags without a need. To see which USE flags are already enabled by your profile, check
Code:
portageq envvar USE | xargs -n 1

Edit:
For a recommendation see this example.

Edit.:
Same with FEATURES:
Code:
portageq envvar FEATURES | xargs -n 1


Last edited by charles17 on Tue Jul 04, 2017 10:38 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Tue Jul 04, 2017 10:34 am    Post subject: Reply with quote

stardotstar,

Your profile, default/linux/amd64/13.0/desktop/plasma, provides a 'safe' set of USE flags.
Any fine tuning you choose to do is supposed to be personal preference. You should not need changes to be able to install your plasma desktop.
You might, but that's a different story.

Shipping USE=bindist prevents careless users having legal issues should they share binaries and perhaps involving Gentoo itself, so its a (legally) safe setting.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Tue Jul 04, 2017 12:25 pm    Post subject: Reply with quote

OK, thanks for your patience guys, this is all making sense.

Here is my current make.conf

Code:
(chroot) livecd /usr/src/linux # nano -w /etc/portage/make.conf
(chroot) livecd /usr/src/linux # cat !$
cat /etc/portage/make.conf
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
MAKEOPTS="-j8"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo ftp://ftp.swin.edu.au/gentoo rsync://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/"


I will now leave it at that and try to roll a working kernel using the hints from the LiveCD booted environment.

I put in lspci

Code:
(chroot) livecd /usr/src/linux # lspci
00:00.0 Host bridge: Intel Corporation Device 5910 (rev 05)
00:01.0 PCI bridge: Intel Corporation Skylake PCIe Controller (x16) (rev 05)
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 05)
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-H Thermal subsystem (rev 31)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-H Serial IO I2C Controller #0 (rev 31)
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-H Serial IO I2C Controller #1 (rev 31)
00:16.0 Communication controller: Intel Corporation Sunrise Point-H CSME HECI #1 (rev 31)
00:17.0 SATA controller: Intel Corporation Sunrise Point-H SATA Controller [AHCI mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #1 (rev f1)
00:1c.1 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #2 (rev f1)
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #9 (rev f1)
00:1d.4 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #13 (rev f1)
00:1d.6 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #15 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-H LPC Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-H PMC (rev 31)
00:1f.3 Audio device: Intel Corporation Device a171 (rev 31)
00:1f.4 SMBus: Intel Corporation Sunrise Point-H SMBus (rev 31)
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
02:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)
04:00.0 Non-Volatile memory controller: Device 1c5c:1285
06:00.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine Ridge 2C 2015]
07:00.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine Ridge 2C 2015]
07:01.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine Ridge 2C 2015]
07:02.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine Ridge 2C 2015]
0a:00.0 USB controller: Intel Corporation DSL6340 USB 3.1 Controller [Alpine Ridge]


and lsmod should help me get through the forest of trees for the first time in 7 years :)

Code:
(chroot) livecd /usr/src/linux # lsmod
Module                  Size  Used by
arc4                    2112  2
ipv6                  291888  28
binfmt_misc             6632  1
x86_pkg_temp_thermal     5345  0
coretemp                5884  0
ath10k_pci             27766  0
kvm_intel             159209  0
ath10k_core           190808  1 ath10k_pci
kvm                   298938  1 kvm_intel
ath                    19666  1 ath10k_core
irqbypass               3455  1 kvm
dcdbas                  6179  0
dell_wmi                3038  0
sparse_keymap           3836  1 dell_wmi
mac80211              346581  1 ath10k_core
cdc_ether               5546  0
btusb                  26201  0
crct10dif_pclmul        5269  0
cfg80211              221714  3 ath,mac80211,ath10k_core
nouveau              1319993  0
usbnet                 24947  1 cdc_ether
crc32_pclmul            2918  0
btrtl                   3752  1 btusb
uvcvideo               64661  0
thermal                 9500  0
mxm_wmi                 2077  1 nouveau
btbcm                   6872  1 btusb
r8152                  30702  0
joydev                  9069  0
input_leds              3054  0
videobuf2_vmalloc       4481  1 uvcvideo
btintel                 8701  1 btusb
videobuf2_memops        1980  1 videobuf2_vmalloc
crc32c_intel           12967  0
serio_raw               4762  0
pcspkr                  2094  0
ghash_clmulni_intel     3933  0
videobuf2_v4l2         13951  1 uvcvideo
bluetooth             290130  5 btbcm,btrtl,btusb,btintel
i915                  962368  0
videodev              123502  2 uvcvideo,videobuf2_v4l2
videobuf2_core         25818  2 uvcvideo,videobuf2_v4l2
ttm                    76657  1 nouveau
acpi_cpufreq            7098  0
rfkill                 12435  5 cfg80211,bluetooth
nvme                   45185  4
drm_kms_helper        107490  2 i915,nouveau
i2c_i801               10796  0
dell_smo8800            3394  0
drm                   304875  4 ttm,i915,drm_kms_helper,nouveau
processor              26136  9 acpi_cpufreq
wmi                     8928  3 dell_wmi,mxm_wmi,nouveau
aesni_intel           158765  0
lrw                     4006  1 aesni_intel
glue_helper             4963  1 aesni_intel
ablk_helper             2845  1 aesni_intel
cryptd                  8905  3 ghash_clmulni_intel,aesni_intel,ablk_helper
aes_x86_64              7915  1 aesni_intel
iscsi_tcp               8863  0
libiscsi_tcp           14338  1 iscsi_tcp
libiscsi               39895  2 libiscsi_tcp,iscsi_tcp
scsi_transport_iscsi    82684  2 iscsi_tcp,libiscsi
vmxnet3                36049  0
virtio_net             18731  0
tg3                   130772  0
libphy                 36892  1 tg3
sky2                   43921  0
r8169                  60733  0
pcnet32                30351  0
mii                     4846  4 r8152,r8169,usbnet,pcnet32
igb                   124603  0
ptp                    10627  2 igb,tg3
pps_core                7313  1 ptp
i2c_algo_bit            5403  3 igb,i915,nouveau
dca                     6514  1 igb
e1000                  90876  0
bnx2                   66331  0
atl1c                  29626  0
fuse                   73787  1
zfs                  2632683  0
zunicode              316308  1 zfs
zcommon                38795  1 zfs
znvpair                48093  2 zfs,zcommon
spl                    67243  3 zfs,zcommon,znvpair
zavl                    5009  1 zfs
nfs                   138649  0
lockd                  57396  1 nfs
grace                   2571  1 lockd
sunrpc                202691  2 nfs,lockd
btrfs                 798022  0
zlib_deflate           19082  2 spl,btrfs
multipath               5522  0
linear                  3287  0
raid10                 34066  0
raid1                  25215  0
raid0                   5989  0
dm_raid                15945  0
raid456                71264  1 dm_raid
async_raid6_recov       1880  1 raid456
async_memcpy            1880  1 raid456
async_pq                4732  1 raid456
async_xor               3643  2 async_pq,raid456
async_tx                2764  5 async_pq,raid456,async_xor,async_memcpy,async_raid6_recov
xor                    10372  2 btrfs,async_xor
raid6_pq               96203  4 async_pq,raid456,btrfs,async_raid6_recov
dm_snapshot            27173  0
dm_bufio               18787  1 dm_snapshot
dm_crypt               16594  0
dm_mirror              12069  0
dm_region_hash         10098  1 dm_mirror
dm_log                  8411  2 dm_region_hash,dm_mirror
dm_mod                 86120  6 dm_raid,dm_log,dm_mirror,dm_bufio,dm_crypt,dm_snapshot
firewire_core          51706  0
hid_sunplus             1822  0
hid_sony               13627  0
hid_samsung             3170  0
hid_pl                  2644  0
hid_petalynx            2303  0
hid_monterey            1886  0
hid_microsoft           3673  0
hid_gyration            2427  0
hid_ezkey               1751  0
hid_cypress             2143  0
hid_chicony             2727  0
hid_cherry              1886  0
hid_belkin              1967  0
hid_a4tech              2103  0
sl811_hcd              11962  0
usb_storage            51025  2
aic94xx                65279  0
libsas                 57895  1 aic94xx
lpfc                  550556  0
qla2xxx               521168  0
megaraid_sas           95188  0
megaraid_mbox          25720  0
megaraid_mm             8133  1 megaraid_mbox
megaraid               36517  0
aacraid                75762  0
sx8                    12354  0
DAC960                 63203  0
hpsa                   74913  0
cciss                  46510  0
3w_9xxx                30140  0
3w_xxxx                21364  0
3w_sas                 19032  0
mptsas                 34153  0
mptfc                  11161  0
scsi_transport_fc      46748  3 lpfc,qla2xxx,mptfc
mptspi                 11827  0
mptscsih               21093  3 mptfc,mptsas,mptspi
mptbase                63323  4 mptfc,mptsas,mptspi,mptscsih
atp870u                16936  0
dc395x                 27696  0
qla1280                20672  0
dmx3191d               10401  0
sym53c8xx              63693  0
gdth                   74460  0
advansys               44102  0
initio                 15050  0
BusLogic               20437  0
arcmsr                 32381  0
aic7xxx               104318  0
aic79xx               107773  0
scsi_transport_spi     20297  5 mptspi,sym53c8xx,aic79xx,aic7xxx,dmx3191d
sg                     23717  0
pdc_adma                5891  0
sata_inic162x           7120  0
sata_mv                24780  0
ata_piix               25755  0
ahci                   26978  0
libahci                24185  1 ahci
sata_qstor              5758  0
sata_vsc                4619  0
sata_uli                3519  0
sata_sis                4133  0
sata_sx4                8528  0
sata_nv                19873  0
sata_via                8779  0
sata_svw                4936  0
sata_sil24             10930  0
sata_sil                8093  0
sata_promise           10478  0
pata_sl82c105           4285  0
pata_via                9454  0
pata_jmicron            2919  0
pata_marvell            3468  0
pata_sis               12355  1 sata_sis
pata_netcell            2776  0
pata_pdc202xx_old       5091  0
pata_triflex            3786  0
pata_atiixp             5223  0
pata_amd               11383  0
pata_ali               10376  0
pata_it8213             4154  0
pata_pcmcia            10313  0
pcmcia                 33206  1 pata_pcmcia
pcmcia_core            14891  1 pcmcia
pata_ns87415            3768  0
pata_ns87410            3446  0
pata_serverworks        6296  0
pata_artop              5653  0
pata_it821x             9591  0
pata_hpt3x2n            6095  0
pata_hpt3x3             3697  0
pata_hpt37x            12553  0
pata_hpt366             5583  0
pata_cmd64x             7638  0
pata_efar               4315  0
pata_rz1000             3302  0
pata_sil680             5398  0
pata_radisys            3586  0
pata_pdc2027x           7130  0
pata_mpiix              3459  0

_________________
]8P
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7089
Location: Saint Amant, Acadiana

PostPosted: Tue Jul 04, 2017 12:35 pm    Post subject: Reply with quote

Code:
lspci -knn

This will tell you what driver is in use and also the PCI ID, you can look up drivers on cateee.net by PCI ID.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Tue Jul 04, 2017 12:52 pm    Post subject: Reply with quote

Thanks Jaglover!

Code:
(chroot) livecd /usr/src/linux # lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation Device [8086:5910] (rev 05)
   Subsystem: Dell Device [1028:07be]
lspci: Unable to load libkmod resources: error -12
00:01.0 PCI bridge [0604]: Intel Corporation Skylake PCIe Controller (x16) [8086:1901] (rev 05)
   Kernel driver in use: pcieport
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:591b] (rev 04)
   Subsystem: Dell Device [1028:07be]
00:04.0 Signal processing controller [1180]: Intel Corporation Skylake Processor Thermal Subsystem [8086:1903] (rev 05)
   Subsystem: Dell Skylake Processor Thermal Subsystem [1028:07be]
00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller [8086:a12f] (rev 31)
   Subsystem: Dell Sunrise Point-H USB 3.0 xHCI Controller [1028:07be]
   Kernel driver in use: xhci_hcd
00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-H Thermal subsystem [8086:a131] (rev 31)
   Subsystem: Dell Sunrise Point-H Thermal subsystem [1028:07be]
00:15.0 Signal processing controller [1180]: Intel Corporation Sunrise Point-H Serial IO I2C Controller #0 [8086:a160] (rev 31)
   Subsystem: Dell Sunrise Point-H Serial IO I2C Controller [1028:07be]
00:15.1 Signal processing controller [1180]: Intel Corporation Sunrise Point-H Serial IO I2C Controller #1 [8086:a161] (rev 31)
   Subsystem: Dell Sunrise Point-H Serial IO I2C Controller [1028:07be]
00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-H CSME HECI #1 [8086:a13a] (rev 31)
   Subsystem: Dell Sunrise Point-H CSME HECI [1028:07be]
00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-H SATA Controller [AHCI mode] [8086:a103] (rev 31)
   Subsystem: Dell Sunrise Point-H SATA Controller [AHCI mode] [1028:07be]
   Kernel driver in use: ahci
00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #1 [8086:a110] (rev f1)
   Kernel driver in use: pcieport
00:1c.1 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #2 [8086:a111] (rev f1)
   Kernel driver in use: pcieport
00:1d.0 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #9 [8086:a118] (rev f1)
   Kernel driver in use: pcieport
00:1d.4 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #13 [8086:a11c] (rev f1)
   Kernel driver in use: pcieport
00:1d.6 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #15 [8086:a11e] (rev f1)
   Kernel driver in use: pcieport
00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-H LPC Controller [8086:a152] (rev 31)
   Subsystem: Dell Sunrise Point-H LPC Controller [1028:07be]
00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-H PMC [8086:a121] (rev 31)
   Subsystem: Dell Sunrise Point-H PMC [1028:07be]
00:1f.3 Audio device [0403]: Intel Corporation Device [8086:a171] (rev 31)
   Subsystem: Dell Device [1028:07be]
00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-H SMBus [8086:a123] (rev 31)
   Subsystem: Dell Sunrise Point-H SMBus [1028:07be]
   Kernel driver in use: i801_smbus
01:00.0 3D controller [0302]: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] [10de:1c8d] (rev a1)
   Subsystem: Dell GP107M [GeForce GTX 1050 Mobile] [1028:07be]
02:00.0 Network controller [0280]: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter [168c:003e] (rev 32)
   Subsystem: Bigfoot Networks, Inc. QCA6174 802.11ac Wireless Network Adapter [1a56:1535]
   Kernel driver in use: ath10k_pci
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader [10ec:525a] (rev 01)
   Subsystem: Dell RTS525A PCI Express Card Reader [1028:07be]
04:00.0 Non-Volatile memory controller [0108]: Device [1c5c:1285]
   Subsystem: Device [1c5c:0000]
   Kernel driver in use: nvme
06:00.0 PCI bridge [0604]: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine Ridge 2C 2015] [8086:1576]
   Kernel driver in use: pcieport
07:00.0 PCI bridge [0604]: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine Ridge 2C 2015] [8086:1576]
   Kernel driver in use: pcieport
07:01.0 PCI bridge [0604]: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine Ridge 2C 2015] [8086:1576]
   Kernel driver in use: pcieport
07:02.0 PCI bridge [0604]: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine Ridge 2C 2015] [8086:1576]
   Kernel driver in use: pcieport
0a:00.0 USB controller [0c03]: Intel Corporation DSL6340 USB 3.1 Controller [Alpine Ridge] [8086:15b5]
   Subsystem: Device [2222:1111]
   Kernel driver in use: xhci_hcd


I have a kernel config - making now :P
_________________
]8P
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7089
Location: Saint Amant, Acadiana

PostPosted: Tue Jul 04, 2017 1:15 pm    Post subject: Reply with quote

The kernel you are using is not very good, for instance the driver for 8086:a13a is not loaded.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Wed Jul 05, 2017 5:27 am    Post subject: Reply with quote

so... the kernel running above is the one from the live cd boot/install environment.

I'm going to add genkernel and a manual attempt and see what mileage I get.
_________________
]8P
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Wed Jul 05, 2017 8:41 am    Post subject: Reply with quote

stardotstar,

This post from 2005 is still basically correct.
There are many more options now, so you will need a lot more coffee :)

The Kernel Seeds page provide a lot more details. Thats newer but no longer maintained.
pappy_mcfae does occasionally post a new seed to a pastebin site with an announce here but its been a while. See Pappy's preconfigs!
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Wed Jul 05, 2017 9:20 am    Post subject: Reply with quote

Thanks NeddySeagoon, I've reached out to him and in the mean time I will go with genkernel because I somehow think that I'll have difficulty even getting it to boot. Gentoo is always such a humbling experience I am currently feeling like more of a noob than ever before.
_________________
]8P
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Wed Jul 05, 2017 9:32 am    Post subject: Reply with quote

stardotstar,

genkernel isn't clever. The .config in uses is static. It builds you a fully modular kernel with all the modules in the initrd.
It works for most use cases but it has to play catch up with new hardware.

Its a good get-u-going though.
You can make your own kernel later without overwriting the genkernel one, so when your kernel won't boot, (happens to everyone) you choose your genkernel kernel from the boot menu.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5838

PostPosted: Sat Jul 08, 2017 7:43 pm    Post subject: Reply with quote

NeddySeagoon wrote:
It may be worth moving to gcc-6. Its in testing now. As it understands your CPU, it may well provide better performance than gcc-5.x


-march=broadwell should be good enough until gcc gets stabilized. i have two of these and seem to be fine.

edit: -march=skylake doesn't seem to work on kaby lake
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum