Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] xfwm4 and xorg-server eating 90% cpu cycles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
mjbjr
Apprentice
Apprentice


Joined: 02 Mar 2003
Posts: 265

PostPosted: Sat Apr 25, 2020 9:23 pm    Post subject: [SOLVED] xfwm4 and xorg-server eating 90% cpu cycles Reply with quote

first, best wishes to you and yours during the covid-19 pandemic

At the tail end of February I created a new gentoo build with xfce4, which is standard for me.
A few days after successfully creating the build I noticed that the desktop was getting a bit choppy.
Looking at 'top', I saw xfwm4 was using maybe 50-60% of the cpu cycles. So, I logged out then in and
looked at 'top' and xfwm4 was using 0.7% of the cycles, a day later 20%, etc., and after about 3-4 days
it would climb to about 90% and be very unusable. This was a problem I had never seen before.

I tried a couple of different wm's that unfortunately couldn't match xfwm4 for features/configurability,
though they didn't have the cpu cycle issue, so I went back to xfwm4 and its cpu issue.

Eventually, just for the hell of it, I re-emerged xfwm4 and bingo! no more xfwm4 cpu cycle problem.

Then a couple of days later I noticed the desktop getting choppy again and looked at 'top' and this time
it was xorg-server chomping away at the cpu cycles. A logout/in showed roughly the same problem that
xfwm4 had, low initial cpu usage that would climb astronomically over three or four days.

I thought that if a re-emerge for xfwm4 worked maybe a re-emerge of xorg-server would have the same results.

and this is where I've hit a snag...

Code:


localhost ~ # emerge -pv xorg-server

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

Calculating dependencies... done!
[ebuild  N     ] media-libs/libglvnd-1.3.1::gentoo  USE="X -test" ABI_X86="(64) -32 (-x32)" 698 KiB
[ebuild  r  U  ] x11-base/xorg-server-1.20.7:0/1.20.7::gentoo [1.20.6:0/1.20.6::gentoo] USE="ipv6 libglvnd* suid udev xorg -debug -dmx -doc -elogind -kdrive -libressl -minimal (-selinux) -static-libs -systemd -unwind -wayland -xcsecurity -xephyr -xnest -xvfb" 6,156 KiB
[ebuild  rR    ] x11-drivers/xf86-input-keyboard-1.9.0::gentoo  0 KiB
[ebuild  rR    ] x11-drivers/xf86-input-libinput-0.29.0::gentoo  0 KiB
[ebuild  rR    ] x11-drivers/xf86-input-mouse-1.9.3::gentoo  0 KiB
[ebuild  rR    ] x11-drivers/xf86-video-nouveau-1.0.16::gentoo  0 KiB
[blocks B      ] app-eselect/eselect-opengl ("app-eselect/eselect-opengl" is blocking x11-base/xorg-server-1.20.7)
[blocks B      ] media-libs/mesa[-libglvnd(-)] ("media-libs/mesa[-libglvnd(-)]" is blocking media-libs/libglvnd-1.3.1)

Total: 6 packages (1 upgrade, 1 new, 4 reinstalls), Size of downloads: 6,853 KiB
Conflict: 2 blocks (2 unsatisfied)

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

  (x11-base/xorg-server-1.20.7:0/1.20.7::gentoo, ebuild scheduled for merge) pulled in by
    x11-base/xorg-server:= required by (x11-drivers/xf86-input-keyboard-1.9.0:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="(64)"
    x11-base/xorg-server[xorg] required by (x11-drivers/xf86-input-mouse-1.9.3:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="(64)"
    x11-base/xorg-server[-minimal] required by (x11-base/xorg-x11-7.4-r3:0/0::gentoo, installed) USE="fonts" ABI_X86="(64)"
    x11-base/xorg-server:0 required by @__auto_slot_operator_replace_installed__
    xorg-server
    >=x11-base/xorg-server-1.7 required by (x11-drivers/xf86-input-mouse-1.9.3:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="(64)"
    x11-base/xorg-server[-minimal] required by (x11-drivers/xf86-video-nouveau-1.0.16:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="(64)"
    x11-base/xorg-server:= required by (x11-drivers/xf86-input-mouse-1.9.3:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="(64)"
    x11-base/xorg-server[xorg] required by (x11-drivers/xf86-video-nouveau-1.0.16:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="(64)"
    x11-base/xorg-server:= required by (x11-drivers/xf86-input-libinput-0.29.0:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="(64)"
    >=x11-base/xorg-server-1.20[xorg] required by (x11-drivers/xf86-input-libinput-0.29.0:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="(64)"
    x11-base/xorg-server[xorg] required by (x11-drivers/xf86-input-keyboard-1.9.0:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="(64)"
    x11-base/xorg-server required by @selected
    >=x11-base/xorg-server-1.10 required by (x11-drivers/xf86-input-keyboard-1.9.0:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="(64)"
    x11-base/xorg-server:= required by (x11-drivers/xf86-video-nouveau-1.0.16:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="(64)"

  (media-libs/mesa-19.2.8:0/0::gentoo, installed) pulled in by
    media-libs/mesa[X(+),abi_x86_64(-)] required by (x11-libs/gtk+-3.24.13:3/3::gentoo, installed) USE="X cups introspection (-aqua) -broadway -cloudprint -colord -examples -gtk-doc -test -vim-syntax -wayland -xinerama" ABI_X86="(64) -32 (-x32)"
    >=media-libs/mesa-9.1.6[X(+),abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_riscv_lp64d(-)?,abi_riscv_lp64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (>=media-libs/mesa-9.1.6[X(+),abi_x86_64(-)]) required by (virtual/opengl-7.0-r2:0/0::gentoo, installed) USE="" ABI_X86="(64) -32 (-x32)"
    >=media-libs/mesa-10.2:* required by (www-client/firefox-68.7.0:0/0::gentoo, installed) USE="dbus gmp-autoupdate screenshot system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite system-webp -bindist -clang -custom-cflags -custom-optimization -debug -eme-free -geckodriver -hardened -hwaccel -jack -lto -pgo -pulseaudio (-selinux) -startup-notification -test -wayland -wifi" ABI_X86="(64)" CPU_FLAGS_X86="-avx2" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -ur -uz -vi -xh -zh-CN -zh-TW"
    >=media-libs/mesa-10.2:* required by (mail-client/thunderbird-68.6.0:0/0::gentoo, installed) USE="dbus gmp-autoupdate system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-sqlite system-webp -bindist -clang -custom-cflags -custom-optimization -debug -eme-free -hardened -jack -lightning -lto (-pgo) -pulseaudio (-selinux) -startup-notification -system-libvpx -test -wayland -wifi" ABI_X86="(64)" CPU_FLAGS_X86="-avx2" L10N="-ar -ast -be -bg -br -ca -cs -cy -da -de -el -en-GB -es-AR -es-ES -et -eu -fi -fr -fy -ga -gd -gl -he -hr -hsb -hu -hy -id -is -it -ja -ko -lt -nb -nl -nn -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -sq -sr -sv -tr -uk -vi -zh-CN -zh-TW"
    media-libs/mesa[egl,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_riscv_lp64d(-)?,abi_riscv_lp64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (media-libs/mesa[egl,abi_x86_64(-)]) required by (media-libs/libepoxy-1.5.4:0/0::gentoo, installed) USE="X egl -test" ABI_X86="(64) -32 (-x32)"
    media-libs/mesa[egl] required by (app-office/libreoffice-6.3.4.2-r1:0/0::gentoo, installed) USE="branding cups dbus gtk mariadb -accessibility -bluetooth (-coinmp) -debug -eds (-firebird) -googledrive -gstreamer -gtk2 -java -kde -ldap -odk -pdfimport -postgres -test" ABI_X86="(64)" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_6 -python3_7 (-python3_8)"
    >=media-libs/mesa-18[X(+),egl,gbm] required by (x11-base/xorg-server-1.20.7:0/1.20.7::gentoo, ebuild scheduled for merge) USE="ipv6 libglvnd suid udev xorg -debug -dmx -doc -elogind -kdrive -libressl -minimal (-selinux) -static-libs -systemd -unwind -wayland -xcsecurity -xephyr -xnest -xvfb" ABI_X86="(64)"


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


The following packages are causing rebuilds:

  (x11-base/xorg-server-1.20.7:0/1.20.7::gentoo, ebuild scheduled for merge) causes rebuilds for:
    (x11-drivers/xf86-video-nouveau-1.0.16:0/0::gentoo, ebuild scheduled for merge)
    (x11-drivers/xf86-input-mouse-1.9.3:0/0::gentoo, ebuild scheduled for merge)
    (x11-drivers/xf86-input-libinput-0.29.0:0/0::gentoo, ebuild scheduled for merge)
    (x11-drivers/xf86-input-keyboard-1.9.0:0/0::gentoo, ebuild scheduled for merge)
localhost ~ #


Any ideas?

Thanks.

- Martin -


Code:

localhost ~ # eselect profile list
Available profile symlink targets:
  [1]   default/linux/amd64/17.0 (stable)
  [2]   default/linux/amd64/17.0/selinux (stable)
  [3]   default/linux/amd64/17.0/hardened (stable)
  [4]   default/linux/amd64/17.0/hardened/selinux (stable)
  [5]   default/linux/amd64/17.0/desktop (stable)
  [6]   default/linux/amd64/17.0/desktop/gnome (stable)
  [7]   default/linux/amd64/17.0/desktop/gnome/systemd (stable)
  [8]   default/linux/amd64/17.0/desktop/plasma (stable)
  [9]   default/linux/amd64/17.0/desktop/plasma/systemd (stable)
  [10]  default/linux/amd64/17.0/developer (stable)
  [11]  default/linux/amd64/17.0/no-multilib (stable)
  [12]  default/linux/amd64/17.0/no-multilib/hardened (stable)
  [13]  default/linux/amd64/17.0/no-multilib/hardened/selinux (stable)
  [14]  default/linux/amd64/17.0/systemd (stable)
  [15]  default/linux/amd64/17.0/x32 (dev)
  [16]  default/linux/amd64/17.1 (stable) *
  [17]  default/linux/amd64/17.1/selinux (stable)
  [18]  default/linux/amd64/17.1/hardened (stable)
  [19]  default/linux/amd64/17.1/hardened/selinux (stable)
  [20]  default/linux/amd64/17.1/desktop (stable)
  [21]  default/linux/amd64/17.1/desktop/gnome (stable)
  [22]  default/linux/amd64/17.1/desktop/gnome/systemd (stable)
  [23]  default/linux/amd64/17.1/desktop/plasma (stable)
  [24]  default/linux/amd64/17.1/desktop/plasma/systemd (stable)
  [25]  default/linux/amd64/17.1/developer (stable)
  [26]  default/linux/amd64/17.1/no-multilib (stable)
  [27]  default/linux/amd64/17.1/no-multilib/hardened (stable)
  [28]  default/linux/amd64/17.1/no-multilib/hardened/selinux (stable)
  [29]  default/linux/amd64/17.1/systemd (stable)
  [30]  default/linux/amd64/17.0/musl (exp)
  [31]  default/linux/amd64/17.0/musl/hardened (exp)
  [32]  default/linux/amd64/17.0/musl/hardened/selinux (exp)
  [33]  default/linux/amd64/17.0/uclibc (exp)
  [34]  default/linux/amd64/17.0/uclibc/hardened (exp)
localhost ~ #


Code:

localhost ~ # emerge --info
Portage 2.3.89 (python 3.6.10-final-0, default/linux/amd64/17.1, gcc-9.2.0, glibc-2.30-r8, 4.19.97-gentoo x86_64)
=================================================================
System uname: Linux-4.19.97-gentoo-x86_64-Intel-R-_Core-TM-_i7-4820K_CPU_@_3.70GHz-with-gentoo-2.6
KiB Mem:    32878740 total,  16484188 free
KiB Swap:     524284 total,    522748 free
Timestamp of repository gentoo: Fri, 24 Apr 2020 04:30:01 +0000
Head commit of repository gentoo: 24483affb659d1be2cae1ccfa7f1e6c98803b58a
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17-r1::gentoo, 3.6.10::gentoo, 3.7.7-r1::gentoo
dev-util/cmake:           3.14.6::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://gentoo.ussg.indiana.edu/ https://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
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="acl alsa alsa-plugin amd64 berkdb bzip2 cli consolekit crypt cups cxx dbus dri fortran gdbm gtk3 iconv icu ipv6 jpeg jpg kms libtirpc lua modules multilib ncurses nls nptl openmp pam pcre ppds readline seccomp sndfile split-usr ssl tcpd tif tiff tools unicode wav xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="karbon sheets words" 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 greis 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="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="nouveau" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

localhost ~ #


Code:

localhost ~ # cat /etc/portage/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.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

CPU_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 cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

MAKEOPTS="-j5"


GENTOO_MIRRORS="https://gentoo.ussg.indiana.edu/ https://gentoo.osuosl.org/"


# some of these came from the ssd_256 build

USE="acl alsa alsa-plugin amd64 berkdb consolekit crypt cups cxx dbus gtk3 iconv icu ipv6 jpg jpeg kms lua modules multilib nls nptl pam ppds sndfile ssl tif tiff tools unicode wav xattr"


# turn this on before rebuilding @world
# need to turn off (comment out) for regular manual 'emerge -pv postgresql' to work
# EMERGE_DEFAULT_OPTS="--exclude gentoo-sources --exclude postgresql --exclude chromium --exclude firefox"

INPUT_DEVICES="libinput keyboard mouse"

VIDEO_CARDS="nouveau"
# VIDEO_CARDS="nvidia"
# VIDEO_CARDS="nouveau nvidia"


# This will permit all licenses, except End User License Agreements that
# this setup (and other setup stuff) allows you to use 'emerge --sync' like always
# This will permit all licenses, except End User License Agreements that

ACCEPT_LICENSE="* -@EULA"
localhost ~ #


.


Last edited by mjbjr on Fri May 08, 2020 8:43 am; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6504

PostPosted: Sun Apr 26, 2020 12:53 am    Post subject: Reply with quote

Update mesa to the stable version that's in the tree. While you're at it, you might want to set your CPU_FLAGS_X86 to something sane.
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 456
Location: /home

PostPosted: Sun Apr 26, 2020 6:32 am    Post subject: Reply with quote

https://bugzilla.xfce.org/show_bug.cgi?id=15963
Back to top
View user's profile Send private message
mjbjr
Apprentice
Apprentice


Joined: 02 Mar 2003
Posts: 265

PostPosted: Mon Apr 27, 2020 8:24 pm    Post subject: Reply with quote

Ant P. wrote:
Update mesa to the stable version that's in the tree. While you're at it, you might want to set your CPU_FLAGS_X86 to something sane.


I did update mesa (thanks for the pointer on that) and then I was able to update xorg-server, unfortunately, this hasn't solved the 'X' cpu usage creep. And yes, I did logout/in and a restart of xfce4
from console (I boot to runlevel 3, rcinit, no systemd)

18588 root 20 0 529488 222520 151864 S 13.0 0.7 132:53.17 X

you can see the after the log back in and restart 'X' cpu usage has gone from an initial floating 0.7-1.0% for cpu usage to current 12.6-13.0% cpu usage with no additional windows opened in say
the last 24hrs. BTW, xfwm4 is staying at a very nice 0.7% since I re-ermerged it awhile back.

Any further ideas?

One thing that is different with this install compared to my previous gentoo installs on this machine (same hardware for years now), is that I'm running the 'nouveau' driver instead of 'nvidia-drivers'.
Do you think that this could be causing the problem with 'X' cpu usage creep?

Thanks.

As for the CPU_FLAGS, I looked up the flags my cpu supports and added all of them. What is the problem with doing that?

Thanks for the help.

- Martin -
Back to top
View user's profile Send private message
mjbjr
Apprentice
Apprentice


Joined: 02 Mar 2003
Posts: 265

PostPosted: Mon Apr 27, 2020 8:26 pm    Post subject: Reply with quote

Juippisi wrote:
https://bugzilla.xfce.org/show_bug.cgi?id=15963


thanks for the link, I did check it out, but my problem rests elsewhere not with 'xfwm4'.
Back to top
View user's profile Send private message
mjbjr
Apprentice
Apprentice


Joined: 02 Mar 2003
Posts: 265

PostPosted: Fri May 08, 2020 8:42 am    Post subject: [SOLVED] xfwm4 and xorg-server eating 90% cpu cycles Reply with quote

Well, at least it seems to be...

I am happy to report that after 24hrs of normalish desktop usage, it appears that
moving from 'nouveau' to 'nvidia-drivers' has fixed the problem of increasing and
unstoppable abnormal cpu cycle consumption by 'xfwm4' and 'X'.

Both 'xfwm4' and 'X' are now running consistently at normal cpu usages of
0.7% and 0.7-1.3% respectively, as reported by 'top'.

- Martin -
.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6504

PostPosted: Fri May 08, 2020 11:51 pm    Post subject: Reply with quote

mjbjr wrote:
As for the CPU_FLAGS, I looked up the flags my cpu supports and added all of them. What is the problem with doing that?

Even ignoring the fact that blindly copying and pasting /proc/cpuinfo results in a long list of nothing and misspellings (cpuid2cpuflags exists for a reason)…

The correct variable name is CPU_FLAGS_X86. You have precisely zero of them enabled as a result.
Back to top
View user's profile Send private message
mjbjr
Apprentice
Apprentice


Joined: 02 Mar 2003
Posts: 265

PostPosted: Mon May 11, 2020 10:01 pm    Post subject: Reply with quote

Ant P. wrote:
mjbjr wrote:
As for the CPU_FLAGS, I looked up the flags my cpu supports and added all of them. What is the problem with doing that?

Even ignoring the fact that blindly copying and pasting /proc/cpuinfo results in a long list of nothing and misspellings (cpuid2cpuflags exists for a reason)…

The correct variable name is CPU_FLAGS_X86. You have precisely zero of them enabled as a result.


Thank you very much for that info, I will correct that.

Spellings aside, what would be the problem with enabling all CPU_FLAGS that the cpu recognizes?

Thank you.

- Martin -
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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