Nvidia Optimus

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Nvidia Optimus is a computer graphics hardware power/performance optimization technology created by Nvidia which, depending on the resource load generated by client software applications, will transparently and seamlessly switch between two graphics adapters within a computer system in order to provide either maximum performance or minimum power draw from the system's graphics rendering hardware. Specifically, Optimus is a particular implementation of what is commonly known as "switchable graphics" or, more generically, as GPU switching.

A typical platform includes both a lower-performance integrated unit by Intel and a high-performance one by Nvidia. Optimus saves battery life by automatically switching the power of the discrete graphics processing unit (GPU) off when it is not needed and switching it on when needed again. The technology mainly targets mobile PCs such as notebooks.[1][a] When the GPU power is off, the driver redirects graphics commands to the integrated graphics chip. The switching is designed to be completely seamless and to happen "behind the scenes".

Of operating systems, Windows and GNU/Linux are officially supported by Nvidia. A project called Bumblebee brings open source support of Optimus to GNU/Linux.[4]

Method of function (Windows description)[edit]

When a user launches an application, the graphics driver tries to determine whether the application would benefit from the discrete GPU. If so, the GPU is powered up from an idle state and is passed all rendering calls. Even in this case, though, the integrated graphics processor (IGP) is used to output the final image. When less demanding applications are used, the IGP takes sole control, allowing for longer battery life and less fan noise. Under MS-Windows the nVidia driver also provides the option to manually select the GPU in the right-click menu upon launching an executable.

Within the hardware interface layer of the NVIDIA GPU driver, the Optimus Routing Layer provides intelligent graphics management. The Optimus Routing Layer also includes a kernel-level library for recognizing and managing specific classes and objects associated with different graphics devices. This NVIDIA innovation performs state and context management, allocating architectural resources as needed for each driver client (i.e., application). In this context-management scheme, each application is not aware of other applications concurrently using the GPU.

By recognizing designated classes, the Optimus Routing Layer can help determine when the GPU can be utilized to improve rendering performance. Specifically, it sends a signal to power-on the GPU when it finds any of the following three call types:

  • DX Calls: Any 3D game engine or DirectX application will trigger these calls
  • DXVA Calls: Video playback will trigger these calls (DXVA = DirectX Video Acceleration)
  • CUDA Calls: CUDA applications will trigger these calls

Predefined profiles also assist in determining whether extra graphics power is needed. These can be managed using the NVIDIA Control Panel.

Optimus avoids usage of a hardware multiplexer and prevents glitches associated with changing the display driver from IGP to GPU by transferring the display surface from the GPU frame buffer over the PCI Express bus to the main memory-based framebuffer used by the IGP. The Optimus Copy Engine is a new alternative to traditional DMA transfers between the GPU framebuffer memory and main memory used by the IGP.

GNU/Linux support[edit]

In the middle the free and open-source driver stack consisting of Mesa 3D and libDRM in user-space and DRM/KMS driver in the Linux kernel. Nvidia's proprietary kernel blob cannot make uses of DMA_BUF because of license restrictions.

Official Nvidia driver[edit]

The binary Nvidia driver added partial Optimus support May 3, 2013 in the 319.17.[5] As of May 2013, power management for discrete card is not supported, which means it cannot save battery by turning off Nvidia graphic card completely.[6]

Bumblebee[edit]

The open-source project Bumblebee tries to provide support for graphics-chip switching. As in the Windows implementation, by default all applications run through the integrated graphics processor. As of 2013 one can only run a program with improved graphical performance on the discrete GPU by explicitly invoking it as such - for example, by using the command line or through specially configured shortcut-icons. Automatic detection and switching between graphics processors is not yet available.

Work in progress on a graphical interface - bumblebee-ui - aims to allow more convenient starting of programs for improved graphical performance when necessary.

Steam for GNU/Linux can be set up to run games using the discrete GPU (Steam Community: Optimus and Steam for Linux).

The Bumblebee Project continues to evolve as more necessary software changes are made to the graphics architecture of GNU/Linux. To make most use of it, it is best to use a recent GNU/Linux distribution. As of 2013, Bumblebee software repositories are available for Arch Linux, Debian, Fedora, Gentoo, Mandriva, OpenSuSE (OpenSuSE Bumblebee repository) and Ubuntu. The source package can be used for other distributions.

GPL blob buffer-sharing[edit]

An attempt by Nvidia to support Optimus through DMA_BUF, a Linux kernel-mechanism for sharing buffers across hardware (potentially GPUs), was disapproved by kernel developers in January 2012 due to license incompatibility between the GPL-licensed kernel-code and the proprietary-licensed Nvidia blob.[7]

Operation without a device driver[edit]

When no software mechanism exists for switching between graphics adapters, the system cannot use the NVIDIA GPU at all, even if an installed graphics driver would support it.[8] Some older computers contain a BIOS setting to manually select the state of the hardware multiplexer to switch output between the two video devices. However, this setting is no longer part of the Optimus platform.

See also[edit]

Notes[edit]

  1. ^ Desktop Optimus was slated to be launched in June of 2011[2] under the name Synergy,[3] but never made it.

References[edit]

  1. ^ http://www.nvidia.com/object/optimus_technology.html
  2. ^ http://vr-zone.com/articles/nvidia-to-launch-desktop-optimus--synergy-at-computex/11946.html
  3. ^ http://news.softpedia.com/news/NVIDIA-Optimus-Lands-on-Desktops-196761.shtml
  4. ^ "Bumblebee version 3.0 'Tumbleweed'" release", ', January 20, 2012, accessed January 20, 2012.
  5. ^ Official Nvidia dev zone
  6. ^ http://www.opennet.ru/opennews/art.shtml?num=36848
  7. ^ "NVIDIA Talks Of Optimus Possibilities For Linux". Phoronix. January 25, 2012. 
  8. ^ "On laptops that don't have that hardware mux you currently cannot use the NVIDIA GPU for display.", ', July 23, 2010, accessed November 27, 2010.

External links[edit]