I have a streaming application running on local machine, now i’d like to host it on cloud server.
I’m using Built-in render pipeline and have been successfully run it on cloud server with opengl mesa driver and using xvfb, but when i try to use gpu it fails.
The cloud server is running Ubuntu 20.04 LTS, nvidia driver has been successfully installed or at least i think so(write a pytorch script and run success). the error are as below:
>>>glxinfo | grep "OpenGL renderer"
OpenGL renderer string: NVIDIA Graphics Device/PCIe/SSE2
>>> glxgear
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 150 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 0
Current serial number in output stream: 33
>>>nvidia-smi
Fri Jan 10 16:11:45 2025
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.103.01 Driver Version: 470.103.01 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA Graphics... Off | 00000000:36:00.0 Off | 0 |
| N/A 33C P0 44W / 300W | 0MiB / 81251MiB | 0% Default |
| | | Disabled |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
Runing unity application show similar log as running glxgears.
Mono path[0] = '/home/hadoop-walle-infra/Autoviz/Build_Data/Managed'
Mono config path = '/home/hadoop-walle-infra/Autoviz/Build_Data/MonoBleedingEdge/etc'
Preloaded 'lib_burst_generated.so'
Preloaded 'libearcut.so'
Preloaded 'libgrpc_csharp_ext.so'
Display 0 'screen': 1024x768 (primary device).
[Physics::Module] Initialized MultithreadedJobDispatcher with 14 workers.
Desktop is 1024 x 768 @ 0 Hz
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 150 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 0
Current serial number in output stream: 105
I test dedicated server build, seems like dedicated server don’t support renderering even with open mesa driver.I think linux build is the right way, because i need the application to run as a renderering server, the renderering part is a must.
I will upgrade unity, but i doubt it has anything to do with unity, because glxgears also print the same error.
I think it should be something wrong with the driver or xvfb setting?
Oh i see what you mean two build. It’s the same build.
The first log is running trying to use nvidia driver with GPU which failed.
The second is running using OpenGL mesa driver with CPU.