Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CPU bottleneck for games
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dimko
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 126

PostPosted: Tue Oct 13, 2015 9:51 am    Post subject: CPU bottleneck for games Reply with quote

Hello fellow Gentoids.

I am trying to optimize my Gentoo for gaming.
What i tried so far:
Running games/benchmarks inside of bare Xorg, schedtool(with RR), nice, CPU affinity(various tools), changing governor, IRQbalance.

None seem to make any real difference. I was making tests with 2 things in mind:
1. Work under load.(make -j 8 or more)
2. Work with no load.

So far only things that did seem to have any effect is changing CPU affinity while under load and performance governor with pure Xorg with no window manager with no load. But gains are miserable.


My set up: Vishera + binary Nvidia gtx780 ti on MSI motherboard(nothing too fancy, PCIe2 32 gig of 1800 RAM).

Can anyone suggest any real optimization ideas that actually work?
I am pretty sure many games I play are CPU bound.

I play mostly Steam games which i have plenty of + HoN. Most games I noticed are single threaded.
_________________
Just a user.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2288
Location: near Augsburg, Germany

PostPosted: Wed Oct 14, 2015 5:20 am    Post subject: Reply with quote

Better hardware info.
And system info (emerge --info).
Back to top
View user's profile Send private message
dimko
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 126

PostPosted: Wed Oct 14, 2015 8:12 am    Post subject: Reply with quote

Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/amd64/13.0/selinux, gcc-4.9.3, glibc-2.20-r2, 4.2.3 x86_64)
=================================================================
System uname: Linux-4.2.3-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.2
KiB Mem: 32933260 total, 21338348 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Tue, 13 Oct 2015 10:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 3.1.9 [enabled]
app-shells/bash: 4.3_p39::gentoo
dev-java/java-config: 2.2.0::gentoo
dev-lang/perl: 5.20.2::gentoo
dev-lang/python: 2.7.10::gentoo, 3.2.5-r6::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/ccache: 3.1.9-r3::gentoo
dev-util/cmake: 3.3.1-r1::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.2::gentoo
sys-apps/sandbox: 2.6-r1::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo
sys-devel/automake: 1.9.6-r3::gentoo, 1.10.3::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils: 2.21.1-r1::gentoo, 2.25.1-r1::gentoo
sys-devel/gcc: 4.9.3::gentoo
sys-devel/gcc-config: 1.7.3::gentoo
sys-devel/libtool: 2.4.6::gentoo
sys-devel/make: 4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc: 2.20-r2::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j 20"
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"
PORTAGE_TMPDIR="/mnt/dump/portage"
USE="3dnow 3dnowext 64bit X a52 aac aacplus acl acpi alsa amd64 audio audiofile automount bash-completion berkdb blueray branding bzip2 cairo cdda cddu cdinstall clamav cli consolekit cracklib crypt css ctype custom-cflags custom-optimization cxx dbus djvu dri dvd emacs encode exif extras faac faad ffmpeg firefox flac fontconfig fortran ftp g3dvl gd gdbm gdu gflags gimp gnome gnome-keyring gnutls gphoto2 gsm gtk gzip hddtemp iconv icu imagemagick imap ipv6 java java6 javascript jpeg jpeg2k kdrive lame latex libkms linmpeg lm_sensors lzma matroska memlimit mime minizip mms mmx mmxext mng modules mono mozilla mp3 mp4 mpeg mpg123 mplayer multilib ncurses nls nptl ocr ogg open_perms openal opencl opengl openmp pam pcre php policykit python python3_3 rar readline sdl seccomp selinux session sipim smp sse sse2 sse3 ssl ssse3 svg tcpd theora threads trutype unconfined unicode vdpau vesa vorbis without_nouveau=yes x264 xcb xcomposite xine xnest xulrunner xvmc youtube 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

4.2.3 #7 SMP Sun Oct 11 15:27:20 IST 2015 x86_64 AMD FX(tm)-8350 Eight-Core Processor AuthenticAMD GNU/Linux

CPU:
http://www.amazon.com/AMD-FD8350FRHKBOX-FX-8350-FX-Series-Processor/dp/B009O7YUF6
GeForce GTX 780 Ti 3072 MB PCI Express x16 Gen2 Maximum PCIe Link Width: x16 Maximum PCIe Link Speed:5.0 GT/s, max speed 1202, max mem speed 7000
CPU governor: ondemand, video card governor: Auto
mobo:
https://www.asus.com/ie/Motherboards/M5A78LMUSB3/
memory: Speed: 1600 MHz, 4 slots.
_________________
Just a user.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2288
Location: near Augsburg, Germany

PostPosted: Wed Oct 14, 2015 10:41 am    Post subject: Reply with quote

Some parts of your config is false:
MAKEOPTS="-j8"
CFLAGS="-march=native -O2 -pipe"
LDFLAGS="-Wl,-O2 -Wl,--as-needed"
USE="3dnow 3dnowext" is wrong as I see: http://www.cpu-world.com/CPUs/Bulldozer/AMD-FX-Series%20FX-8350.html
You setup some Audiocards; this is strange

Some Features are setup wrong: ccache, distcc, etc.
Back to top
View user's profile Send private message
dimko
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 126

PostPosted: Wed Oct 14, 2015 11:29 am    Post subject: Reply with quote

i disabled those features.
it was a surprise to me to know that AMD abandoned mmxext/3dnow.
I disabled all of stuff that was not necessary. I won't notice anything until i recompile some programs with those flags.
And even then, i doubt it will make any difference.
Variables and USE flags don't have that much effect on CPU utilization for binary game/benchmark.
_________________
Just a user.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Oct 14, 2015 5:19 pm    Post subject: Reply with quote

dimko,

Code:
CFLAGS="-march=native -O2 -pipe -ggdb"

You really don't want global debug support.
_________________
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
dimko
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 126

PostPosted: Thu Oct 15, 2015 11:18 am    Post subject: true that Reply with quote

I was debuging thunderbird for upstream. It doesn't work if I compile it from source for several years now.
Bin file works if I get it from portage. they said i need to discuss with distro developers... :(
It's a bit off topic though. I disabled flag.


Dont get me wrong guys, my performance is good.
I get very stable playable in FPS Shadow of Mordor and in Metro Redux.
I am just trying to find way how to optimize CPU.
_________________
Just a user.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Thu Oct 15, 2015 12:22 pm    Post subject: Re: true that Reply with quote

dimko wrote:
It's a bit off topic though. I disabled flag.

Read more about package.env, you can set gddb only for thunderbird while it remains off for other.
Back to top
View user's profile Send private message
dimko
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 126

PostPosted: Fri Oct 16, 2015 9:40 am    Post subject: Re: true that Reply with quote

krinn wrote:
dimko wrote:
It's a bit off topic though. I disabled flag.

Read more about package.env, you can set gddb only for thunderbird while it remains off for other.

Thanks.
_________________
Just a user.
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
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