{"id":43423,"date":"2022-12-07T16:17:56","date_gmt":"2022-12-07T16:17:56","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=43423"},"modified":"2024-05-06T10:06:49","modified_gmt":"2024-05-06T10:06:49","slug":"gpu-usage-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2022\/12\/gpu-usage-ubuntu-22-04\/","title":{"rendered":"How to Monitor GPU Usage in Ubuntu 24.04 | 22.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/nvidia-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-38385\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/nvidia-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/nvidia-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/nvidia-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/nvidia-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/nvidia-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/nvidia-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>Unlike Windows, Ubuntu so far does not have real-time GPU usage info displayed in its system monitor application. If you want to check how much your graphic card is in use, then this simple tutorial may help!<\/p>\n<h3>Method 1: Use Mission Center (Graphical App)<\/h3>\n<p>A graphical app is always good choice for beginners. And, <a href=\"https:\/\/gitlab.com\/mission-center-devs\/mission-center\/\" target=\"_blank\" rel=\"noopener\">Mission Center<\/a> is the one that provides a Windows Task Manager look like interface for monitoring system resource usage.<\/p>\n<p>It supports monitoring overall GPU usage, video encoder and decoder usage, memory usage and power consumption. With the power of nvtop, it supports AMD, Apple, Huawei, Intel, NVIDIA and Qualcomm GPUs.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/misson-center.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46513\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/misson-center-700x508.webp\" alt=\"\" width=\"610\" height=\"443\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/misson-center-700x508.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/misson-center-300x218.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/misson-center-768x557.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/misson-center.webp 962w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b>To install Mission Center,<\/b> press <code>Ctrl+Alt+T<\/code> on keyboard to open up a terminal window. Then, run the commands below one by one to install the <a href=\"https:\/\/flathub.org\/apps\/io.missioncenter.MissionCenter\" target=\"_blank\" rel=\"noopener\">Flatpak package<\/a>.<\/p>\n<ul>\n<li>First, run command to enable Flatpak support:\n<pre>sudo apt install flatpak<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-45732\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble-700x501.webp\" alt=\"\" width=\"610\" height=\"437\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble-700x501.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble-300x215.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble-768x550.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble.webp 786w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/li>\n<li>Then, install Mission Center flatpak package via command:\n<pre>flatpak install https:\/\/dl.flathub.org\/repo\/appstream\/io.missioncenter.MissionCenter.flatpakref<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/flatpak-missioncenter.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46514\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/flatpak-missioncenter-700x470.webp\" alt=\"\" width=\"610\" height=\"410\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/flatpak-missioncenter-700x470.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/flatpak-missioncenter-300x201.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/flatpak-missioncenter-768x516.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/flatpak-missioncenter.webp 834w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/li>\n<\/ul>\n<p>If this is the first app installed as Flatpak package, you may need to <b>log out and back in<\/b> to make app icon visible in start menu (or Gnome app grid).<br \/>\n<a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/launch-missioncenter.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-46515\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/launch-missioncenter.webp\" alt=\"\" width=\"480\" height=\"276\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/launch-missioncenter.webp 480w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/launch-missioncenter-300x173.webp 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/a><br \/>\n(<b>Optional<\/b>) To uninstall Mission Center, open terminal and run command:<\/p>\n<pre>flatpak uninstall --delete-data io.missioncenter.MissionCenter<\/pre>\n<p>Also run <code>flatpak uninstall --unused<\/code> to clear useless runtime libraries.<\/p>\n<h3>Method 2: Monitor GPU usage from Command Line<\/h3>\n<p>For Ubuntu server and those who prefer to the job from command line, there are few tools can do the job. They include <code>intel-gpu-tools<\/code> for Intel GPU, and <code>nvtop<\/code> for Intel, AMD, and NVIDIA.<\/p>\n<h4>Check Intel GPU usage in Ubuntu:<\/h4>\n<p>For the integrated Intel graphics card, there&#8217;s a command line tool <code>intel_gpu_top<\/code> can do the job.<\/p>\n<p>1. First, press <b>Ctrl+Alt+T<\/b> on terminal to open a terminal window. When it opens, run command to install the package:<\/p>\n<pre>sudo apt install intel-gpu-tools<\/pre>\n<p><i>Type user password when it asks (no asterisk feedback) and hit Enter.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/apt-intel-gpu-toold.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43424\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/apt-intel-gpu-toold-600x186.webp\" alt=\"\" width=\"600\" height=\"186\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/apt-intel-gpu-toold-600x186.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/apt-intel-gpu-toold-300x93.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/apt-intel-gpu-toold-768x238.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/apt-intel-gpu-toold.webp 778w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>2. Then, run command to start it:<\/p>\n<pre>sudo intel_gpu_top<\/pre>\n<p>As you can see, it shows real-time IMC read and write speed, power usage, as well as percentage usage of 3D\/Render, Blitter, Video, and VideoEnhance.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/intel-gpu-top-monitor.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43425\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/intel-gpu-top-monitor-600x244.webp\" alt=\"\" width=\"600\" height=\"244\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/intel-gpu-top-monitor-600x244.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/intel-gpu-top-monitor-300x122.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/intel-gpu-top-monitor-768x312.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/intel-gpu-top-monitor.webp 775w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h4>Monitor AMD\/NVIDIA GPU usage in Ubuntu<\/h4>\n<p>For NVIDIA and AMD graphics card, there&#8217;s a htop like task monitor called <b>nvtop<\/b> (Neat Videocard TOP).<\/p>\n<p>It shows real-time GPU and GPU Memory usage in both total and per process basis, along with temperature, power usage, and graph information.<\/p>\n<div id=\"attachment_43426\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/NVTOP_ex1.webp\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-43426\" class=\"size-large wp-image-43426\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/NVTOP_ex1-600x232.webp\" alt=\"\" width=\"600\" height=\"232\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/NVTOP_ex1-600x232.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/NVTOP_ex1-300x116.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/NVTOP_ex1-768x297.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/NVTOP_ex1-1320x510.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/NVTOP_ex1.webp 1402w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-43426\" class=\"wp-caption-text\">nvtop, image from https:\/\/github.com\/Syllo\/nvtop<\/p><\/div>\n<p>nvtop also supports Intel GPU, however, it does not work in my case with i5-4590 (HD4600), and i3-6006U (HD 520).<\/p>\n<h4>Install nvtop in Ubuntu:<\/h4>\n<p>The tool is available in Ubuntu system repository, but old for Ubuntu 22.04 and Ubuntu 20.04. For the latest version, it has an <a href=\"https:\/\/launchpad.net\/~flexiondotorg\/+archive\/ubuntu\/nvtop\" target=\"_blank\" rel=\"noopener\">official PPA<\/a> contains the most recent package.<\/p>\n<p>1. First, press Ctrl+Alt+T on keyboard to open terminal. Then, run command to add the PPA:<\/p>\n<pre>sudo add-apt-repository ppa:flexiondotorg\/nvtop<\/pre>\n<p><i><b>For Ubuntu 24.04, skip the PPA, just the command below to install<\/b>. Type user password (no asterisk feedback) when it asks and hit Enter to continue.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/nvtop-ppa.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43427\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/nvtop-ppa-600x285.webp\" alt=\"\" width=\"600\" height=\"285\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/nvtop-ppa-600x285.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/nvtop-ppa-300x143.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/nvtop-ppa-768x365.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/nvtop-ppa.webp 772w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>2. Then, run command to install the tool:<\/p>\n<pre>sudo apt install nvtop<\/pre>\n<p>For Linux Mint, run <code>sudo apt update<\/code> first to refresh package cache.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/apt-nvtop.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43428\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/apt-nvtop-600x192.webp\" alt=\"\" width=\"600\" height=\"192\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/apt-nvtop-600x192.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/apt-nvtop-300x96.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/apt-nvtop-768x246.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/apt-nvtop.webp 783w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Finally, either search for and launch it from &#8216;Activities&#8217; overview (or start menu), or run <code>nvtop<\/code> command to start monitoring your GPU.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/open-nvtop.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-43429\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/open-nvtop.webp\" alt=\"\" width=\"510\" height=\"274\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/open-nvtop.webp 510w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/12\/open-nvtop-300x161.webp 300w\" sizes=\"auto, (max-width: 510px) 100vw, 510px\" \/><\/a><\/p>\n<h4>(Optional) Remove nvtop<\/h4>\n<p>To remove the PPA repository, open terminal and run command:<\/p>\n<pre>sudo add-apt-repository --remove ppa:flexiondotorg\/nvtop<\/pre>\n<p>And remove nvtop if you want via command:<\/p>\n<pre>sudo apt remove nvtop<\/pre>","protected":false},"excerpt":{"rendered":"<p>Unlike Windows, Ubuntu so far does not have real-time GPU usage info displayed in its system monitor application. If you want to check how much your graphic card is in use, then this simple tutorial may help! Method 1: Use Mission Center (Graphical App) A graphical app is always good choice for beginners. And, Mission [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":38385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1282],"class_list":["post-43423","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-video"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=43423"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43423\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/38385"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=43423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=43423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=43423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}