Why matlab is slow in Linux?

조회 수: 39 (최근 30일)
Dagoberto Pulido
Dagoberto Pulido 2017년 11월 15일
댓글: Bowen Song 2022년 2월 12일
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
Joss Knight
Joss Knight 2017년 11월 16일
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.

댓글을 달려면 로그인하십시오.

답변 (2개)

Arthur Fernnado
Arthur Fernnado 2020년 10월 19일
편집: Arthur Fernnado 2020년 10월 19일
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
Joss Knight
Joss Knight 2020년 10월 19일
Hi, this is a very old question, you should ask a new question.
Bowen Song
Bowen Song 2022년 2월 12일
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
Steven Lord 2017년 11월 15일
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?
You might also want to try some of the suggestions from this Answers post.
  댓글 수: 2
Dagoberto Pulido
Dagoberto Pulido 2017년 11월 15일
But with my hardware
Intel Xeon E5 x15
64 Gb of RAM
48Gb of dedicated Video memory
My computer should be maybe in number one of the benchmark list
I got this from that command
MATLAB has experienced a low-level graphics error, and may not have drawn correctly. Read about what you can do to prevent this issue at Resolving Low-Level Graphics Issues then restart MATLAB. To share details of this issue with MathWorks technical support, please include this file with your service request. Version: '' Vendor: '' Renderer: 'None' RendererDriverVersion: '' RendererDriverReleaseDate: '' MaxTextureSize: 0 Visual: '' Software: 1 HardwareSupportLevel: 'none' SupportsGraphicsSmoothing: 0 SupportsDepthPeelTransparency: 0 SupportsAlignVertexCenters: 0 Extensions: {} MaxFrameBufferSize: 0
Steven Lord
Steven Lord 2017년 11월 15일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by