CentOS 7
Sponsored Link


システムに NVIDIA 社のグラフィックカードを搭載している場合、NVIDIA 社提供のグラフィックドライバーをインストールすることで、よりよいパフォーマンスを得ることができます。
なお、[yum update kernel] 等でカーネルを更新した際は、都度、ドライバーの更新も必要になります。
[2] デフォルトでロードされている nouveau ドライバーを無効化しておきます。
[root@dlp ~]#
lsmod | grep nouveau

nouveau              1622010  1
video                  24520  1 nouveau
mxm_wmi                13021  1 nouveau
wmi                    19070  2 mxm_wmi,nouveau
i2c_algo_bit           13413  1 nouveau
drm_kms_helper        159169  1 nouveau
ttm                    99345  1 nouveau
drm                   370825  4 ttm,drm_kms_helper,nouveau
i2c_core               40756  5 drm,i2c_i801,drm_kms_helper,i2c_algo_bit,nouveau

[root@dlp ~]#
vi /etc/modprobe.d/blacklist-nouveau.conf
# 最終行に追記 (ファイルがない場合は新規作成)

blacklist nouveau
options nouveau modeset=0
[root@dlp ~]#
dracut --force
[root@dlp ~]#
[3] 必要なパッケージをインストールしておきます。
[root@dlp ~]#
yum -y install kernel-devel-$(uname -r) kernel-header-$(uname -r) gcc make
[4] NVIDIA サイトより、コンピューターに搭載されているグラフィックカード用のドライバーをダウンロードして、インストールします。
⇒ https://www.nvidia.com/Download/index.aspx?lang=en
# 搭載カードを調べるには以下

[root@dlp ~]#
lspci | grep VGA

03:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1)
# ダウンロードしたファイルを実行してインストール

[root@dlp ~]#
bash NVIDIA-Linux-x86_64-384.111.run

Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.111

  NVIDIA Accelerated Graphics Driver for Linux-x86_64 (384.111)

  Please read the following LICENSE and then select either "Accept" to 
  accept the license and continue with the
  installation, or select "Do Not Accept" to abort the installation.

  # 使用条件に同意して Accept を選択
         Accept                              Do Not Accept

            License For Customer Use of NVIDIA Software

 IMPORTANT NOTICE -- READ CAREFULLY: This License For Customer Use of
 NVIDIA Software ("LICENSE") is the agreement which governs use of
 the software of NVIDIA Corporation and its subsidiaries ("NVIDIA")
 downloadable herefrom, including computer software and associated
 printed materials ("SOFTWARE").  By downloading, installing, copying,
 or otherwise using the SOFTWARE, you agree to be bound by the terms
 of this LICENSE.  If you do not agree to the terms of this LICENSE,
 do not download the SOFTWARE.


 Use of NVIDIA's products requires three elements: the SOFTWARE, the
 hardware on a graphics controller board, and a personal computer. The
 SOFTWARE is protected by copyright laws and international copyright
 treaties, as well as other intellectual property laws and treaties.
 The SOFTWARE is not sold, and instead is only licensed for use,
 strictly in accordance with this document.  The hardware is protected
 by various patents, and is sold, but this agreement does not cover
 that sale, since it may not necessarily be sold as a package with
 the SOFTWARE.  This agreement sets forth the terms and conditions
 of the SOFTWARE LICENSE only.


 1.1  Customer.  Customer means the entity or individual that
 downloads the SOFTWARE.


  Install NVIDIA's 32-bit compatibility libraries?
  # 32ビット互換ライブラリをインストールするか選択 (当例では [Yes] で進む)
     Yes                                    No

  Would you like to run the nvidia-xconfig utility to automatically update 
  your X configuration file so that the
  NVIDIA X driver will be used when you restart X?  Any pre-existing X configuration 
  file will be backed up.
  # X 設定ファイルを更新するか否か (当例では [Yes] で進む)
     Yes                                    No

  Your X configuration file has been successfully updated.  Installation of the NVIDIA 
  Accelerated Graphics Driver for
  Linux-x86_64 (version: 384.111) is now complete.


# グラフィックカードの状態確認

[root@dlp ~]#

Mon Jan 27 11:07:28 2018
| NVIDIA-SMI 384.111                Driver Version: 384.111                   |
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|   0  GeForce GTX 106...  Off  | 00000000:03:00.0 Off |                  N/A |
|  1%   50C    P0    15W / 120W |      0MiB /  6072MiB |      0%      Default |

| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|  No running processes found                                                 |