Subject: Bug#924: Performance x2golistsession

From: Heinrich Schuchardt <[email-masked]>
Date: Tue, 18 Aug 2015 19:51:40 +0200

Package: x2goserver
Severity: normal

I am running x2goserver 4.0.1.9 on an EdgeRouter Lite
with a dual core 500 MHz dual Octeon CPU.

I looked at the CPU time consumption while no x2go session was active.

ps -A shows the following processes.
  609 ?        00:00:02 x2gocleansessio
11923 ?        00:00:01 x2golistsession
11930 ?        00:00:01 x2gosqlitewrapp

609 is the parent 11923, 11930 are children with varying PID.

These 3 processes are shown in program top often as major CPU consumers.

After 4700 s uptime x2gocleansession has used

2041 s CPU time spent in user code, including time from children
 538 s CPU time spent in kernel code, including time from children

Why is x2golistsession eating up 25% of the available CPU?

Best regards

Heinrich Schuchardt

Debian Jessie mips
Kernel 4.1.3 #10 SMP PREEMPT mips64 GNU/Linux

./libnx-mesa-extras-dev_3.5.0.32-0x2go1.1_mips.deb
./libnx-x11_3.5.0.32-0x2go1.1_mips.deb
./libnx-x11-6_3.5.0.32-0x2go1.1_mips.deb
./libnx-x11-6-dbg_3.5.0.32-0x2go1.1_mips.deb
./libnx-x11-dev_3.5.0.32-0x2go1.1_mips.deb
./libnx-xau6_3.5.0.32-0x2go1.1_mips.deb
./libnx-xau6-dbg_3.5.0.32-0x2go1.1_mips.deb
./libnx-xau-dev_3.5.0.32-0x2go1.1_mips.deb
./libnx-xcomposite1_3.5.0.32-0x2go1.1_mips.deb
./libnx-xcomposite1-dbg_3.5.0.32-0x2go1.1_mips.deb
./libnx-xcomposite-dev_3.5.0.32-0x2go1.1_mips.deb
./libnx-xdamage1_3.5.0.32-0x2go1.1_mips.deb
./libnx-xdamage1-dbg_3.5.0.32-0x2go1.1_mips.deb
./libnx-xdamage-dev_3.5.0.32-0x2go1.1_mips.deb
./libnx-xdmcp6_3.5.0.32-0x2go1.1_mips.deb
./libnx-xdmcp6-dbg_3.5.0.32-0x2go1.1_mips.deb
./libnx-xdmcp-dev_3.5.0.32-0x2go1.1_mips.deb
./libnx-xext6_3.5.0.32-0x2go1.1_mips.deb
./libnx-xext6-dbg_3.5.0.32-0x2go1.1_mips.deb
./libnx-xext-dev_3.5.0.32-0x2go1.1_mips.deb
./libnx-xfixes3_3.5.0.32-0x2go1.1_mips.deb
./libnx-xfixes3-dbg_3.5.0.32-0x2go1.1_mips.deb
./libnx-xfixes-dev_3.5.0.32-0x2go1.1_mips.deb
./libnx-xinerama1_3.5.0.32-0x2go1.1_mips.deb
./libnx-xinerama1-dbg_3.5.0.32-0x2go1.1_mips.deb
./libnx-xinerama-dev_3.5.0.32-0x2go1.1_mips.deb
./libnx-xpm4_3.5.0.32-0x2go1.1_mips.deb
./libnx-xpm4-dbg_3.5.0.32-0x2go1.1_mips.deb
./libnx-xpm-dev_3.5.0.32-0x2go1.1_mips.deb
./libnx-xrandr2_3.5.0.32-0x2go1.1_mips.deb
./libnx-xrandr2-dbg_3.5.0.32-0x2go1.1_mips.deb
./libnx-xrandr-dev_3.5.0.32-0x2go1.1_mips.deb
./libnx-xrender1_3.5.0.32-0x2go1.1_mips.deb
./libnx-xrender1-dbg_3.5.0.32-0x2go1.1_mips.deb
./libnx-xrender-dev_3.5.0.32-0x2go1.1_mips.deb
./libnx-xtst6_3.5.0.32-0x2go1.1_mips.deb
./libnx-xtst6-dbg_3.5.0.32-0x2go1.1_mips.deb
./libnx-xtst-dev_3.5.0.32-0x2go1.1_mips.deb
./libxcomp3_3.5.0.32-0x2go1.1_mips.deb
./libxcomp3-dbg_3.5.0.32-0x2go1.1_mips.deb
./libxcomp-dev_3.5.0.32-0x2go1.1_mips.deb
./libxcompext3_3.5.0.32-0x2go1.1_mips.deb
./libxcompext3-dbg_3.5.0.32-0x2go1.1_mips.deb
./libxcompext-dev_3.5.0.32-0x2go1.1_mips.deb
./libxcompshad3_3.5.0.32-0x2go1.1_mips.deb
./libxcompshad3-dbg_3.5.0.32-0x2go1.1_mips.deb
./libxcompshad-dev_3.5.0.32-0x2go1.1_mips.deb
./nxagent_3.5.0.32-0x2go1.1_mips.deb
./nxagent-dbg_3.5.0.32-0x2go1.1_mips.deb
./nxauth_3.5.0.32-0x2go1.1_mips.deb
./nxauth-dbg_3.5.0.32-0x2go1.1_mips.deb
./nxproxy_3.5.0.32-0x2go1.1_mips.deb
./nxproxy-dbg_3.5.0.32-0x2go1.1_mips.deb
./nx-x11-common_3.5.0.32-0x2go1.1_all.deb
./nx-x11proto-composite-dev_3.5.0.32-0x2go1.1_mips.deb
./nx-x11proto-core-dev_3.5.0.32-0x2go1.1_mips.deb
./nx-x11proto-damage-dev_3.5.0.32-0x2go1.1_mips.deb
./nx-x11proto-randr-dev_3.5.0.32-0x2go1.1_mips.deb
./nx-x11proto-render-dev_3.5.0.32-0x2go1.1_mips.deb
./nx-x11proto-xext-dev_3.5.0.32-0x2go1.1_mips.deb
./nx-x11proto-xfixes-dev_3.5.0.32-0x2go1.1_mips.deb
./nx-x11proto-xinerama-dev_3.5.0.32-0x2go1.1_mips.deb
./x2goagent_3.5.0.32-0x2go1.1_all.deb
./x2goserver_4.0.1.9-0x2go1.1_mips.deb
./x2goserver-compat_4.0.1.9-0x2go1.1_all.deb
./x2goserver-extensions_4.0.1.9-0x2go1.1_all.deb
./x2goserver-fmbindings_4.0.1.9-0x2go1.1_all.deb
./x2goserver-printing_4.0.1.9-0x2go1.1_all.deb
./x2goserver-pyhoca_4.0.1.9-0x2go1.1_all.deb
./x2goserver-xsession_4.0.1.9-0x2go1.1_all.deb