Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel configuration on AMD FX 8350 box, cpu utilisation etc
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 451

PostPosted: Thu Dec 29, 2016 5:42 pm    Post subject: fx 8350 heating problems etc Reply with quote

Dear Folks,

I recompiled the kernel on the kaveri box while running gkrell - the maximum temperature was around 63 C running all 4 cpus at 100% load for 10 mins or so.

I am getting a clearer picture of the operation of a well optimised cooling system vs one that needs attention and what to do improve things.

I added the global use flags to make.conf for chromium and ran the following command and got some blocked packages:


Code:
rhinoceros log # emerge --ask --newuse @world

 * IMPORTANT: 16 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] app-arch/xz-utils-5.2.2  USE="static-libs*"
[ebuild  N     ] media-libs/webrtc-audio-processing-0.3  USE="static-libs" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ] net-libs/libasyncns-0.8-r3  USE="debug -doc" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ] dev-libs/libdaemon-0.14-r2  USE="static-libs -doc -examples" ABI_X86="(64) -32 (-x32)"
[ebuild   R    ] sys-apps/file-5.25  USE="static-libs*"
[ebuild   R    ] sys-apps/busybox-1.25.1  USE="debug* syslog*"
[ebuild  N     ] app-text/docbook-dsssl-stylesheets-1.79
[ebuild  N     ] app-text/docbook-sgml-dtd-4.1-r3
[ebuild  N     ] app-text/docbook-xml-simple-dtd-4.1.2.4-r2
[ebuild  N     ] app-text/docbook-sgml-dtd-3.1-r3
[ebuild  N     ] app-text/docbook-sgml-dtd-3.0-r3
[ebuild  N     ] app-text/docbook-sgml-dtd-4.0-r3
[ebuild  N     ] media-libs/libmng-2.0.2-r1  USE="lcms static-libs" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ] virtual/krb5-0-r1  ABI_X86="(64) -32 (-x32)"
[ebuild  N     ] app-doc/xmltoman-0.4
[ebuild  N     ] media-libs/libmad-0.15.1b-r8  USE="debug static-libs" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ] dev-libs/json-c-0.12  USE="static-libs -doc" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ] dev-libs/libatomic_ops-7.4.2
[ebuild  N     ] dev-python/pyxdg-0.25-r1  USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-python3_5)"
[ebuild  N     ] app-text/docbook-xml-simple-dtd-1.0-r1
[ebuild   R    ] sys-devel/binutils-2.25.1-r1  USE="static-libs*"
[ebuild   R    ] sys-devel/gcc-4.9.4  USE="debug*"
[ebuild   R    ] sys-kernel/gentoo-sources-4.1.15-r1  USE="(-kdbus%)"
[ebuild  NS    ] sys-devel/automake-1.11.6-r1 [1.14.1, 1.15]
[ebuild   R    ] sys-process/procps-3.3.12  USE="static-libs*"
[ebuild   R    ] net-misc/wget-1.18  USE="debug* gnutls*"
[ebuild  N     ] net-libs/liboauth-1.0.3  USE="bindist nss -curl -doc"
[ebuild   R    ] sys-fs/fuse-2.9.7  USE="static-libs*"
[ebuild  N     ] x11-apps/xmodmap-1.0.9
[ebuild  N     ] x11-apps/xdpyinfo-1.3.2  USE="-dga -dmx -xinerama"
[ebuild  N     ] media-fonts/cantarell-0.0.25  USE="X"
[ebuild  N     ] media-libs/libsndfile-1.0.26  USE="alsa static-libs -minimal -sqlite {-test}" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ] media-libs/sbc-1.3  USE="static-libs" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ] x11-apps/setxkbmap-1.3.1
[ebuild   R    ] net-fs/samba-4.2.11  USE="gnutls* syslog* -cups*"
[ebuild   R    ] sys-apps/lm_sensors-3.4.0_p20160725  USE="static-libs*"
[ebuild   R    ] sys-fs/ntfs3g-2016.2.22-r1  USE="debug* static-libs*"
[ebuild  N     ] gnome-base/libgtop-2.34.1  USE="introspection"
[ebuild  N     ] net-libs/rest-0.8.0  USE="introspection {-test}" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ] media-libs/grilo-0.3.2  USE="gtk introspection network -examples -playlist {-test} -vala"
[ebuild  N     ] gnome-base/libgnomekbd-3.6.0  USE="introspection {-test}"
[ebuild  N     ] dev-libs/libgdata-0.17.5  USE="crypt introspection static-libs -gnome-online-accounts {-test} -vala"
[ebuild  N     ] net-libs/telepathy-glib-0.24.1  USE="debug introspection vala {-test}" PYTHON_TARGETS="python2_7"
[ebuild  N     ] net-im/telepathy-mission-control-5.16.4  USE="debug -networkmanager"
[ebuild  NS    ] dev-python/pygobject-3.20.1 [2.28.6-r55] USE="cairo threads -examples {-test}" PYTHON_TARGETS="python2_7 python3_4 (-python3_5)"
[ebuild  NS    ] x11-libs/vte-0.44.3 [0.28.2-r207] USE="crypt debug introspection -glade -vala"
[ebuild   R    ] gnome-base/nautilus-3.20.3  USE="gnome*"
[ebuild   R    ] app-editors/emacs-24.5-r3  USE="kerberos*"
[ebuild  N     ] gnome-base/gconf-3.2.6-r4  USE="debug introspection ldap policykit" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7"
[ebuild  N     ] dev-libs/DirectFB-1.7.6  USE="X alsa debug dynload gif jpeg mad mng opengl png sdl static-libs tiff truetype vorbis zlib -bmp -cddb -divine -doc -drmkms -egl -fbcon -fusiondale -fusionsound -gles2 -gstreamer -imlib2 -input_hub -jpeg2k -mpeg2 -mpeg3 -multicore -oss -pnm -sawman (-swfdec) -timidity -tremor -v4l -vdpau -webp -xine" CPU_FLAGS_X86="mmx sse" INPUT_DEVICES="evdev -dynapro -elo2300 -joystick -keyboard -lirc -mouse -mutouch -tslib" VIDEO_CARDS="radeon -intel -mach64 -mga -neomagic (-nsc) -nvidia -r128 -s3 -sis -tdfx -via -vmware"
[ebuild   R    ] www-client/links-2.14  USE="directfb*"
[ebuild  N     ] app-text/docbook-sgml-utils-0.6.14-r1  USE="-jadetex"
[ebuild   R    ] sys-apps/openrc-0.22.4  USE="debug* static-libs*"
[ebuild  N     ] app-i18n/ibus-1.5.12  USE="X gtk gtk3 introspection nls python -deprecated -gconf {-test} -vala -wayland" PYTHON_TARGETS="python2_7"
[ebuild  N     ] net-dns/avahi-0.6.32  USE="dbus gdbm gtk introspection ipv6 nls -autoipd -bookmarks -doc -gtk3 -howl-compat -mdnsresponder-compat -mono -python -qt4 (-selinux) {-test} -utils" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7"
[ebuild   R    ] app-admin/gkrellm-2.3.5-r4  USE="gnutls*"
[ebuild   R    ] xfce-extra/xfce4-taskmanager-1.1.0  USE="debug*"
[ebuild   R    ] app-editors/mousepad-0.4.0  USE="debug*"
[ebuild   R    ] x11-terms/xfce4-terminal-0.6.3  USE="debug*"
[ebuild   R    ] xfce-base/xfwm4-4.12.3-r1  USE="debug*"
[ebuild  N     ] gnome-base/libgnome-keyring-3.12.0  USE="debug introspection {-test} -vala"
[ebuild   R    ] app-office/orage-4.12.1  USE="debug*"
[ebuild   R    ] xfce-extra/xfce4-mixer-4.11.0  USE="debug*"
[ebuild  N     ] dev-libs/libgusb-0.2.9  USE="introspection static-libs -vala" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ] net-libs/gnome-online-accounts-3.20.4  USE="debug gnome introspection kerberos"
[ebuild  N     ] sci-geosciences/geocode-glib-3.20.1  USE="introspection {-test}"
[ebuild  N     ] dev-libs/libgweather-3.20.3  USE="introspection -glade -vala"
[ebuild  N     ] gnome-extra/evolution-data-server-3.20.5  USE="berkdb gnome-online-accounts gtk introspection ipv6 kerberos ldap weather -api-doc-extras -google {-test} -vala"
[ebuild   R    ] sys-boot/grub-2.02_beta3-r1  USE="debug*"
[ebuild   R    ] app-office/libreoffice-bin-5.2.3.3  USE="gnome*"
[ebuild  N     ] sys-apps/accountsservice-0.6.42  USE="introspection -doc (-selinux) -systemd"
[ebuild  N     ] sys-fs/eudev-3.1.5  USE="hwdb introspection kmod static-libs -rule-generator (-selinux) {-test}" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ] virtual/udev-215  USE="-systemd"
[ebuild  N     ] x11-misc/colord-1.3.3  USE="gusb introspection policykit udev -argyllcms -examples -extra-print-profiles -scanner -systemd -vala" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ] x11-libs/colord-gtk-0.1.26  USE="introspection -doc -vala"
[ebuild  N     ] gnome-extra/gnome-color-manager-3.20.0  USE="(-packagekit) -raw {-test}"
[ebuild   R    ] sys-apps/util-linux-2.26.2  USE="static-libs*"
[ebuild  N     ] net-wireless/bluez-5.43  USE="debug obex readline udev -cups -deprecated -doc -experimental -extra-tools (-selinux) -systemd {-test} -test-programs" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7"
[ebuild  N     ] net-wireless/gnome-bluetooth-3.20.0  USE="debug introspection"
[ebuild  N     ] dev-libs/libinput-1.4.2  USE="{-test}" INPUT_DEVICES="-wacom"
[ebuild  N     ] x11-drivers/xf86-input-libinput-0.19.0
[ebuild  N     ] media-sound/pulseaudio-9.0  USE="X alsa alsa-plugin asyncns bluetooth caps dbus gdbm glib gnome gtk ipv6 orc ssl tcpd udev webrtc-aec zeroconf -doc -equalizer -jack (-libressl) -libsamplerate -lirc -native-headset (-neon) -ofono-headset (-oss) -qt4 -realtime (-selinux) -sox (-system-wide) -systemd {-test} -xen" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ] media-plugins/alsa-plugins-1.1.1  USE="debug pulseaudio -ffmpeg -jack -libav -libsamplerate -speex" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ] gnome-base/gnome-settings-daemon-3.20.1  USE="colord debug policykit udev -cups -networkmanager (-openrc-force) -smartcard {-test} -wayland" INPUT_DEVICES="-wacom" PYTHON_TARGETS="python2_7 python3_4 (-python3_5)"
[ebuild  N     ] gnome-base/gnome-control-center-3.20.1-r1  USE="bluetooth colord debug gnome-online-accounts i18n kerberos -cups -networkmanager -v4l -wayland" INPUT_DEVICES="-wacom"
[ebuild  N     ] gnome-base/gnome-session-3.20.2  USE="ipv6 -doc -systemd"
[ebuild   R    ] sys-fs/e2fsprogs-1.43.3-r1  USE="static-libs*"
[ebuild   R    ] sys-apps/gnome-disk-utility-3.20.2  USE="gnome*"
[ebuild   R    ] www-client/chromium-55.0.2883.75  USE="custom-cflags* gnome* gnome-keyring* kerberos* pulseaudio* -cups*"
[ebuild   R    ] xfce-base/thunar-1.6.10-r1  USE="debug*"
[blocks B      ] sys-apps/systemd ("sys-apps/systemd" is blocking sys-fs/eudev-3.1.5)
[blocks B      ] sys-fs/eudev ("sys-fs/eudev" is blocking sys-apps/systemd-226-r2)
[blocks B      ] sys-apps/gentoo-systemd-integration ("sys-apps/gentoo-systemd-integration" is blocking sys-fs/eudev-3.1.5)
[blocks B      ] sys-fs/eudev ("sys-fs/eudev" is blocking sys-apps/gentoo-systemd-integration-6)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-apps/systemd-226-r2:0/2::gentoo, installed) pulled in by
    sys-apps/systemd required by (gnome-base/gnome-settings-daemon-3.20.1:0/0::gentoo, ebuild scheduled for merge)
    sys-apps/systemd:0= required by (sys-apps/dbus-1.10.12:0/0::gentoo, installed)
    >=sys-apps/systemd-31 required by (gnome-base/gnome-control-center-3.20.1-r1:2/2::gentoo, ebuild scheduled for merge)
    >=sys-apps/systemd-207 required by (sys-apps/gentoo-systemd-integration-6:0/0::gentoo, installed)
    sys-apps/systemd:0/2= required by (sys-apps/dbus-1.10.12:0/0::gentoo, installed)

  (sys-fs/eudev-3.1.5:0/0::gentoo, ebuild scheduled for merge) pulled in by
    >=sys-fs/eudev-1.3 required by (virtual/udev-215:0/0::gentoo, ebuild scheduled for merge)
    >=sys-fs/eudev-1.3:0/0[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?,static-libs?] (>=sys-fs/eudev-1.3:0/0[abi_x86_64(-)]) required by (virtual/libudev-215-r1:0/1::gentoo, installed)


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages


I tried unmerging some packages but it did not seem to cure the problem this time.

Any suggestions you have are appreciated.

Regards

Michael Fothergill
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1048
Location: Massachusetts USA

PostPosted: Thu Dec 29, 2016 6:47 pm    Post subject: Reply with quote

If you want to use systemd then you need the systemd USE flag set, if you do not want systemd than use "-systemd" for the USE flag. You could have changed the state of the flag by changing the profile you are using.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 451

PostPosted: Sun Jan 01, 2017 11:23 pm    Post subject: fx 8350 cpu and heating problems etc Reply with quote

Dear Folks,

Many thanks for the advice on my blocked package problem on the kaveri box.

In the end I opted to reinstall.

The process has gone OK except I had some problems with the network connection/configuration.

The output of ifconfig is:

Code:
enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.123  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::eccc:9a4d:cae3:546f  prefixlen 64  scopeid 0x20<link>
        ether 74:d4:35:b2:0d:2c  txqueuelen 1000  (Ethernet)
        RX packets 20  bytes 1505 (1.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12  bytes 1063 (1.0 KiB)
        TX errors 0  dropped 13 overruns 0  carrier 0  collisions 0
        device interrupt 32  base 0x1000 

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


and lsmod gives:

Code:
Module                  Size  Used by
r8168                 474526  0
amdgpu               1263631  2
mfd_core                3923  1 amdgpu


The ls /sys/class/net command:

Code:
enp1s0
lo
sit0


Since for some reason eth0 seemed to have been replaced by enpls0 in this install, I changed the /etc/conf.d/net file entries as follows:

Code:
#modules="dchpcd"
#config_eth0="dhcp"
config_enpls0="dhcp"
#dhcpcd_eth0="-t 10"
#dhcp_eth0="release nodns notp nonis"
dns_domain_lo="homenetwork"

Running /sbin/dhcpcd a couple of times as root sometimes results in ping -c 3 www.google.com giving a slow response with a high loss percentage. But it is not very reproducible or sustainable.

Suggestions on how to proceed here are most welcome.

I hope everyone had a good Christmas.

Regards

Michael Fothergill
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 451

PostPosted: Sun Jan 01, 2017 11:52 pm    Post subject: fx 8350 cpu and heating problems etc Reply with quote

Dear Folks,

I ran /sbin/dhcpcd 2 or three tmes before running ping -c 3 www.google.com

Code:
PING www.google.com (74.125.206.105) 56(84) bytes of data.
64 bytes from wk-in-f105.1e100.net (74.125.206.105): icmp_seq=1 ttl=45 time=22.5 ms
64 bytes from wk-in-f105.1e100.net (74.125.206.105): icmp_seq=2 ttl=45 time=20.9 ms
64 bytes from 74.125.206.105: icmp_seq=3 ttl=45 time=21.0 ms

--- www.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 6042ms
rtt min/avg/max/mdev = 20.931/21.517/22.561/0.749 ms


I had to repeat the /sbin/dhcpcd pump priming process again to get the following output:

Code:
PING www.google.com (74.125.206.103) 56(84) bytes of data.
64 bytes from wk-in-f103.1e100.net (74.125.206.103): icmp_seq=3 ttl=45 time=19.9 ms

--- www.google.com ping statistics ---
3 packets transmitted, 1 received, 66% packet loss, time 2033ms
rtt min/avg/max/mdev = 19.935/19.935/19.935/0.000 ms


and again:

Code:
PING www.google.com (74.125.206.99) 56(84) bytes of data.
64 bytes from 74.125.206.99: icmp_seq=2 ttl=45 time=22.2 ms

--- www.google.com ping statistics ---
3 packets transmitted, 1 received, 66% packet loss, time 11046ms
rtt min/avg/max/mdev = 22.240/22.240/22.240/0.000 ms


etc -if you don't keep repeating the /sbin/dhcpcd command you get the domain address unknown error or whatever it is and no output at all.......

COmments appreciated

Regards

Michael Fothergill
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3076
Location: Illinois, USA

PostPosted: Mon Jan 02, 2017 12:09 am    Post subject: Reply with quote

Quote:
Since for some reason eth0 seemed to have been replaced by enpls0 in this install,

Did you switch from eudev to udev when you re-installed?
Also, see this thread: https://forums.gentoo.org/viewtopic-t-1056954-highlight-.html

When you re-install, you lose your customizations. It's best to try and fix rather than re-install.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 451

PostPosted: Mon Jan 02, 2017 3:45 pm    Post subject: fx 8350 cpu and heating problems etc Reply with quote

Dear Tony,

Many thanks for your comments here.

I can't quite remember whether I switched from udev to eudev when I reinstalled...

I tried putting udev in the USE entry in make.conf but it didn't help.


I tried checking on the lib modules directory to check that the realtek module was present in the two kernels I have available in the gentoo installation:

Code:
mikef@bong ~ $ su
Password:
bong mikef # find /lib/modules | grep -i '8169'
/lib/modules/4.4.39-gentoo/kernel/drivers/net/ethernet/realtek/r8169.ko
bong mikef # /sbin/dhcpcd
sending commands to master dhcpcd process
bong mikef # /sbin/dhcpcd
sending commands to master dhcpcd process
bong mikef # ping -c 3 www.google.com
^C
bong mikef # lsmod
Module                  Size  Used by
r8168                 474526  0
amdgpu               1263631  2
mfd_core                3923  1 amdgpu
bong mikef # find /lib/modules | grep -i '8168'
/lib/modules/4.9.0-gentoo/net/r8168.ko


The network connection works OK when I boot up the 4.4.39 kernel but it does not work with the 4.9.0 kernel.

I seem to have an r8169 module in a directory entitled kernel/drivers/net/realtek in the older kernel but a different f8168 module in the /net in the 4.9.0 kernel tree or whatever it is termed.

I have been reading through the gentoo network (and other) web pages and I am learning more about the network config stuff but I have not fixed this issue yet.

Regards

Michael Fothergill
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 451

PostPosted: Mon Jan 02, 2017 3:47 pm    Post subject: fx 8350 cpu and heating problems etc Reply with quote

PS I tried installing the kernel headers package in case that was needed in some way for the new kernel to work properly with the network card/module.....

It doesn't seem to have helped so far.

Regds

Michael
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3076
Location: Illinois, USA

PostPosted: Mon Jan 02, 2017 5:00 pm    Post subject: Reply with quote

Specifically - https://wiki.gentoo.org/wiki/Eudev/Network_device_names

Re 8168/8169, go back over your earlier forum posts regarding the in-kernel and out of the kernel drivers. Do whatever you did there. It sounds like you emerged r8168. You have do that not once but everytime you build a kernel. Also r8169 should be blacklisted if you go that route. re-read your earlier threads to refresh your memory.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3235
Location: Gainesville, Florida

PostPosted: Tue Jan 03, 2017 11:07 pm    Post subject: Reply with quote

IIRC, CONFIG_R8169=m covers 8168, and no blacklisting is required. In all my Gentoo systems for many years,
I never had to configure ethernet in any way, as long as the correct kernel module was enabled.

Currently, if you wish to use eth0, eth1, etc, instead of the new enp1s0 renaming scheme, you can add net.ifnames=0 to your kernel line in grub.

I have in my /etc/default/grub file:
Code:
 # Boot with network interface renaming disabled
GRUB_CMDLINE_LINUX="rootfstype=ext4 net.ifnames=0"


Might also need to check your symlinks pointing to net.lo in /etc/init.d

https://wiki.gentoo.org/wiki/Eudev

https://wiki.gentoo.org/wiki/Udev/Upgrade_Guide

https://forums.gentoo.org/viewtopic-t-1011118-start-0.html

More related info:
https://forums.gentoo.org/viewtopic-t-948718-start-25.html https://wiki.gentoo.org/wiki/Eudev#Keep_classic_.27eth0.27_naming
_________________
Main box- AsRock x370 Gaming K4
Ryzen 1700, 3.0GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.29-r2, gcc-9.1.0 kernel-5.1.16-gentoo USE=experimental
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3076
Location: Illinois, USA

PostPosted: Tue Jan 03, 2017 11:39 pm    Post subject: Reply with quote

wrc1944 wrote:
IIRC, CONFIG_R8169=m covers 8168, and no blacklisting is required.


Maybe, maybe not. The realtek 8111/8168/8169 is a design spec rather than an actual chip. It all depends on how your mobo manufacture implements it. The in-kernel driver called 8169 might work. The out of kernel driver (emerge R8168) won't work if 8169 is present, hence it must be blacklisted or not built at all. R8168, which is realtek code supports more mobos than the in-kernel driver. I haven't looked but I'm pretty sure that R8168 is a binary blob that has to be linked against the kernel to satisfy references. Nearly every Gigabyte mobo has a Realtek ethernet and I've never had R8169 run reliably on any of them. By that I mean that it might connect with the LAN on one boot but not the other. Sometimes, I've bought an Intel card out of frustration.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3235
Location: Gainesville, Florida

PostPosted: Wed Jan 04, 2017 1:21 am    Post subject: Reply with quote

Hmmm. You could be right on that, however my current main gigabyte am3+ 990FXA board's lsmod says loaded r8169, and has been working on countless kernels for several years.

Come to think of it, virtually every mobo I've had in recent years has had that realtek 8111/8168/8169 spec, and all have detected and run properly using the in-kernel realtek driver.
Admittedly, I never researched it or even thought about it much, as it just worked perfectly on several Abit, MSI, Biostar, and AsRock mobos.

I have had just one Gigabyte board, so I can't really know much about them. Maybe it's an issue for others, or I just lucked out with this one, which even though it has performed really nice does have well-known USB-3 problems.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 1700, 3.0GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.29-r2, gcc-9.1.0 kernel-5.1.16-gentoo USE=experimental


Last edited by wrc1944 on Fri Jan 06, 2017 3:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3076
Location: Illinois, USA

PostPosted: Wed Jan 04, 2017 3:17 am    Post subject: Reply with quote

Of the machines I'm still running:

GA-880GA-UD3H (Socket M2) in-kernel did not work, even the windows driver was flaky. gave up and bought an Intel card.

MSI-7875 (Socket M2+) in-kernel works sometimes. fails to boot maybe 1/3 1/4. Realtek driver better but slow. gave up and bought an Intel card, boots fast.

GA-F2A88X-D3HP (Socket FM2+) in-kernel didn't work (too new?) Realtek R8168 works fine.

Various older mobos with 100MB Realtek worked flawlessly with the tulip driver.

YMMV

EDIT: Same kernel as yours with same USE flag. Haven't tried R8169 since 4.4/4.8 days.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 451

PostPosted: Wed Jan 04, 2017 11:26 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation etc Reply with quote

Dear Folks,

A great many thanks for the series of thoughtful posts on this issue.

I used the touch command that Tony referred to in a URL link he posted and it did change the enpls0 tag back to eth0.....

But it still didn't sure the problem because as was pointed out later it was the kernel in built firmware option "wot done it" here....

I cannot have the built in option and try to load the module for the realtek network card at the same time ie having the cake and instead of trying to eat it at the same time I would be trying to stuff a second one in to the cake tin at the same time as eating the first cake etc.

I went back recompiled the 4.9.0 kernel in the kaveri box installation and used menuconfig to turn off the built in network firmware option. In this case I could change the * into an M all I could do was remove the star and end up with an empty pair of brackets for that option.

I kept the blobs and lib firmware path entries intact etc.

But this still did not cure the problem.

I am busy with some things that are distracting me a bit at present.

Maybe it would be a better idea to throw the second cake away completely and get rid all the blobs and firmware module stuff and turn on the built in network option in the kernel.

No modprobe stuff in that case.

Only a bit of lsmod to check I see r8169 not 8168 and maybe the problem will be cured.

Both the AMD 4300 box and the kaveri seem to be able to stand compiling tough code titles without conking due to overheating.

I rang my cooling colleague today.

Eventually I will get the piledriver box to his shop and then let him have a go with the fan, heat sink, dust removal and bios interaction.
I will get some Artic thermal paste which is good enough here.

Out of interest if you built a box with two Xeon sandy bridge 2560 cpus on a server board with decent cooling then you would have 16 cores in total.....

Would that machine be able to compile Gentoo code fast per dollar or pound invested?

Regards

Michael Fothergill
Back to top
View user's profile Send private message
blackkstar
n00b
n00b


Joined: 14 Nov 2012
Posts: 19

PostPosted: Thu Jan 05, 2017 10:13 pm    Post subject: Re: kernel configuration on AMD FX 8350 box, cpu utilisation Reply with quote

mikefot wrote:
Dear Folks,

A great many thanks for the series of thoughtful posts on this issue.

I used the touch command that Tony referred to in a URL link he posted and it did change the enpls0 tag back to eth0.....

But it still didn't sure the problem because as was pointed out later it was the kernel in built firmware option "wot done it" here....

I cannot have the built in option and try to load the module for the realtek network card at the same time ie having the cake and instead of trying to eat it at the same time I would be trying to stuff a second one in to the cake tin at the same time as eating the first cake etc.

I went back recompiled the 4.9.0 kernel in the kaveri box installation and used menuconfig to turn off the built in network firmware option. In this case I could change the * into an M all I could do was remove the star and end up with an empty pair of brackets for that option.

I kept the blobs and lib firmware path entries intact etc.

But this still did not cure the problem.

I am busy with some things that are distracting me a bit at present.

Maybe it would be a better idea to throw the second cake away completely and get rid all the blobs and firmware module stuff and turn on the built in network option in the kernel.

No modprobe stuff in that case.

Only a bit of lsmod to check I see r8169 not 8168 and maybe the problem will be cured.

Both the AMD 4300 box and the kaveri seem to be able to stand compiling tough code titles without conking due to overheating.

I rang my cooling colleague today.

Eventually I will get the piledriver box to his shop and then let him have a go with the fan, heat sink, dust removal and bios interaction.
I will get some Artic thermal paste which is good enough here.

Out of interest if you built a box with two Xeon sandy bridge 2560 cpus on a server board with decent cooling then you would have 16 cores in total.....

Would that machine be able to compile Gentoo code fast per dollar or pound invested?

Regards

Michael Fothergill


The best value for multi-threaded performance is used server parts. AMD Opteron values are completely in the toilet because Intel is dominating server markets because they have much better performance per watt (AMD Opterons are 32nm and they are competing against 14nm chips, there's no way they'd ever be close). If you were running them full load for significant portions of the day, the power consumption isn't a big deal, provided you live in a place with reasonable electricity rates.

The big cost hurdle is finding a case that will support a big motherboard. I managed to get a 24 core K10 AMD Opteron system together for under $200, because I used existing parts (PSUs, fans, coolers, etc) and just had to buy the CPUs, motherboard, and RAM. I actually paid under $10 for each CPU. When compiling and rendering 3d stuff, it's around the speed of an 8 core Intel Broadwell.

It's not something that you would dive into right away. I had to watch ebay to find such a good deal on those CPUs. But those deals exists, and if you can watch out for them, you can really kill it. Not to mention you can set up DISTCC and compile stuff for your slower computers on your faster ones.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 451

PostPosted: Wed Jan 11, 2017 12:27 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation Reply with quote

Dear Folks,

I have cured the realtek network connection problem......

I set the flag in make menuconfig to * for the built in kernel option for the network cards; I then went into the network card list and found the gigabyte r8169 entry or whatever it is called for my specific card and saw it was unchecked.

I opted for the * built in option.

I then recompiled the kernel and rebooted.

lsmod gives:

Code:
bong portage # lsmod
Module                  Size  Used by
r8168                 474526  0
amdgpu               1263631  2
r8169                  67900  0
mfd_core                3923  1 amdgpu


I don't have any blacklisting - but now the network connection runs fine without me needing to do /sbin/dhcpcd at all.

I have been trying to install a package:

Code:
bong portage # emerge --ask --newuse @world

 * IMPORTANT: 13 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies |

!!! Problem resolving dependencies for sys-apps/busybox from @system
... done!

!!! The ebuild selected to satisfy "sys-apps/busybox" has unmet requirements.
- sys-apps/busybox-1.25.1::gentoo USE="ipv6 pam static -debug -livecd -make-symlinks -math -mdev -savedconfig (-selinux) -sep-usr -syslog -systemd" ABI_X86="64"

  The following REQUIRED_USE flag constraints are unsatisfied:
    pam? ( !static )


My make.conf file is here:

Code:
bong portage # more 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="-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 static branding glamor gtk gtk3 sound udev -gnome -kde -minimal -qt4 alsa alsa-plugin caps glib ipv6 orc tcpd webrtc-aec pam asyncns -gstr
eamer -oss pulseaudio -tdb dbus jpeg lock session startup-notification thunar aqua wayland X"
MAKEOPTS="-j5"
CPU_FLAGS_X86="mmx sse sse2"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
VIDEO_CARDS="amdgpu radeonsi radeon"
## (For mouse, keyboard, and Synaptics touchpad support)
INPUT_DEVICES="evdev synaptics"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/"

#SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
bong portage #


I ran env-update and source /etc/profile.

But I still get this problem - it is as if it can't see that I have the use flag static present in the make.conf file......

Comments appreciated.

Also I have been trying to make offlineimaps and mbsync work on the AMD 3400 box.

I am trying to get my gmail to work with emacs and notmuch etc.

I did get offlineimaps to work but it is slow.

So i tried mbsync but I am getting an end of file crash which googling on suggests I might be trying to download too quickly and am being thrown out etc.

There is a pipeline depth setting which I played around with that is supposed to help but it doesn't seem to here.

Suggestions welcome.

An update on the fx 8350 cooling problem will come soon.

Regards

Michael Fothergill
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1696

PostPosted: Wed Jan 11, 2017 5:56 pm    Post subject: Reply with quote

Code:
!!! The ebuild selected to satisfy "sys-apps/busybox" has unmet requirements.
- sys-apps/busybox-1.25.1::gentoo USE="ipv6 pam static -debug -livecd -make-symlinks -math -mdev -savedconfig (-selinux) -sep-usr -syslog -systemd" ABI_X86="64"

  The following REQUIRED_USE flag constraints are unsatisfied:
    pam? ( !static )


Quote:
But I still get this problem - it is as if it can't see that I have the use flag static present in the make.conf file......


It's not that it can't see the USE flag set, it's complaining because you can not have pam set along with static set. So you need to disable one of them...
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 451

PostPosted: Wed Jan 11, 2017 7:29 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation Reply with quote

Many thanks for explaining the error message I got in emerge.

I got rid of static and kept pam and then sys-apps/busybox compiled OK.

I then went on with emerge --ask --newuse @world.

It went OK until I got to sys-apps/grep and crashed; it seems that it wants static to be present but not pam etc.

It seems that the two packages are mutually incompatible here.

Comments appreciated.

Regards

Michael
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3076
Location: Illinois, USA

PostPosted: Wed Jan 11, 2017 9:35 pm    Post subject: Reply with quote

Code:
gentoo ~ # emerge -pv grep

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-apps/grep-2.25::gentoo  USE="pcre -nls -static" 1,297 KiB

Total: 1 package (1 reinstall), Size of downloads: 1,297 KiB
Indicating neither static nor pam (not even a parameter).
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1696

PostPosted: Thu Jan 12, 2017 2:04 am    Post subject: Reply with quote

Well I would expect that being the case in that sys-apps/grep is not sys-apps/busybox, they are 2 completely different packages.

Quote:
It went OK until I got to sys-apps/grep and crashed; it seems that it wants static to be present but not pam etc.


As for grep crashing, you are going need to give us more information, if it was during compiling, the build log for starters so we can figure out why it died.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13831

PostPosted: Thu Jan 12, 2017 2:11 am    Post subject: Reply with quote

If you need help with the failed build of grep, please follow the instructions that Portage should have displayed when it failed. Those instructions describe what information to post, and where to find it.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 451

PostPosted: Thu Jan 12, 2017 9:40 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation Reply with quote

Dear All,

I ran emerge again to reproduce the compilation error:


Code:
usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__register_frame':
(.text+0x1848): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/libgcc_eh.a(unwind-dw2-fde-dip.o):(.text+0x18ca): more undefined references to `pthread_mutex_unlock' follow
collect2: error: ld returned 1 exit status
Makefile:1290: recipe for target 'grep' failed
make[2]: *** [grep] Error 1
make[2]: Leaving directory '/var/tmp/portage/sys-apps/grep-2.25/work/grep-2.25/src'
Makefile:1279: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-apps/grep-2.25/work/grep-2.25'
Makefile:1220: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: sys-apps/grep-2.25::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-apps/grep-2.25::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/grep-2.25::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-apps/grep-2.25/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/grep-2.25/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/grep-2.25/work/grep-2.25'
 * S: '/var/tmp/portage/sys-apps/grep-2.25/work/grep-2.25'

>>> Failed to emerge sys-apps/grep-2.25, Log file:

>>>  '/var/tmp/portage/sys-apps/grep-2.25/temp/build.log'

 * Messages for package sys-apps/grep-2.25:

 * ERROR: sys-apps/grep-2.25::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `[color=red]emerge --info '=sys-apps/grep-2.25::gentoo'[/color]`,
 * the complete build log and the output of `[color=red]emerge -pqv '=sys-apps/grep-2.25::gentoo[/color]'`.
 * The complete build log is located at '[color=red]/var/tmp/portage/sys-apps/grep-2.25/temp/build.log[/color]'.
 * The ebuild environment file is located at '[color=red]/var/tmp/portage/sys-apps/grep-2.25/temp/environment[/color]'.
 * Working directory: '[color=red]/var/tmp/portage/sys-apps/grep-2.25/work/grep-2.25[/color]'
 * S: '[color=red]/var/tmp/portage/sys-apps/grep-2.25/work/grep-2.25[/color]'


I then posted the output that the crash specifies that should be examined here:



bong mikef # wgetpaste -c 'emerge --info '=sys-apps/grep-2.25::gentoo''
Your paste can be seen here: https://paste.pound-python.org/show/l0Mj9PZOknqJpwZLwO5D/

bong mikef # wgetpaste -c 'emerge -pqv '=sys-apps/grep-2.25::gentoo''
Your paste can be seen here: https://paste.pound-python.org/show/JiZwimxxpQepExQa4B8B/
bong mikef # wgetpaste /var/tmp/portage/sys-apps/grep-2.25/temp/build.log
Your paste can be seen here:https://paste.pound-python.org/show/1ETQpHwuK7olz8tLQu7z/
bong mikef # wgetpaste /var/tmp/portage/sys-apps/grep-2.25/temp/environment
Your paste can be seen here:https://paste.pound-python.org/show/H9ECg5US0srvW1zGU2dh/

Comments appreciated

Michael Fothergill
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 451

PostPosted: Fri Jan 13, 2017 8:46 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation Reply with quote

Dear Folks,

I tried switching the --newuse parameter for --update in the emerge @world runs to see what would happen.

I found that
Code:
emerge --ask --update @world
ran OK ; and then
Code:
emerge --ask --update --deep @ world
ran OK; and then
Code:
emerge --ask --update --deep --with-bdeps=y @ world
ran OK as well.

So then I tried:

Code:
emerge --ask -- newuse @ world
and unfortunately I got the same crash again when compiling sys-apps/grep.

Comments appreciated.

Regards

Michael Fothergill
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3076
Location: Illinois, USA

PostPosted: Fri Jan 13, 2017 10:56 pm    Post subject: Reply with quote

What is the response to "emerge -pv grep"?
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 451

PostPosted: Sat Jan 14, 2017 2:54 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation etc Reply with quote

Dear Tony,

I included the three use flag recommendations that were present in the output you got after running emerge -pv grep in the make.conf file.

I ran
Code:
source /etc/profile
and
Code:
env-update
and then did
Code:
 emerge --ask --newuse @world, emerge --ask --newuse --deep @world
and finally
Code:
emerge --ask -- newuse --with-bdeps=y @ world
.

All three commands ran successfully.

grep compiled successfully at the
Code:
emerge --ask --newuse --deep @world
stage - it was not compiled in the previous step.

I have added some extra use flags to make the restart and shutdown buttons work in xfce. Something is not quite right because running shutdown stops the jobs etc but does not actually shut the power off itself - suggestions welcome on that one.

Also porthole is installed at user privilege level in xfce - how do you upgrade it to root in the user environment without just opening a terminal and using su to become root and then typing /usr/bin/porthole retn etc ; ie have it as a menu option?

Many thanks

Regards

Michael Fothergill
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 451

PostPosted: Sat Jan 14, 2017 3:00 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation etc Reply with quote

PS

The output of 'emerge -pv grep' is as follows:

Code:
bong portage # emerge -pv grep

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-apps/grep-2.25::gentoo  USE="pcre -nls -static" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

 * IMPORTANT: 13 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


My current make.conf file looks like this:

Code:
bong portage # more 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="-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="cxx polkit consolekit upower bindist pie ssl -static pcre -nls branding glamor gtk gtk3 sound udev -gnome -kde -minimal -qt4 alsa alsa-plugin caps glib ipv6 orc tcpd webrtc-aec asyncns
-gstreamer -oss pulseaudio -tdb dbus jpeg lock session startup-notification thunar aqua wayland X"
MAKEOPTS="-j5"
CPU_FLAGS_X86="mmx sse sse2"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
VIDEO_CARDS="amdgpu radeonsi radeon"
## (For mouse, keyboard, and Synaptics touchpad support)
INPUT_DEVICES="evdev synaptics"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/"

#SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"

Regards

MF
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
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