Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 771747 - net-misc/x2goserver: 100% CPU load when XComposite is being used (was: xfce-base/xfce4-meta-4.16-r2 causes 100% CPU load with net-misc/x2goserver)
Summary: net-misc/x2goserver: 100% CPU load when XComposite is being used (was: xfce-b...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-20 17:12 UTC by Norman Rieß
Modified: 2021-05-06 05:19 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
portage log for net-misc/x2goserver-4.1.0.3-r1 (net-misc.x2goserver-4.1.0.3-r1.20210409-184424.log,36.17 KB, text/plain)
2021-04-09 19:05 UTC, Peter Serbe
Details
log file for x2go connection (xsession-x2go-ariel-errors,2.71 KB, text/plain)
2021-04-10 12:59 UTC, Peter Serbe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Rieß 2021-02-20 17:12:28 UTC
xfce-base/xfce4-meta-4.16-r2 does not seem to work with net-misc/x2goserver any more.
After login the x2goagent process creates maximum load on one cpu core while the desktop is unusable slow.
The only exit is to kill x2goagent manually.

This problem did not exist in xfce-base/xfce4-meta-4.14.


There is a reference on the Gentoo forums:
https://forums.gentoo.org/viewtopic-p-8575527.html?sid=7af6f8f5edf7a729bdf052c6508a909c
Comment 1 Jonas Stein gentoo-dev 2021-02-20 23:46:27 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. That is why I ask you to 
* attach the logs and 
* paste the emerge info 
as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket

Sometimes there are visible precursors in the compiler warnings.

Which versions of net-misc/x2goserver did you try?

Also search for upstream reports on high CPU load in this combination
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-02-21 08:04:36 UTC
Try disabling USE=xcomposite on xfwm4.
Comment 3 Norman Rieß 2021-02-21 09:07:41 UTC
Thank you Michał, this completely solved the problem.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-02-21 09:22:26 UTC
I think it's a problem with x2goserver.
Comment 5 Norman Rieß 2021-02-21 10:06:48 UTC
This issue first appeared on x2goserver-4.1.0.2 after updating XFCE. I updated to net-misc/x2goserver-4.1.0.3-r1 with the same effect.

I am afraid, there is no build log for x2goserver or xfwm4 in /var/tmp/portage.


So here is the info of x2goserver:

emerge --info net-misc/x2goserver
Portage 3.0.13 (python 3.8.7-final-0, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.32-r6, 5.11.0 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.11.0-x86_64-Intel_Core_Processor_-Skylake-with-glibc2.2.5
KiB Mem:     4157756 total,   1477164 free
KiB Swap:   12533752 total,  12279256 free
Timestamp of repository gentoo: Sun, 21 Feb 2021 00:45:01 +0000
Head commit of repository gentoo: 7367523ceee8b89e464d709c1372c6404ddd40a1
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          3.8.7-r1::gentoo, 3.9.1-r1::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://heimdall.smash-net.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

matrix
    location: /var/lib/layman/matrix
    masters: gentoo
    priority: 50

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/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="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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="-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="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j2"
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 aes alsa amd64 avx avx2 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt dbus dri dts dvd dvdr elogind emboss encode exif flac fma3 fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc mad matroska mjpeg mmx mmxext mng mp3 mp4 mpeg multilib ncurses nls nptl ogg openmp opus pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp spell split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd theora tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 x265 xattr xcb xml xv xvid 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="evdev" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="cirrus" 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-misc/x2goserver-4.1.0.3-r1::gentoo was built with the following:
USE="fuse sqlite -postgres" ABI_X86="(64)"
Comment 6 Peter Serbe 2021-04-09 19:05:58 UTC
Created attachment 698859 [details]
portage log for net-misc/x2goserver-4.1.0.3-r1
Comment 7 Peter Serbe 2021-04-09 19:09:34 UTC
I hit the same bug and stopped my migration from LXDE to XFCE4... I will try to help as much as I can, but I am not an S/W engineer.

Here's my emerge --info



ariel /var/log/portage # emerge --info net-misc/x2goserver
Portage 3.0.17 (python 3.8.8-final-0, default/linux/amd64/17.1, gcc-10.2.0, glibc-2.32-r7, 5.10.27-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.10.27-gentoo-x86_64-Intel-R-_Core-TM-_i3-4170_CPU_@_3.70GHz-with-glibc2.2.5
KiB Mem:     8010016 total,   7206412 free
KiB Swap:    8254460 total,   8254460 free
Timestamp of repository gentoo: Tue, 06 Apr 2021 02:45:01 +0000
Head commit of repository gentoo: 3a886b73bbe7d2c5b89ff15f9983df8fc4235c5b
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
distcc 3.3.3 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18_p7::gentoo, 3.8.8::gentoo, 3.9.2::gentoo
dev-lang/rust:            1.47.0-r2::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.2-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.3.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://circe.home.serbe.ch/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:

PSeOverlay
    location: /usr/local/overlay
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=haswell -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/bind"
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=haswell -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict 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="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LC_ALL="de_DE.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j30 -l5"
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 aac acl acpi alsa amd64 bash-completion berkdb branding bzip2 caps cdr cli crypt cups dbus dri elogind fat firmware flac fortran gdbm git gnuplot gtk iconv intel ipv6 jpeg keyboard lame libglvnd libinput libtirpc lm_sensors lzma lzo modules mouse mp3 mp4 mplayer multilib ncurses nls nptl ntfs opengl openmp pam pcre pdf perl png python quota readline seccomp session sna sound split-usr sqlite ssl startup-notification suid tcpd threads truetype udev unicode xattr xfs xorg 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

=================================================================
                        Package Settings
=================================================================

net-misc/x2goserver-4.1.0.3-r1::gentoo was built with the following:
USE="fuse sqlite -postgres" ABI_X86="(64)"
Comment 8 Peter Serbe 2021-04-10 12:59:30 UTC
Created attachment 698937 [details]
log file for x2go connection

/usr/bin/x2goagent is causing the high CPU load. 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     ZEIT+ BEFEHL
 5315 HOME\pe+  20   0  120192  64132  11396 R  99,7   0,8  23:26.50 x2goagent

I also attach the log file, written by x2go. It looks not exactly great...
Comment 9 Joseph 2021-05-05 20:41:33 UTC
(In reply to Michał Górny from comment #2)
> Try disabling USE=xcomposite on xfwm4.

Michal which file I disable setting: "USE=xcomposite" ?

I too run: xfce4-meta-4.16-r2  with x2goserver-4.1.0.2 and it is very, very slow; almost unusable.  I try to downgrade to x2goserver-4.0.1.22; it compiled OK but I'm missing: all the file in dir: /usr/lib/x2go
Comment 10 Joseph 2021-05-06 04:56:08 UTC
The x2goserver-4.1.0.2 is very, very slow. Almost unusable.
When I set session type: XFCE the keyboard and mouse does not respond at all.
Session type: Connect to local desktop - it is very, very slow.

I went back to x2goserver-4.0.1.22 and selecting session type: XFCE, the system very fast and responsive.  
But Session type: Connect to local desktop is slow as well.
I don't know why?

Does it has to do anything with the the fact the CPU has an Integrated Graphics?
AMD Ryzen 5 3400G with Radeon Vega Graphics, 16MB of memory.
Comment 11 Norman Rieß 2021-05-06 05:19:48 UTC
(In reply to Joseph from comment #9)
> (In reply to Michał Górny from comment #2)
> > Try disabling USE=xcomposite on xfwm4.
> 
> Michal which file I disable setting: "USE=xcomposite" ?

Create a file "/etc/portage/package.use/xfce" with the content "xfce-base/xfwm4 -xcomposite".