nvidia-smi

jason@jason-System-Product-Name:~$ nvidia-smi

Sun Nov 18 19:37:39 2018     

+-----------------------------------------------------------------------------+

| NVIDIA-SMI 418.00      Driver Version: 418.00      CUDA Version: 10.1    |

|-------------------------------+----------------------+----------------------+

| 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 1050    Off  | 00000000:02:00.0 Off |                  N/A |

| 20%  33C    P0    N/A /  75W |      0MiB /  1998MiB |      0%      Default |

+-------------------------------+----------------------+----------------------+


+-----------------------------------------------------------------------------+

| Processes:                                                      GPU Memory |

GPU      PID  Type  Process name                            Usage      |

|=============================================================================|

|  No running processes found                                                |

+-----------------------------------------------------------------------------+

jason@jason-System-Product-Name:~$ nvidia-smi --help

NVIDIA System Management Interface -- v418.00

NVSMI provides monitoring information for Tesla and select Quadro devices.

The data is presented in either a plain text or an XML format, via stdout or a file.

NVSMI also provides several management operations for changing the device state.

Note that the functionality of NVSMI is exposed through the NVML C-based

library. See the NVIDIA developer website for more information about NVML.

Python wrappers to NVML are also available.  The output of NVSMI is

not guaranteed to be backwards compatible; NVML and the bindings are backwards

compatible.

http://developer.nvidia.com/nvidia-management-library-nvml/

http://pypi.python.org/pypi/nvidia-ml-py/

Supported products:

- Full Support

    - All Tesla products, starting with the Kepler architecture

    - All Quadro products, starting with the Kepler architecture

    - All GRID products, starting with the Kepler architecture

    - GeForce Titan products, starting with the Kepler architecture

- Limited Support

    - All Geforce products, starting with the Kepler architecture

nvidia-smi [OPTION1 [ARG1]] [OPTION2 [ARG2]] ...

    -h,  --help                Print usage information and exit.

  LIST OPTIONS:

    -L,  --list-gpus          Display a list of GPUs connected to the system.

    -B,  --list-blacklist-gpus Display a list of blacklisted GPUs in the system.

  SUMMARY OPTIONS:

    <no arguments>              Show a summary of GPUs connected to the system.

    [plus any of]

    -i,  --id=                Target a specific GPU.

    -f,  --filename=          Log to a specified file, rather than to stdout.

    -l,  --loop=              Probe until Ctrl+C at specified second interval.

  QUERY OPTIONS:

    -q,  --query              Display GPU or Unit info.

    [plus any of]

    -u,  --unit                Show unit, rather than GPU, attributes.

    -i,  --id=                Target a specific GPU or Unit.

    -f,  --filename=          Log to a specified file, rather than to stdout.

    -x,  --xml-format          Produce XML output.

          --dtd                When showing xml output, embed DTD.

    -d,  --display=            Display only selected information: MEMORY,

                                    UTILIZATION, ECC, TEMPERATURE, POWER, CLOCK,

                                    COMPUTE, PIDS, PERFORMANCE, SUPPORTED_CLOCKS,

                                    PAGE_RETIREMENT, ACCOUNTING, ENCODER_STATS, FBC_STATS

                                Flags can be combined with comma e.g. ECC,POWER.

                                Sampling data with max/min/avg is also returned

                                for POWER, UTILIZATION and CLOCK display types.

                                Doesn't work with -u or -x flags.

    -l,  --loop=              Probe until Ctrl+C at specified second interval.

    -lms, --loop-ms=            Probe until Ctrl+C at specified millisecond interval.

  SELECTIVE QUERY OPTIONS:

    Allows the caller to pass an explicit list of properties to query.

    [one of]

    --query-gpu=                Information about GPU.

                                Call --help-query-gpu for more info.

    --query-supported-clocks=  List of supported clocks.

                                Call --help-query-supported-clocks for more info.

    --query-compute-apps=      List of currently active compute processes.

                                Call --help-query-compute-apps for more info.

    --query-accounted-apps=    List of accounted compute processes.

                                Call --help-query-accounted-apps for more info.

    --query-retired-pages=      List of device memory pages that have been retired.

                                Call --help-query-retired-pages for more info.

    [mandatory]

    --format=                  Comma separated list of format options:

                                  csv - comma separated values (MANDATORY)

                                  noheader - skip the first line with column headers

                                  nounits - don't print units for numerical

                                            values

    [plus any of]

    -i,  --id=                Target a specific GPU or Unit.

    -f,  --filename=          Log to a specified file, rather than to stdout.

    -l,  --loop=              Probe until Ctrl+C at specified second interval.

    -lms, --loop-ms=            Probe until Ctrl+C at specified millisecond interval.

  DEVICE MODIFICATION OPTIONS:

    [any one of]

    -pm,  --persistence-mode=  Set persistence mode: 0/DISABLED, 1/ENABLED

    -e,  --ecc-config=        Toggle ECC support: 0/DISABLED, 1/ENABLED

    -p,  --reset-ecc-errors=  Reset ECC error counts: 0/VOLATILE, 1/AGGREGATE

    -c,  --compute-mode=      Set MODE for compute applications:

                                0/DEFAULT, 1/EXCLUSIVE_PROCESS,

                                2/PROHIBITED

          --gom=                Set GPU Operation Mode:

                                    0/ALL_ON, 1/COMPUTE, 2/LOW_DP

    -r    --gpu-reset          Trigger reset of the GPU.

                                Can be used to reset the GPU HW state in situations

                                that would otherwise require a machine reboot.

                                Typically useful if a double bit ECC error has

                                occurred.

                                Reset operations are not guarenteed to work in

                                all cases and should be used with caution.

    -vm  --virt-mode=          Switch GPU Virtualization Mode:

                                Sets GPU virtualization mode to 3/VGPU or 4/VSGA

                                Virtualization mode of a GPU can only be set when

                                it is running on a hypervisor.

    -lgc  --lock-gpu-clocks=    Specifies <minGpuClock,maxGpuClock> clocks as a

                                    pair (e.g. 1500,1500) that defines the range

                                    of desired locked GPU clock speed in MHz.

                                    Setting this will supercede application clocks

                                    and take effect regardless if an app is running.

                                    Input can also be a singular desired clock value

                                    (e.g. <GpuClockValue>).

    -rgc  --reset-gpu-clocks

                                Resets the Gpu clocks to the default values.

    -ac  --applications-clocks= Specifies <memory,graphics> clocks as a

                                    pair (e.g. 2000,800) that defines GPU's

                                    speed in MHz while running applications on a GPU.

    -rac  --reset-applications-clocks

                                Resets the applications clocks to the default values.

    -acp  --applications-clocks-permission=

                                Toggles permission requirements for -ac and -rac commands:

                                0/UNRESTRICTED, 1/RESTRICTED

    -pl  --power-limit=        Specifies maximum power management limit in watts.

    -am  --accounting-mode=    Enable or disable Accounting Mode: 0/DISABLED, 1/ENABLED

    -caa  --clear-accounted-apps

                                Clears all the accounted PIDs in the buffer.

          --auto-boost-default= Set the default auto boost policy to 0/DISABLED

                                or 1/ENABLED, enforcing the change only after the

                                last boost client has exited.

          --auto-boost-permission=

                                Allow non-admin/root control over auto boost mode:

                                0/UNRESTRICTED, 1/RESTRICTED

  [plus optional]

    -i,  --id=                Target a specific GPU.

  UNIT MODIFICATION OPTIONS:

    -t,  --toggle-led=        Set Unit LED state: 0/GREEN, 1/AMBER

  [plus optional]

    -i,  --id=                Target a specific Unit.

  SHOW DTD OPTIONS:

          --dtd                Print device DTD and exit.

    [plus optional]

    -f,  --filename=          Log to a specified file, rather than to stdout.

    -u,  --unit                Show unit, rather than device, DTD.

    --debug=                    Log encrypted debug information to a specified file.

STATISTICS: (EXPERIMENTAL)

    stats                      Displays device statistics. "nvidia-smi stats -h" for more information.

Device Monitoring:

    dmon                        Displays device stats in scrolling format.

                                "nvidia-smi dmon -h" for more information.

    daemon                      Runs in background and monitor devices as a daemon process.

                                This is an experimental feature. Not supported on Windows baremetal

                                "nvidia-smi daemon -h" for more information.

    replay                      Used to replay/extract the persistent stats generated by daemon.

                                This is an experimental feature.

                                "nvidia-smi replay -h" for more information.

Process Monitoring:

    pmon                        Displays process stats in scrolling format.

                                "nvidia-smi pmon -h" for more information.

TOPOLOGY:

    topo                        Displays device/system topology. "nvidia-smi topo -h" for more information.

DRAIN STATES:

    drain                      Displays/modifies GPU drain states for power idling. "nvidia-smi drain -h" for more information.

NVLINK:

    nvlink                      Displays device nvlink information. "nvidia-smi nvlink -h" for more information.

CLOCKS:

    clocks                      Control and query clock information. "nvidia-smi clocks -h" for more information.

ENCODER SESSIONS:

    encodersessions            Displays device encoder sessions information. "nvidia-smi encodersessions -h" for more information.

FBC SESSIONS:

    fbcsessions                Displays device FBC sessions information. "nvidia-smi fbcsessions -h" for more information.

GRID vGPU:

    vgpu                        Displays vGPU information. "nvidia-smi vgpu -h" for more information.

Please see the nvidia-smi(1) manual page for more detailed information.

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 160,026评论 4 364
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 67,655评论 1 296
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 109,726评论 0 244
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 44,204评论 0 213
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 52,558评论 3 287
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,731评论 1 222
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,944评论 2 314
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,698评论 0 203
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 34,438评论 1 246
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,633评论 2 247
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 32,125评论 1 260
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,444评论 3 255
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 33,137评论 3 238
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 26,103评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,888评论 0 197
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,772评论 2 276
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,669评论 2 271

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,108评论 0 10
  • 姓名:罗 攀 单位:宁波绿之品电器科技有限公司 《六项精进》: 第259期 感谢2组学员 一、【知~学习】 1.1...
    绿之品罗攀阅读 771评论 0 0