Posted On January 22, 2021

Linux: How to Check Graphics Card Memory

kimconnect 0 comments
blog.KimConnect.com >> Linux >> Linux: How to Check Graphics Card Memory

List all the PCI devices: lspci

# Sample Outout:
root@kim-linux:/home/kim# lspci
00:00.0 Host bridge: Intel Corporation Device 3ecc (rev 08)
00:02.0 VGA compatible controller: Intel Corporation Iris Plus Graphics 655 (rev 01)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Point-LP Thermal Controller (rev 30)
##### Truncated for brevity #####

Get information only on the VGA device

vgaDevice=$(lspci|grep VGA)
vgaDeviceId=$(echo "$vgaDevice" | grep -Eo '^[^ ]+')
lspci -vs $vgaDeviceId
# Sample Outout:
root@kim-linux:/home/kim# lspci -vs 00:02.0
00:02.0 VGA compatible controller: Intel Corporation Iris Plus Graphics 655 (rev 01) (prog-if 00 [VGA controller])
DeviceName: CPU
Subsystem: Intel Corporation Iris Plus Graphics 655
Flags: bus master, fast devsel, latency 0, IRQ 134
Memory at af000000 (64-bit, non-prefetchable) [size=16M]
Memory at 40000000 (64-bit, prefetchable) [size=1G]
I/O ports at 4000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: [40] Vendor Specific Information: Len=0c <?>
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [100] Process Address Space ID (PASID)
Capabilities: [200] Address Translation Service (ATS)
Capabilities: [300] Page Request Interface (PRI)
Kernel driver in use: i915
Kernel modules: i915

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Linux Mint /dev/sda1 Out of Space Issue

Issue: "sudo apt --fix-broken install"leads to something such as:"dpkg: error processing archive /var/cache/apt/archives/linux-image-6.8.0-87-generic_6.8.0-87.88~22.04.1_amd64.deb(--unpack):cannot copy extracted…

How To Use NXLog On A Windows Client

Step 1: Setup Server - Install a log aggregation server is out of scope of…

Ubuntu: Adding and Remove Repositories (Repos)

The following is a blunder I've made while attempting to install Acrobat Reader on Ubuntu…