LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-13-2016, 01:29 PM   #1
springshades
Member
 
Registered: Nov 2004
Location: Near Lansing, MI , USA
Distribution: Mainly just Mandriva these days.
Posts: 317

Rep: Reputation: 30
Disable Nvidia Libraries Without Disabling the Nvidia Drivers (Ubuntu 16.04)


This is going to take some background explanation since it probably sounds stupid.

First, the question is about a server system which is having an issue that is probably very rare for a server but possibly more common for some laptops and desktops which is why I'm posting to general help. Second, I'm attempting to find a workaround for an issue caused by a variety of bugs in Ubuntu's X stack and the Nvidia driver packages (version 367).

I have on hand a group of HPC servers which are GPU accelerated using Nvidia GTX 1070 cards. In addition, I have access to quite a few HPC servers as well as a few storage servers which are NOT GPU accelerated.

Software setup: CUDA acceleration for the GTX 1070 cards requires nvidia drivers with a minimum version of 367 (we're using the graphics-drivers PPA) and CUDA toolkit version 8.0. We have this setup with some machines on Ubuntu 14.04 and some on Ubuntu 16.04. The GTX 1070 cards are ONLY for compute. The "primary" graphics card is an ASPEED brand which uses the "ast" drivers. Neither of these cards are actually used for anything graphical, as the servers boot to a command line without a GUI, but I set these up so that you plug a monitor into the ASPEED card rather than the nvidia cards.

Goal: X forwarding with 3D support to use something like pymol or VMD from a different machine to analyze and view experimental results. So in this case, there is a local machine (which is the X server) which has a graphical interface and a remote machine which is the CUDA accelerated server described above (which is the X client). The nvidia drivers CANNOT be uninstalled or disabled on the remote machine.

For testing I have AT LEAST one machine with each of the following: (1) Ubuntu 14.04 server w/ nvidia drivers, (2) Ubuntu 16.04 server w/ nvidia drivers, (3) Ubuntu 14.04 server w/o nvidia drivers, (4) Ubuntu 16.04 server w/o nvidia drivers, (5) CentOS 7 server w/o nvidia drivers, (6) Ubuntu 16.04 client/desktop w/ nvidia drivers, (7) Ubuntu 14.04 client/desktop w/o nvidia drivers, (8) Ubuntu 16.04 client/desktop w/o nvidia drivers, (9) CentOS 7 client/desktop w/o nvidia drivers.

Summary of problem and testing: (1) ALL desktops can successfully use 2D X forwarding with ALL servers. (2) ALL desktops can successfully use 3D X forwarding with servers that DO NOT have nvidia drivers installed. (3) The desktop with nvidia drivers can successfully use 3D X forwarding with the servers that have nvidia drivers installed after a bunch of hacky changes. (4) The desktops WITHOUT nvidia drivers CANNOT use 3D X forwarding with the servers that DO have nvidia drivers.

I believe the issue is with the servers using the nvidia libraries that replace the standard mesa libraries (e.g. libGL and libGLX), so I'd like to disable those libraries and have the server favor using the standard ones instead. However, I don't know of a way to force this other than the solution possibly having something to do with ldconfig. This would be easy if I could simply uninstall the nvidia drivers, but the *primary* purpose of the servers is CUDA accelerated compute. The *secondary* purpose of the servers would be analysis and viewing the data. If the only way to attempt to do this is some sort of nightmare hybrid setup (I'm not going to even try to run bumblebee on a production server) then we simply won't be able to do both of these things on one server.
 
Old 09-13-2016, 10:01 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi:

I don't have experience with servers so I can't help you there.

Quote:
I believe the issue is with the servers using the nvidia libraries that replace the standard mesa libraries (e.g. libGL and libGLX)
Right, and that makes sense as this pages on libGL confirms that A DRI aware 3D driver currently based on Mesa.
https://dri.freedesktop.org/wiki/libGL/

Quote:
so I'd like to disable those libraries and have the server favor using the standard ones instead.
Keep in mind that libraries are engines that make other dependent lib's work and provide interfaces for functionality. Disabling may stop other things and halt other processes from working properly.

Quote:
However, I don't know of a way to force this other than the solution possibly having something to do with ldconfig.
I wouldn't know because I don't fully understand how dynamic loading works. Sorry:-

It's my hope that we have members with the experience to help you. Be patient there till they chime in and can give you advise.

https://www.quora.com/What-does-ldconfig-do
http://linux.about.com/od/commands/l...l8_ldconfi.htm
https://forums.opensuse.org/showthre...t-uninstall-it

Good Luck-
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to disable Twinview in Ubuntu's nvidia drivers. firekage Ubuntu 4 04-03-2013 12:02 PM
How to disable NVIDIA on laptop with combined Intel/Nvidia jlinkels Linux - Laptop and Netbook 4 08-28-2012 10:27 PM
Disable PaX for Nvidia Drivers dman777 Linux - Software 4 01-15-2011 02:30 AM
UNinstalling proprietry mandriva nVidia drivers and installing new nVidia drivers deathman Linux - Hardware 3 11-18-2006 05:10 AM
How do i disable X server to install the newest Nvidia drivers? linuxbullet Linux - Hardware 4 02-04-2004 11:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration