Why matlab is slow in Linux?
42 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am trying to use matlab in my computer with Ubuntu 14.04
Hardware:
Intel xeon E5 x15
Hard drive 4 Tb
Solid State Drive(where matlab and the system are installed) 256 Gb
Ram memory: 64 Gb
GPU:
Nvidia Titan X Pascal 12 Gb x4 = 48 Gb of GPU
Liquid cooling System
The computer is in a room with controlled climate
But MATLAB is unusable, very slow
When i open MATLAB i get this error in the console:
com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x29faccc, isOwner false, <4109866c, 58583dcf>[count 0, qsz 0, owner <NULL>]]]
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:326)
at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:297)
at java.lang.Thread.run(Unknown Source)
Caused by: com.jogamp.opengl.GLException: glXGetConfig(0x1) failed: error code Unknown error code 6
at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.glXGetConfig(X11GLXGraphicsConfiguration.java:570)
at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.XVisualInfo2GLCapabilities(X11GLXGraphicsConfiguration.java:500)
at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationXVisual(X11GLXGraphicsConfigurationFactory.java:434)
at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationStatic(X11GLXGraphicsConfigurationFactory.java:240)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createMutableSurfaceImpl(X11GLXDrawableFactory.java:524)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createDummySurfaceImpl(X11GLXDrawableFactory.java:535)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:283)
... 2 more
When i run the Bench command i get this message:
JavaSceneServerPeer problem: Couldn't create JOGL canvas--using painters
The benchmark results are very bad

When i run the opengl info command i get this:
com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x29faccc, isOwner false, <4109866c, 58583dcf>[count 0, qsz 0, owner <NULL>]]]
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:326)
at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:297)
at java.lang.Thread.run(Unknown Source)
Caused by: com.jogamp.opengl.GLException: glXGetConfig(0x1) failed: error code Unknown error code 6
at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.glXGetConfig(X11GLXGraphicsConfiguration.java:570)
at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.XVisualInfo2GLCapabilities(X11GLXGraphicsConfiguration.java:500)
at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationXVisual(X11GLXGraphicsConfigurationFactory.java:434)
at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationStatic(X11GLXGraphicsConfigurationFactory.java:240)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createMutableSurfaceImpl(X11GLXDrawableFactory.java:524)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createDummySurfaceImpl(X11GLXDrawableFactory.java:535)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:283)
... 2 more
com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x29faccc, isOwner false, <4109866c, 58583dcf>[count 0, qsz 0, owner <NULL>]]]
↑
Error: Unexpected MATLAB expression.
Thank you
1 comentario
Joss Knight
el 16 de Nov. de 2017
It doesn't look exactly the same symptom, but it could be static TLS issues. Which version of MATLAB are you running?
If it is static TLS you can work around it by starting MATLAB with option -softwareopengl, or using the following:
Workaround: Start MATLAB in the foreground with nodesktop and then run opengl info and then open the desktop:
matlab -nodesktop -r "opengl info, desktop"
Upgrading to Ubuntu 16 may also fix it.
Respuestas (2)
Arthur Fernnado
el 19 de Oct. de 2020
Editada: Arthur Fernnado
el 19 de Oct. de 2020
I am using matlab-2020b remotely. My destination system has Quadro P1000 high end card.
My local system has a GeForce GTX 1070 card, which is also a high end card.
My Linux workstation (destination) has Intel(R) Xeon(R) W-2145 CPU @ 3.70GHz / 6 cores
This Machine relative speed the slowest. This is a mid-ranged CPU, which is relatively good.
I am using NoMachine for X-forwarding from home.
Note: even at the console I get poor performance.
Appreciate your input on this issue.
2 comentarios
Bowen Song
el 12 de Feb. de 2022
yeah. still no improvments though. it is a real issue. I install matlab 2020 on a ubuntu machine with 16 core cpu and its app design mode is so slow, I had to recode everything in python ....
Steven Lord
el 15 de Nov. de 2017
The numerical benchmark numbers are fine. Even 2-D graphics are okay; not great, but not horrible.
The problem is in 3-D graphics. What does the output of these commands show? [They might error out; that would be useful information as well.]
opengl info
D = opengl('data')
Do the 3-D benchmark number improve and do you avoid those messages if you start MATLAB with the -softwareopengl flag?
2 comentarios
Steven Lord
el 15 de Nov. de 2017
If the 3-D benchmark task didn't take 60+ seconds, it might be first. The somewhat slow time in the 2-D task might prevent that even if the 3-D task didn't, but I haven't calculated what your machine's score would be based on a different 3-D task timing.
The page to which that warning message directed you is here. Try some of the steps listed on that page. If none of those resolve the issue, I would contact Technical Support directly for more in-depth investigation as per the last session on that page.
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!