1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

NVIDIA Developer Talks Openly About Linux Support

Michael Larabel

Published on 20 October 2009
Written by Michael Larabel
Page 7 of 8 - 131 Comments

Q: If the NVIDIA Linux driver developers had a wishlist for changes to Linux and accompanying libraries/software, what would the top few items be?

I'm not sure. I suppose some of the responses to the next question could be applied here.

Q: Which part of Linux / X.Org is most troublesome?

The hardest thing about distributing a proprietary driver for Linux is to build a binary that will run across as many Linux distributions as possible. The challenges with this are:

1) The lack of a stable API in the Linux kernel. This is not a large obstacle for us, though: the kernel interface layer of the NVIDIA kernel module is distributed as source code, and compiled at install time for the version and configuration of the kernel in use. This requires occasional maintenance to update for new kernel interface changes, but generally is not too much work.

That said, the kernel API churn sometimes seems unfortunate: in some cases, working interfaces are broken or replaced with broken ones for no seemingly good reason. In some other cases, APIs that were previously available to us are rendered unusable.

2) The (recently, more quickly) changing ABI in the X.Org DDX. As in #1, this isn't a large obstacle for us: in recent driver branches, we can fairly easily build in support for multiple X server ABIs.

3) Being very careful about library and symbol dependencies in any of the binaries we distribute. The classic newbie mistakes here are things like:

a) Compiling/linking something on a new distro against a fairly recent version of glibc, and then trying to run that binary on a different distro, with a slightly older version of glibc. Classic errors are things like:

undefined reference to `regexec@@GLIBC_2.3.4'
undefined reference to `__ctype_b'

b) Linking against the C++ runtime library (libstdc++) but then a different distro having a different version of the libstdc++.

libstdc++.so.6: cannot open shared object file: No such file or directory

We avoid these problems by a) explicitly linking against a very old glibc, and b) avoiding use of the C++ runtime. However, it requires careful attention.

#1 and #2 are our own fault for trying to produce a binary-only Linux driver (I consider this the price we pay for leveraging so much of the core kernel module from NVIDIA's cross-platform code base).

However, I've seen #3 bite many others just trying to provide an application on Linux. Many people eventually give up and just certify their commercial application for a small controlled list of Linux distributions that all have the same glibc and libstdc++ versions, or rebuild their application for different targeted distributions.

Providing a more consistent runtime environment for applications I think is an area for improvement in the Linux user space. To be fair, my experiences with the problems in #3 are a bit stale, so there might be less churn in DSO interfaces these days. And I should note that the actual Linux kernel ABI to user space is quite robust -- the point is mostly just about the DSOs that applications link against. I should also note that Ulrich Drepper's DSO How To [16] is an excellent resource for anyone trying to portably use Linux DSOs (in addition to those of us trying to produce portable Linux DSOs).

Latest Linux Hardware Reviews
  1. NVIDIA GeForce GTX 970 Offers Great Linux Performance
  2. CompuLab Intense-PC2: An Excellent, Fanless, Mini PC Powered By Intel's i7 Haswell
  3. From The Atom 330 To Haswell ULT: Intel Linux Performance Benchmarks
  4. AMD Radeon R9 285 Tonga Performance On Linux
Latest Linux Articles
  1. 6-Way Ubuntu 14.10 Linux Desktop Benchmarks
  2. Ubuntu 14.10 XMir System Compositor Benchmarks
  3. Btrfs RAID HDD Testing On Ubuntu Linux 14.10
  4. Ubuntu 14.10 Linux 32-bit vs. 64-bit Performance
Latest Linux News
  1. GTK+ Lands Experimental Backend For Mir Display Server
  2. Ubuntu 14.10 Officially Released
  3. Mesa 10.4 Might Re-Enable HyperZ For R600g/RadeonSI
  4. Intel GVT-g GPU Virtualization Moves Closer
  5. GTK+ 3.16 To Bring Several New Features
  6. Debian 8.0 Jessie Has Many Multimedia Improvements
  7. What Linux Benchmarks Would You Like To See Next?
  8. Open-Source, Linux Support For Corsair Link Devices Slowly Materializing
  9. Cairo-Dock 3.4 Shows A Lot Of Progress, Works Toward EGL/Wayland Support
  10. Mesa 10.4 Tentatively Planned For Early December
Latest Forum Discussions
  1. Linux hacker compares Solaris kernel code:
  2. Advertisements On Phoronix
  3. HOPE: The Ease Of Python With The Speed Of C++
  4. Updated and Optimized Ubuntu Free Graphics Drivers
  5. Users/Developers Threatening Fork Of Debian GNU/Linux
  6. Ubuntu 16.04 Might Be The Distribution's Last 32-Bit Release
  7. AMD Releases UVD Video Decode Support For R600 GPUs
  8. Proof that strlcpy is un-needed