Re: [X2Go-User] 800GB log file .xsession-x2go-...-errors
Can confirm, I had the same problem and upgrading nxagent fixed it. — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden From: x2go-user On Behalf Of Ulrich Sibiller Sent: den 7 mars 2021 14:34 To: m.her...@gmx.de Cc: x2go users Subject: Re: [X2Go-User] 800GB log file .xsession-x2go-...-errors Please upgrade to nxagent 3.5.99.26, the bug is fixed there. Uli m.her...@gmx.de<mailto:m.her...@gmx.de> mailto:m.her...@gmx.de>> schrieb am So., 7. März 2021, 14:06: Hi! thank you for creating this nice free software! I tried x2go on Debian 10 server with KDE desktop. Everything worked fine out of the box until 3 days later when I noticed the server disk was full: in /home/dozent: -rw--- 1 dozent dozent 800G Mär 7 12:48 .xsession-x2go-bootserver-neu-errors [19069:19098:0307/002314.670828:ERROR:gl_surface_qt.cpp(296)] eglCreatePbufferSurface failed and surfaceless context not available [19069:19098:0307/002314.670831:ERROR:gl_surface_qt.cpp(303)] Requested OpenGL implementation is not supported. Implementation: 0 [19069:19098:0307/002314.670834:ERROR:gl_surface_qt.cpp(296)] eglCreatePbufferSurface failed and surfaceless context not available [19069:19098:0307/002314.670838:ERROR:gl_surface_qt.cpp(303)] Requested OpenGL implementation is not supported. Implementation: 0 I deleted the file and killed all processes of user "dozent" to free the disk space again. can you give me any advice how to avoid or limit those messages? Thank you! ___ x2go-user mailing list x2go-user@lists.x2go.org<mailto:x2go-user@lists.x2go.org> https://lists.x2go.org/listinfo/x2go-user ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Have x2go use Windows 10 default ssh-agent
Dear Uli, Thanks for your quick response. Apologies - yes I sent the wrong link for the integration between Windows 10 OpenSSH client and WSL. This is the correct one: https://polansky.co/blog/a-better-windows-wsl-openssh-experience/ I think I'm almost there now. I'll put some more time into it later this week to see what I can find out. Does the integrated libssh expect a unix-style socket? — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: Ulrich Sibiller Sent: Tuesday, October 20, 2020 11:03 To: Johannes Töger Cc: x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Have x2go use Windows 10 default ssh-agent On Tue, Oct 20, 2020 at 10:27 AM Johannes Töger wrote: > Windows 10 comes with an “OpenSSH Authentication Agent” that manages > SSH keys. Once added, the SSH keys are kept in the Windows 10 > Credential Storage and encrypted/decrypted with the user login. > Documentation here: > https://docs.microsoft.com/en-us/windows-server/administration/openssh > /openssh_keymanagement > > I was able to use this for ssh in WSL using this github repo: > https://github.com/bahamas10/windows-bash-ssh-agent Well, I am bit confused now. The upper solution is using a windows service called ssh-agent which seems to be coupled to the Windows 10 Credential Storage. However, the lower solution is running the ssh-agent inside and shell session (bash.exe). Which looks to me like a standard ssh-agent that stores the keys in memory. The only trick here is to prevent the agent from being killed with the closing of the last bash. So - for me - these are two distinct solutions to the same problem. Please correct me if I got this wrong. > Is it possible to have the Windows x2go client talk to the Windows 10 > ssh-agent? I was able to do it using Pageant, but that is less > convenient/integrated IMO. It all depends on how these ssh-agents are accessible. Normally an ssh-agent is found using an environment variable called SSH_AUTH_SOCK. If that variable is set accordingly by the above solutions x2goclient (or rather the integrated libssh) should already be enabled to it today (you already proved that by running pageant) Uli ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
[X2Go-User] Have x2go use Windows 10 default ssh-agent
Hi, Windows 10 comes with an "OpenSSH Authentication Agent" that manages SSH keys. Once added, the SSH keys are kept in the Windows 10 Credential Storage and encrypted/decrypted with the user login. Documentation here: https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_keymanagement I was able to use this for ssh in WSL using this github repo: https://github.com/bahamas10/windows-bash-ssh-agent Is it possible to have the Windows x2go client talk to the Windows 10 ssh-agent? I was able to do it using Pageant, but that is less convenient/integrated IMO. By the way: Thanks for a great software package! - Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Matlab graphics performance when running in x2go
No flicker. It works well but crashes. - Johannes Töger From: Aki Ketolainen Sent: Thursday, June 18, 2020 2:03:22 PM To: Johannes Töger Cc: x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Matlab graphics performance when running in x2go Hi Johannes, I meant to ask whether Matlab flickers for you when you set the newer Mesa libgl-xlib version in the x2go session. Best regards, Aki On 2020-06-18 14:53, Johannes Töger wrote: No, I haven't tried these. Let me know if you learn something interesting. — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden From: Aki Ketolainen Sent: Thursday, June 18, 2020 13:17 To: Johannes Töger Cc: x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Matlab graphics performance when running in x2go On 2020-06-02 21:56, Johannes Töger wrote: > I finally figured it out! Now I can run Matlab R2019b on Ubuntu 18.04 LTS > with decent graphics performance over x2go, > even with transparency using the Mesa llvmpipe software OpenGL driver. Hi Johannes, When I do the LD_LIBRARY_PATH switcheroo for Mesa libgl-xlib, the OpenGL program Kivy and the test program glxgears start flickering quite much. Kivy doesn't even work with the default x2go OpenGL version. Do you experience this and would you have advice on how to get rid of it? The programs still work ok and don't crash. I'm running x2go server in a Docker container on CentOS 7. Best regards, Aki ___ x2go-user mailing list x2go-user@lists.x2go.org<mailto:x2go-user@lists.x2go.org> https://lists.x2go.org/listinfo/x2go-user ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Matlab graphics performance when running in x2go
No, I haven’t tried these. Let me know if you learn something interesting. — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden From: Aki Ketolainen Sent: Thursday, June 18, 2020 13:17 To: Johannes Töger Cc: x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Matlab graphics performance when running in x2go On 2020-06-02 21:56, Johannes Töger wrote: > I finally figured it out! Now I can run Matlab R2019b on Ubuntu 18.04 LTS > with decent graphics performance over x2go, > even with transparency using the Mesa llvmpipe software OpenGL driver. Hi Johannes, When I do the LD_LIBRARY_PATH switcheroo for Mesa libgl-xlib, the OpenGL program Kivy and the test program glxgears start flickering quite much. Kivy doesn't even work with the default x2go OpenGL version. Do you experience this and would you have advice on how to get rid of it? The programs still work ok and don't crash. I'm running x2go server in a Docker container on CentOS 7. Best regards, Aki ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Matlab graphics performance when running in x2go
I just did some more testing, and found some rare crashes. Using MESA_GL_VERSION_OVERRIDE=3.1COMPAT seems more stable. — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: Ulrich Sibiller Sent: Tuesday, June 2, 2020 21:10 To: Johannes Töger Cc: x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Matlab graphics performance when running in x2go Thanks, I have included that in the wiki: https://wiki.x2go.org/doku.php/wiki:development:glx-xlib-workaround#matlab_2019b Uli On Tue, Jun 2, 2020 at 8:56 PM Johannes Töger wrote: > > I finally figured it out! Now I can run Matlab R2019b on Ubuntu 18.04 LTS > with decent graphics performance over x2go, even with transparency using the > Mesa llvmpipe software OpenGL driver. > > Benchmark for a simple scene: > > No transparency: ~40 ms per frame > With transparency: ~58 ms per frmae > > So still some performance penalty for transparency, but much better. > > > HOWTO: > > First install LLVM: sudo apt install llvm-dev > > I downloaded mesa-20.1.0 (latest version right now) and configured it like > this (in the unzipped source directory): > > mkdir build > cd build > meson -D glx=gallium-xlib -D gallium-drivers=swrast -D platforms=x11 > -D dri3=false -D dri-drivers="" -D vulkan-drivers="" -D > buildtype=release -D optimization=3 -Dprefix=/usr/local/mesa-20.1.0/ > > Then I built and installed it as follows: > ninja > sudo ninja install > > Then to make Matlab load the new driver, I needed to modify Matlab's lib > search path: > cp $MATLAB_DIRECTORY/bin/.matlab7rc.sh ~ > > Edit the file ~/.matlab7rc.sh, find the glnxa* section and add > /usr/local/mesa-20.1.0/lib/x86_64-linux-gnu to LDPATH_PREFIX > > Add to your .profile: export MESA_GL_VERSION_OVERRIDE=3.0 > > Seems like anything will work for the version override except for 3.1, but I > didn't debug this further. > > > — > Johannes Töger > > Associate Senior Lecturer > Cardiac MR Group > Department of Clinical Sciences Lund, Clinical Physiology Lund > University, Sweden > > -Original Message- > From: Ulrich Sibiller > Sent: Wednesday, May 27, 2020 14:29 > To: Johannes Töger > Subject: Re: [X2Go-User] Matlab graphics performance when running in > x2go > > Thanks! > > On Wed, May 27, 2020 at 1:59 PM Johannes Töger > wrote: > > > > OK I see - we only have CUDA cards in those machines to do computations, so > > VirtualGL won't work then. > > > > Maybe I'll try to compile an optimized software Mesa/Gallium -- I'll let > > you know what happens if I find something interesting, so it's documented > > on the mailing list at least. > > > > > > — > > Johannes Töger > > > > Associate Senior Lecturer > > Cardiac MR Group > > Department of Clinical Sciences Lund, Clinical Physiology Lund > > University, Sweden > > > > -Original Message- > > From: Ulrich Sibiller > > Sent: Wednesday, May 27, 2020 13:20 > > To: Johannes Töger > > Cc: x2go users > > Subject: Re: [X2Go-User] Matlab graphics performance when running in > > x2go > > > > On Wed, May 27, 2020 at 1:07 PM Johannes Töger > > wrote: > > > > > > Thanks for your quick reply. > > > > > > It turns out that Matlab by default uses an older Mesa software rendering > > > module (17.3) when there is no hardware OpenGL. I tried to compile my own > > > version with additional optimizations and LLVMPipe etc, but Matlab > > > wouldn't accept it. No more time to debug it today, but maybe later. > > > > > > Is there any documentation on using VirtualGL with x2go? I tried to > > > google it, but no luck. > > > > Not that I am aware. I have never checked it out practically. > > Generally you will have to dedicate the graphics hardware to that > > (only) session which might make it a no-go, depending on your setup. > > > > Uli > ___ > x2go-user mailing list > x2go-user@lists.x2go.org > https://lists.x2go.org/listinfo/x2go-user ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Matlab graphics performance when running in x2go
I finally figured it out! Now I can run Matlab R2019b on Ubuntu 18.04 LTS with decent graphics performance over x2go, even with transparency using the Mesa llvmpipe software OpenGL driver. Benchmark for a simple scene: No transparency: ~40 ms per frame With transparency: ~58 ms per frmae So still some performance penalty for transparency, but much better. HOWTO: First install LLVM: sudo apt install llvm-dev I downloaded mesa-20.1.0 (latest version right now) and configured it like this (in the unzipped source directory): mkdir build cd build meson -D glx=gallium-xlib -D gallium-drivers=swrast -D platforms=x11 -D dri3=false -D dri-drivers="" -D vulkan-drivers="" -D buildtype=release -D optimization=3 -Dprefix=/usr/local/mesa-20.1.0/ Then I built and installed it as follows: ninja sudo ninja install Then to make Matlab load the new driver, I needed to modify Matlab's lib search path: cp $MATLAB_DIRECTORY/bin/.matlab7rc.sh ~ Edit the file ~/.matlab7rc.sh, find the glnxa* section and add /usr/local/mesa-20.1.0/lib/x86_64-linux-gnu to LDPATH_PREFIX Add to your .profile: export MESA_GL_VERSION_OVERRIDE=3.0 Seems like anything will work for the version override except for 3.1, but I didn't debug this further. — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: Ulrich Sibiller Sent: Wednesday, May 27, 2020 14:29 To: Johannes Töger Subject: Re: [X2Go-User] Matlab graphics performance when running in x2go Thanks! On Wed, May 27, 2020 at 1:59 PM Johannes Töger wrote: > > OK I see - we only have CUDA cards in those machines to do computations, so > VirtualGL won't work then. > > Maybe I'll try to compile an optimized software Mesa/Gallium -- I'll let you > know what happens if I find something interesting, so it's documented on the > mailing list at least. > > > — > Johannes Töger > > Associate Senior Lecturer > Cardiac MR Group > Department of Clinical Sciences Lund, Clinical Physiology Lund > University, Sweden > > -Original Message- > From: Ulrich Sibiller > Sent: Wednesday, May 27, 2020 13:20 > To: Johannes Töger > Cc: x2go users > Subject: Re: [X2Go-User] Matlab graphics performance when running in > x2go > > On Wed, May 27, 2020 at 1:07 PM Johannes Töger > wrote: > > > > Thanks for your quick reply. > > > > It turns out that Matlab by default uses an older Mesa software rendering > > module (17.3) when there is no hardware OpenGL. I tried to compile my own > > version with additional optimizations and LLVMPipe etc, but Matlab wouldn't > > accept it. No more time to debug it today, but maybe later. > > > > Is there any documentation on using VirtualGL with x2go? I tried to google > > it, but no luck. > > Not that I am aware. I have never checked it out practically. > Generally you will have to dedicate the graphics hardware to that > (only) session which might make it a no-go, depending on your setup. > > Uli ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Suspending sessions causes performance slowing down
Should be "with and without transparency"... — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: x2go-user On Behalf Of Johannes Töger Sent: Tuesday, June 2, 2020 11:58 To: Ulrich Sibiller Cc: x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Suspending sessions causes performance slowing down I did some quick benchmarks by rotating a simple 3D model with and without benchmarks, see script at the end. Transparency is turned off by setting alpha = 1. Baseline: Without transparency: 71±11 ms per frame With transparency: 781±112 ms per frame Using export _JAVA_OPTIONS=-Dsun.java2d.xrender=true: Without transparency: 69±12 ms per frame With transparency: 771±110 ms per frame So within the measurement variance. function matlab_graphics_perf_test Nang = 50; azvec = linspace(-180, 180, Nang) + 45; el = 27; figure(9) [x,y,z] = peaks; alpha = 0.5; surf(x,y,z, 'FaceAlpha', alpha) axis vis3d Tvec = zeros(size(azvec)); for azloop = 1:length(azvec) tic view([azvec(azloop) el]) drawnow Tvec(azloop) = toc; end fprintf('Average frame time: %g ± %g s\n', mean(Tvec), std(Tvec)); end — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: Ulrich Sibiller Sent: Tuesday, June 2, 2020 11:04 To: Johannes Töger Cc: h i ; x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Suspending sessions causes performance slowing down Usually you can instruct java to use xrender by calling java with "-Dsun.java2d.xrender=true" or run "export _JAVA_OPTIONS=-Dsun.java2d.xrender=true" prior to starting the java application. You can also configure that globally: https://serverfault.com/questions/270924/setting-java-runtime-setting-for-all-users-on-a-client-pc This generally should reduce the number of pixmap related calls. But I don't know if it will have any effect on jogl. Uli On Tue, Jun 2, 2020 at 10:47 AM Johannes Töger wrote: > > I can answer about the GUI toolkit. I was debugging MATLAB performance issues > last week so I looked into this. > > Matlab uses the jobamp/jogl framework. https://jogamp.org/jogl/www/ > > In my Ubuntu/x2go/MATE setup, it falls back on a "software OpenGL" mode, > which actually looks like MESA/Gallium software rendering: > > In Matlab: > >> opengl info > Version: '2.1 Mesa 17.1.3' >Vendor: 'Brian Paul' > Renderer: 'Mesa X11' >MaxTextureSize: 16384 >Visual: 'Visual 0x61, (RGBA 32 bits (8 8 8 8), Z > depth 16 bits, Hardware acceleration, Double buffer, Antialias 0 samples)' > Software: 'true' > HardwareSupportLevel: 'none (known graphics driver issues)' > SupportsGraphicsSmoothing: 0 > SupportsDepthPeelTransparency: 1 >SupportsAlignVertexCenters: 0 >Extensions: {152×1 cell} >MaxFrameBufferSize: 16384 > > > > johannes@compute-2:/usr/local/MATLAB/R2019a/sys/opengl/lib/glnxa64$ ls > -1 C11ThreadEmulationLibraryLicense.rights > EXTHeaderLicense.rights > GalliumCodeLicense.rights > GLXClientCodeLicense.rights > libGL.so.1 > libGL.so.1.6.0 > libGLU.rights > libGLU.so.1 > libGLU.so.1.3.1 > MesaDeviceDriversLicense.rights > MesaLicense.rights > > > — > Johannes Töger > > Associate Senior Lecturer > Cardiac MR Group > Department of Clinical Sciences Lund, Clinical Physiology Lund > University, Sweden > > -Original Message- > From: x2go-user On Behalf Of Ulrich > Sibiller > Sent: Tuesday, June 2, 2020 09:15 > To: h i > Cc: x2go-user@lists.x2go.org > Subject: Re: [X2Go-User] Suspending sessions causes performance > slowing down > > On Tue, Jun 2, 2020 at 3:04 AM h i wrote: > > I ran a few tests and see the issue is GUI related in our case. It seems to > > speak to the 2nd reason for sleep you described regarding the sending of > > pixmaps. > > > > I ran two MATLAB scripts. Both including the same steps. However, 1 > > script suppressed pop-windows tracking the script status. The 2nd > > script did not suppress the pop-up windows displaying > > What gui toolkit is matlab using? > > > real-time status. The 1st script involving command lines ran in the same > > amount whether the session was active or suspended. No reduction of time or > > CPU usage. The 2nd script took much longer and CPU was reduced > > sign
Re: [X2Go-User] Suspending sessions causes performance slowing down
I did some quick benchmarks by rotating a simple 3D model with and without benchmarks, see script at the end. Transparency is turned off by setting alpha = 1. Baseline: Without transparency: 71±11 ms per frame With transparency: 781±112 ms per frame Using export _JAVA_OPTIONS=-Dsun.java2d.xrender=true: Without transparency: 69±12 ms per frame With transparency: 771±110 ms per frame So within the measurement variance. function matlab_graphics_perf_test Nang = 50; azvec = linspace(-180, 180, Nang) + 45; el = 27; figure(9) [x,y,z] = peaks; alpha = 0.5; surf(x,y,z, 'FaceAlpha', alpha) axis vis3d Tvec = zeros(size(azvec)); for azloop = 1:length(azvec) tic view([azvec(azloop) el]) drawnow Tvec(azloop) = toc; end fprintf('Average frame time: %g ± %g s\n', mean(Tvec), std(Tvec)); end — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: Ulrich Sibiller Sent: Tuesday, June 2, 2020 11:04 To: Johannes Töger Cc: h i ; x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Suspending sessions causes performance slowing down Usually you can instruct java to use xrender by calling java with "-Dsun.java2d.xrender=true" or run "export _JAVA_OPTIONS=-Dsun.java2d.xrender=true" prior to starting the java application. You can also configure that globally: https://serverfault.com/questions/270924/setting-java-runtime-setting-for-all-users-on-a-client-pc This generally should reduce the number of pixmap related calls. But I don't know if it will have any effect on jogl. Uli On Tue, Jun 2, 2020 at 10:47 AM Johannes Töger wrote: > > I can answer about the GUI toolkit. I was debugging MATLAB performance issues > last week so I looked into this. > > Matlab uses the jobamp/jogl framework. https://jogamp.org/jogl/www/ > > In my Ubuntu/x2go/MATE setup, it falls back on a "software OpenGL" mode, > which actually looks like MESA/Gallium software rendering: > > In Matlab: > >> opengl info > Version: '2.1 Mesa 17.1.3' >Vendor: 'Brian Paul' > Renderer: 'Mesa X11' >MaxTextureSize: 16384 >Visual: 'Visual 0x61, (RGBA 32 bits (8 8 8 8), Z > depth 16 bits, Hardware acceleration, Double buffer, Antialias 0 samples)' > Software: 'true' > HardwareSupportLevel: 'none (known graphics driver issues)' > SupportsGraphicsSmoothing: 0 > SupportsDepthPeelTransparency: 1 >SupportsAlignVertexCenters: 0 >Extensions: {152×1 cell} >MaxFrameBufferSize: 16384 > > > > johannes@compute-2:/usr/local/MATLAB/R2019a/sys/opengl/lib/glnxa64$ ls > -1 C11ThreadEmulationLibraryLicense.rights > EXTHeaderLicense.rights > GalliumCodeLicense.rights > GLXClientCodeLicense.rights > libGL.so.1 > libGL.so.1.6.0 > libGLU.rights > libGLU.so.1 > libGLU.so.1.3.1 > MesaDeviceDriversLicense.rights > MesaLicense.rights > > > — > Johannes Töger > > Associate Senior Lecturer > Cardiac MR Group > Department of Clinical Sciences Lund, Clinical Physiology Lund > University, Sweden > > -Original Message- > From: x2go-user On Behalf Of Ulrich > Sibiller > Sent: Tuesday, June 2, 2020 09:15 > To: h i > Cc: x2go-user@lists.x2go.org > Subject: Re: [X2Go-User] Suspending sessions causes performance > slowing down > > On Tue, Jun 2, 2020 at 3:04 AM h i wrote: > > I ran a few tests and see the issue is GUI related in our case. It seems to > > speak to the 2nd reason for sleep you described regarding the sending of > > pixmaps. > > > > I ran two MATLAB scripts. Both including the same steps. However, 1 > > script suppressed pop-windows tracking the script status. The 2nd > > script did not suppress the pop-up windows displaying > > What gui toolkit is matlab using? > > > real-time status. The 1st script involving command lines ran in the same > > amount whether the session was active or suspended. No reduction of time or > > CPU usage. The 2nd script took much longer and CPU was reduced > > significantly while the session was suspended. > > > > A few questions: > > > > for X2GO_NXOPTIONS="sleep=0", what does 0 represent in time. If I set the > > value to 1000, what would that mean? > > This defines how long nxagent should sleep. The unit should be microseconds > but there's a ticket for doublechecking that because it looks like a mixup > happened during implementa
Re: [X2Go-User] Suspending sessions causes performance slowing down
I can answer about the GUI toolkit. I was debugging MATLAB performance issues last week so I looked into this. Matlab uses the jobamp/jogl framework. https://jogamp.org/jogl/www/ In my Ubuntu/x2go/MATE setup, it falls back on a "software OpenGL" mode, which actually looks like MESA/Gallium software rendering: In Matlab: >> opengl info Version: '2.1 Mesa 17.1.3' Vendor: 'Brian Paul' Renderer: 'Mesa X11' MaxTextureSize: 16384 Visual: 'Visual 0x61, (RGBA 32 bits (8 8 8 8), Z depth 16 bits, Hardware acceleration, Double buffer, Antialias 0 samples)' Software: 'true' HardwareSupportLevel: 'none (known graphics driver issues)' SupportsGraphicsSmoothing: 0 SupportsDepthPeelTransparency: 1 SupportsAlignVertexCenters: 0 Extensions: {152×1 cell} MaxFrameBufferSize: 16384 johannes@compute-2:/usr/local/MATLAB/R2019a/sys/opengl/lib/glnxa64$ ls -1 C11ThreadEmulationLibraryLicense.rights EXTHeaderLicense.rights GalliumCodeLicense.rights GLXClientCodeLicense.rights libGL.so.1 libGL.so.1.6.0 libGLU.rights libGLU.so.1 libGLU.so.1.3.1 MesaDeviceDriversLicense.rights MesaLicense.rights — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: x2go-user On Behalf Of Ulrich Sibiller Sent: Tuesday, June 2, 2020 09:15 To: h i Cc: x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Suspending sessions causes performance slowing down On Tue, Jun 2, 2020 at 3:04 AM h i wrote: > I ran a few tests and see the issue is GUI related in our case. It seems to > speak to the 2nd reason for sleep you described regarding the sending of > pixmaps. > > I ran two MATLAB scripts. Both including the same steps. However, 1 > script suppressed pop-windows tracking the script status. The 2nd > script did not suppress the pop-up windows displaying What gui toolkit is matlab using? > real-time status. The 1st script involving command lines ran in the same > amount whether the session was active or suspended. No reduction of time or > CPU usage. The 2nd script took much longer and CPU was reduced significantly > while the session was suspended. > > A few questions: > > for X2GO_NXOPTIONS="sleep=0", what does 0 represent in time. If I set the > value to 1000, what would that mean? This defines how long nxagent should sleep. The unit should be microseconds but there's a ticket for doublechecking that because it looks like a mixup happened during implementation (https://github.com/ArcticaProject/nx-libs/issues/928). > Is the idle-nice-level=19 for suspended sessions the default setting? As I said I don't know the superreniver feature in detail. > Would the supernicer setting override the x2goagent sleep option setting? no, they are two different things. > What would be an example command for the -irlimit option in x2goagent.options > file. see https://github.com/ArcticaProject/nx-libs/issues/796 Uli ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Matlab graphics performance when running in x2go
Thanks for your quick reply. It turns out that Matlab by default uses an older Mesa software rendering module (17.3) when there is no hardware OpenGL. I tried to compile my own version with additional optimizations and LLVMPipe etc, but Matlab wouldn't accept it. No more time to debug it today, but maybe later. Is there any documentation on using VirtualGL with x2go? I tried to google it, but no luck. — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: Ulrich Sibiller Sent: Wednesday, May 27, 2020 10:09 To: Johannes Töger Cc: x2go users Subject: Re: [X2Go-User] Matlab graphics performance when running in x2go On Wed, May 27, 2020 at 9:51 AM Johannes Töger wrote: > We’re running x2go on a compute server. Some of our apps are written in > Matlab with interactive GUI:s. We are seeing quite poor graphics performance > after moving from Matlab R2014a to R2019a, especially when using transparency > in 3D graphics. This might be connected to the fact that Matlab goes into a > software OpenGL mode. X2go using NX cannot use hardware acceleration. Depending on your setup you can try one of these approaches: - https://wiki.x2go.org/doku.php/wiki:development:glx-xlib-workaround - VirtualGL - use x2gokdrive https://wiki.x2go.org/doku.php/wiki:advanced:x2gokdrive:start Uli ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
[X2Go-User] Matlab graphics performance when running in x2go
Hi everyone, We're running x2go on a compute server. Some of our apps are written in Matlab with interactive GUI:s. We are seeing quite poor graphics performance after moving from Matlab R2014a to R2019a, especially when using transparency in 3D graphics. This might be connected to the fact that Matlab goes into a software OpenGL mode. Does anyone have experience with this? Any solutions? Ubuntu 18.04 LTS MATE desktop environment Matlab R2019a x2goserver 4.1.0.3-0~1708~ubuntu1 libnx-x11-6:amd64 2:3.5.99.22-0+git20190 nxagent2:3.5.99.22-0+git20190 - Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Can x2go session be initiated from a server to listening client?
Maybe do some kind of SSH tunnel first? — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: x2go-user On Behalf Of Ulrich Sibiller Sent: Monday, April 6, 2020 19:45 To: Andrew Munn Cc: x2go users Subject: Re: [X2Go-User] Can x2go session be initiated from a server to listening client? To my knowledge this is not possible with x2go. But I am pretty sure is possible by using the bare nx libs (nxagent/nxproxy. But you have to setup everything by hand then. Uli On Mon, Apr 6, 2020 at 7:20 PM Andrew Munn wrote: > > I'd like to initiate an x2go session from a server behind a firewall to a > listening client with port 22 open. How can that be done? thanks! > ___ > x2go-user mailing list > x2go-user@lists.x2go.org > https://lists.x2go.org/listinfo/x2go-user ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Long-running x2goagent, high memory usage
Hi, Yesterday I found some time to upgrade the packages. I did the following: 1. Downloaded all packages, (.22, amd64, 18.04 versions) from http://packages.arctica-project.org/ubuntu/pool/main/n/nx-libs/ 2. sudo dpkg -i *deb to install everything 3. Asked users to end sessions and reconnect. After this, the x2go memory use is <= 350 MB for each user and no longer growing (last 18 hours). So problem fixed from my point of view! Thanks for all your help. — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: Ulrich Sibiller Sent: Friday, January 24, 2020 09:44 To: Johannes Töger Cc: Bernd Schubert ; x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Long-running x2goagent, high memory usage Well, from MPOV you do not need a shutdown. Just update the nx packages. The next new connection will use the new nxagent. Let me now when you want to compile an own version, so that I can provide some instructions for sanitizer integration. (I need to figure that out again since I mainly use valgrind). Uli On Fri, Jan 24, 2020 at 8:35 AM Johannes Töger wrote: > > Yeah, I could absolutely compile my own version. I think it might be better > to try with the .deb packages you linked first though. > > I need to ask my users for a window where I can shut down everything first, > so might take a few days before I can organize this. > > — > Johannes Töger > > Associate Senior Lecturer > Cardiac MR Group > Department of Clinical Sciences Lund, Clinical Physiology Lund > University, Sweden > > -Original Message- > From: Ulrich Sibiller > Sent: Thursday, January 23, 2020 19:43 > To: Johannes Töger > Cc: Bernd Schubert ; > x2go-user@lists.x2go.org > Subject: Re: [X2Go-User] Long-running x2goagent, high memory usage > > On Thu, Jan 23, 2020 at 7:35 PM Johannes Töger > wrote: > > > > Thanks to you both for getting involved in this. > > > > I've been swamped with other things, so not much to report. I did manage to > > plot the x2goagent memory use over time though. Maybe this can help. > > > > Link to plot: > > https://imgur.com/a/lDqZ2zd > > > > As you see, several users have a constant memory use. However, 3 of them > > have a constantly increasing memory use. So not isolated incidents that > > leak, but rather a continuous drip. > > OK, well, do you think you could compile an own version of x2go? > > Uli ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Long-running x2goagent, high memory usage
Yeah, I could absolutely compile my own version. I think it might be better to try with the .deb packages you linked first though. I need to ask my users for a window where I can shut down everything first, so might take a few days before I can organize this. — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: Ulrich Sibiller Sent: Thursday, January 23, 2020 19:43 To: Johannes Töger Cc: Bernd Schubert ; x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Long-running x2goagent, high memory usage On Thu, Jan 23, 2020 at 7:35 PM Johannes Töger wrote: > > Thanks to you both for getting involved in this. > > I've been swamped with other things, so not much to report. I did manage to > plot the x2goagent memory use over time though. Maybe this can help. > > Link to plot: > https://imgur.com/a/lDqZ2zd > > As you see, several users have a constant memory use. However, 3 of them have > a constantly increasing memory use. So not isolated incidents that leak, but > rather a continuous drip. OK, well, do you think you could compile an own version of x2go? Uli ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Long-running x2goagent, high memory usage
Thanks to you both for getting involved in this. I've been swamped with other things, so not much to report. I did manage to plot the x2goagent memory use over time though. Maybe this can help. Link to plot: https://imgur.com/a/lDqZ2zd As you see, several users have a constant memory use. However, 3 of them have a constantly increasing memory use. So not isolated incidents that leak, but rather a continuous drip. — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: x2go-user On Behalf Of Bernd Schubert Sent: Thursday, January 23, 2020 16:11 To: Ulrich Sibiller Cc: x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Long-running x2goagent, high memory usage On 1/23/20 3:41 PM, Ulrich Sibiller wrote: > Ok, that's fine, too! I am curious about the results! > > Uli > > PS: Well, Johannes started the thread and I tried to help him, I am a > bit confused that now you (Bernd) kick in. Are you a colleague of > Johannes or are you also seeing that problem? Ah sorry, no, I'm just reading the thread. I had similar issues in the past with x2go, but right now long running sessions work pretty well. I'm also coding all the time and the compiler sanitizers are great help and work so much faster than valgrind - I just tried to point that out. Sorry for confusion. - Bernd ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Long-running x2goagent, high memory usage
Great, I see in the blog that you did a lot of work on fixing memory leaks. I'll try to install the .22 version. But isn't it strange that I can't find or have an nx-libs package installed? What's going on there? Is the packaging for Ubuntu 18.04 LTS done in some other way? — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: Ulrich Sibiller Sent: Tuesday, January 21, 2020 10:39 To: Johannes Töger Cc: x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Long-running x2goagent, high memory usage On Tue, Jan 21, 2020 at 9:39 AM Johannes Töger wrote: > > OK, thanks. > > Sending the answers again, maybe they were cut by the mailing list before. I have now found it, don't know how I managed to miss it. Sorry. > Question: What version of x2goagent resp. nxagent are you using? dpkg -l > nx-libs? > > Answer: > dpkg -l nx-libs: no packages found <--- this seems strange? > x2goserver-x2goagent 4.1.0.3-0~1708~ubuntu1 amd64 nxagent > 2:3.5.99.20-0~20190425 amd64 Ok, we are at 3.5.99.22 at the moment (see https://sunweavers.net/blog/node/97) and close to 3.5.99.23 although x2go is not having packages for that yet. So please try http://packages.arctica-project.org/ubuntu/pool/main/n/nx-libs/ (do not use the current nightlies, they miss a patch which fixes regular crashes) Uli > > > Question: Can you please run xrestop within such a session and check if there > are numbers that are far away from those of a fresh session? > Answer: Nothing out of the ordinary there I think. No processes with high > memory usage. > > > Question: You probably cannot answer that due to your usage scenario, but > anyway: does this also happen when you do not disconnect/reconnect? > Answer: I don't know. I started logging the memory usage over time, so when > the problem arises next time I can correlate with log events and ask the > users what they have been doing at certain times etc. > > > Question: What are you running inside the session?fdasfafad > Answer: No real pattern here for good and bad sessions. Matlab, > Python/machine learning stuff, NVIDIA CUDA-accelerated machine learning > programs etc. Maybe a browser here and there to look up stuff (Firefox). > > > — > Johannes Töger > > Associate Senior Lecturer > Cardiac MR Group > Department of Clinical Sciences Lund, Clinical Physiology Lund > University, Sweden > > > -Original Message- > From: Ulrich Sibiller > Sent: Monday, January 20, 2020 15:45 > To: Johannes Töger > Cc: x2go-user@lists.x2go.org > Subject: Re: [X2Go-User] Long-running x2goagent, high memory usage > > Sorry, I forgot to check, but probably not today. But can you please answer > my questions in the meantime? > > Basically you must replace the x2go binary with a little wrapper that use > valgrind to start the original binary with the original arguments. > > Uli > > On Mon, Jan 20, 2020 at 2:26 PM Johannes Töger > wrote: > > > > I have now set up a logging of the memory use over time. I hope this will > > give some data so we can understand the error. Hopefully I can correlate > > the memory use increase with user actions. > > > > Ulrich, were you able to figure out if x2go can be run with valgrind? > > > > — > > Johannes Töger > > > > Associate Senior Lecturer > > Cardiac MR Group > > Department of Clinical Sciences Lund, Clinical Physiology Lund > > University, Sweden > > > > -Original Message- > > From: x2go-user On Behalf Of > > Johannes Töger > > Sent: Friday, January 17, 2020 16:28 > > To: Ulrich Sibiller > > Cc: x2go-user@lists.x2go.org > > Subject: Re: [X2Go-User] Long-running x2goagent, high memory usage > > > > Thanks for quick reply. > > > > Answers to your questions below. I hope it gives some clue. Please let me > > know what else I can try. > > > > > > > > What version of x2goagent resp. nxagent are you using? dpkg -l nx-libs? > > > > dpkg -l nx-libs: no packages found <--- this seems strange? > > > > x2goserver-x2goagent 4.1.0.3-0~1708~ubuntu1 amd64 > > nxagent 2:3.5.99.20-0~20190425 amd64 > > > > Can you please run xrestop within such a session and check if there are > > numbers that are far away from those of a fresh session? > > > > Nothing out of the ordinary there I think. No processes with high > > memory usage. > > > > You probably cannot answer that due to your usage scenario, but > > anyway: does this also happe
Re: [X2Go-User] Long-running x2goagent, high memory usage
OK, thanks. Sending the answers again, maybe they were cut by the mailing list before. Question: What version of x2goagent resp. nxagent are you using? dpkg -l nx-libs? Answer: dpkg -l nx-libs: no packages found <--- this seems strange? x2goserver-x2goagent 4.1.0.3-0~1708~ubuntu1 amd64 nxagent 2:3.5.99.20-0~20190425 amd64 Question: Can you please run xrestop within such a session and check if there are numbers that are far away from those of a fresh session? Answer: Nothing out of the ordinary there I think. No processes with high memory usage. Question: You probably cannot answer that due to your usage scenario, but anyway: does this also happen when you do not disconnect/reconnect? Answer: I don't know. I started logging the memory usage over time, so when the problem arises next time I can correlate with log events and ask the users what they have been doing at certain times etc. Question: What are you running inside the session?fdasfafad Answer: No real pattern here for good and bad sessions. Matlab, Python/machine learning stuff, NVIDIA CUDA-accelerated machine learning programs etc. Maybe a browser here and there to look up stuff (Firefox). — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: Ulrich Sibiller Sent: Monday, January 20, 2020 15:45 To: Johannes Töger Cc: x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Long-running x2goagent, high memory usage Sorry, I forgot to check, but probably not today. But can you please answer my questions in the meantime? Basically you must replace the x2go binary with a little wrapper that use valgrind to start the original binary with the original arguments. Uli On Mon, Jan 20, 2020 at 2:26 PM Johannes Töger wrote: > > I have now set up a logging of the memory use over time. I hope this will > give some data so we can understand the error. Hopefully I can correlate the > memory use increase with user actions. > > Ulrich, were you able to figure out if x2go can be run with valgrind? > > — > Johannes Töger > > Associate Senior Lecturer > Cardiac MR Group > Department of Clinical Sciences Lund, Clinical Physiology Lund > University, Sweden > > -Original Message- > From: x2go-user On Behalf Of > Johannes Töger > Sent: Friday, January 17, 2020 16:28 > To: Ulrich Sibiller > Cc: x2go-user@lists.x2go.org > Subject: Re: [X2Go-User] Long-running x2goagent, high memory usage > > Thanks for quick reply. > > Answers to your questions below. I hope it gives some clue. Please let me > know what else I can try. > > > > What version of x2goagent resp. nxagent are you using? dpkg -l nx-libs? > > dpkg -l nx-libs: no packages found <--- this seems strange? > > x2goserver-x2goagent 4.1.0.3-0~1708~ubuntu1 amd64 > nxagent 2:3.5.99.20-0~20190425 amd64 > > Can you please run xrestop within such a session and check if there are > numbers that are far away from those of a fresh session? > > Nothing out of the ordinary there I think. No processes with high > memory usage. > > You probably cannot answer that due to your usage scenario, but > anyway: does this also happen when you do not disconnect/reconnect? > > I'll try to think of a way to test this. > > What are you running inside the session? > > No real pattern here for good and bad sessions. Matlab, > Python/machine learning stuff, NVIDIA CUDA-accelerated machine learning > programs etc. > > — > Johannes Töger > > Associate Senior Lecturer > Cardiac MR Group > Department of Clinical Sciences Lund, Clinical Physiology Lund > University, Sweden > > -Original Message- > From: Ulrich Sibiller > Sent: Friday, January 17, 2020 13:25 > To: Johannes Töger > Cc: x2go-user@lists.x2go.org > Subject: Re: [X2Go-User] Long-running x2goagent, high memory usage > > On Fri, Jan 17, 2020 at 11:56 AM Johannes Töger > wrote: > > We are using x2go for a common compute server at our department. We have > > users both on the local LAN and connections to the other side of Europe > > that work really well. Being able to close the client and have computations > > still running in a GUI environment is great. > > > > However, I think we have encountered a bug. Some (but not all) of the > > long-running x2goagent processes start taking a lot of memory, ~30 GB. This > > adds up quickly so that the other users can’t do their work. Below you can > > see how user3 and user7 have x2goagent processes with large memory use (RSS > > column). > > > > How can I go about debugging this? I have quite a bit of Linux experience, > &
Re: [X2Go-User] Long-running x2goagent, high memory usage
I have now set up a logging of the memory use over time. I hope this will give some data so we can understand the error. Hopefully I can correlate the memory use increase with user actions. Ulrich, were you able to figure out if x2go can be run with valgrind? — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: x2go-user On Behalf Of Johannes Töger Sent: Friday, January 17, 2020 16:28 To: Ulrich Sibiller Cc: x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Long-running x2goagent, high memory usage Thanks for quick reply. Answers to your questions below. I hope it gives some clue. Please let me know what else I can try. What version of x2goagent resp. nxagent are you using? dpkg -l nx-libs? dpkg -l nx-libs: no packages found <--- this seems strange? x2goserver-x2goagent 4.1.0.3-0~1708~ubuntu1 amd64 nxagent 2:3.5.99.20-0~20190425 amd64 Can you please run xrestop within such a session and check if there are numbers that are far away from those of a fresh session? Nothing out of the ordinary there I think. No processes with high memory usage. You probably cannot answer that due to your usage scenario, but anyway: does this also happen when you do not disconnect/reconnect? I'll try to think of a way to test this. What are you running inside the session? No real pattern here for good and bad sessions. Matlab, Python/machine learning stuff, NVIDIA CUDA-accelerated machine learning programs etc. — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: Ulrich Sibiller Sent: Friday, January 17, 2020 13:25 To: Johannes Töger Cc: x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Long-running x2goagent, high memory usage On Fri, Jan 17, 2020 at 11:56 AM Johannes Töger wrote: > We are using x2go for a common compute server at our department. We have > users both on the local LAN and connections to the other side of Europe that > work really well. Being able to close the client and have computations still > running in a GUI environment is great. > > However, I think we have encountered a bug. Some (but not all) of the > long-running x2goagent processes start taking a lot of memory, ~30 GB. This > adds up quickly so that the other users can’t do their work. Below you can > see how user3 and user7 have x2goagent processes with large memory use (RSS > column). > > How can I go about debugging this? I have quite a bit of Linux experience, > but I don’t know where to start on this one since I don’t know much about how > x2go works internally. > > Server is on Ubuntu Server 18.04.1 LTS, (x2goserver > 4.1.0.3-0~1708~ubuntu18.04.1). Clients are on Windows 10, version. 4.1.2.0. > > johannes@compute-server:~$ ps -o pid,lstart,rss,user $(pgrep > x2goagent) What version of x2goagent resp. nxagent are you using? dpkg -l nx-libs? Can you please run xrestop within such a session and check if there are numbers that are far away from those of a fresh session? You probably cannot answer that due to your usage scenario, but anyway: does this also happen when you do not disconnect/reconnect? What are you running inside the session? You could run x2goagent with valgrind to identify memory leaks but I am unsure if that is working on a stock installation ( I don't do the packaging for Debian/Ubuntu so I don't know if the deliveres binaries allow for decent analysis/output). I'll check that this weekend. Uli ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Long-running x2goagent, high memory usage
Thanks for quick reply. Answers to your questions below. I hope it gives some clue. Please let me know what else I can try. What version of x2goagent resp. nxagent are you using? dpkg -l nx-libs? dpkg -l nx-libs: no packages found <--- this seems strange? x2goserver-x2goagent 4.1.0.3-0~1708~ubuntu1 amd64 nxagent 2:3.5.99.20-0~20190425 amd64 Can you please run xrestop within such a session and check if there are numbers that are far away from those of a fresh session? Nothing out of the ordinary there I think. No processes with high memory usage. You probably cannot answer that due to your usage scenario, but anyway: does this also happen when you do not disconnect/reconnect? I'll try to think of a way to test this. What are you running inside the session? No real pattern here for good and bad sessions. Matlab, Python/machine learning stuff, NVIDIA CUDA-accelerated machine learning programs etc. — Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden -Original Message- From: Ulrich Sibiller Sent: Friday, January 17, 2020 13:25 To: Johannes Töger Cc: x2go-user@lists.x2go.org Subject: Re: [X2Go-User] Long-running x2goagent, high memory usage On Fri, Jan 17, 2020 at 11:56 AM Johannes Töger wrote: > We are using x2go for a common compute server at our department. We have > users both on the local LAN and connections to the other side of Europe that > work really well. Being able to close the client and have computations still > running in a GUI environment is great. > > However, I think we have encountered a bug. Some (but not all) of the > long-running x2goagent processes start taking a lot of memory, ~30 GB. This > adds up quickly so that the other users can’t do their work. Below you can > see how user3 and user7 have x2goagent processes with large memory use (RSS > column). > > How can I go about debugging this? I have quite a bit of Linux experience, > but I don’t know where to start on this one since I don’t know much about how > x2go works internally. > > Server is on Ubuntu Server 18.04.1 LTS, (x2goserver > 4.1.0.3-0~1708~ubuntu18.04.1). Clients are on Windows 10, version. 4.1.2.0. > > johannes@compute-server:~$ ps -o pid,lstart,rss,user $(pgrep > x2goagent) What version of x2goagent resp. nxagent are you using? dpkg -l nx-libs? Can you please run xrestop within such a session and check if there are numbers that are far away from those of a fresh session? You probably cannot answer that due to your usage scenario, but anyway: does this also happen when you do not disconnect/reconnect? What are you running inside the session? You could run x2goagent with valgrind to identify memory leaks but I am unsure if that is working on a stock installation ( I don't do the packaging for Debian/Ubuntu so I don't know if the deliveres binaries allow for decent analysis/output). I'll check that this weekend. Uli ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
[X2Go-User] Long-running x2goagent, high memory usage
Hi, We are using x2go for a common compute server at our department. We have users both on the local LAN and connections to the other side of Europe that work really well. Being able to close the client and have computations still running in a GUI environment is great. However, I think we have encountered a bug. Some (but not all) of the long-running x2goagent processes start taking a lot of memory, ~30 GB. This adds up quickly so that the other users can't do their work. Below you can see how user3 and user7 have x2goagent processes with large memory use (RSS column). How can I go about debugging this? I have quite a bit of Linux experience, but I don't know where to start on this one since I don't know much about how x2go works internally. Server is on Ubuntu Server 18.04.1 LTS, (x2goserver 4.1.0.3-0~1708~ubuntu18.04.1). Clients are on Windows 10, version. 4.1.2.0. johannes@compute-server:~$ ps -o pid,lstart,rss,user $(pgrep x2goagent) PID STARTEDRSS USER 4668 Fri Nov 8 08:35:35 2019 60896 user1 5743 Wed Dec 4 15:44:41 2019 249456 user2 14728 Thu Dec 5 10:17:25 2019 34926120user3 19408 Fri Dec 20 08:46:30 2019 199720 user4 48797 Wed Oct 2 15:34:44 2019 297680 user5 50693 Thu Dec 12 18:24:24 2019 317796 user6 54561 Thu Dec 19 09:35:34 2019 28977804user7 56244 Fri Jan 17 08:19:29 2020 170856 user8 60386 Thu Nov 14 09:23:37 2019 146416 user9 johannes@compute-server:~$ apt show x2goserver Package: x2goserver Version: 4.1.0.3-0~1708~ubuntu18.04.1 - Johannes Töger Associate Senior Lecturer Cardiac MR Group Department of Clinical Sciences Lund, Clinical Physiology Lund University, Sweden ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user