Como encontrar quantidade de Memória da Placa de Video

1. Como encontrar quantidade de Memória da Placa de Video

Orlando Vasques
khyron

(usa Fedora)

Enviado em 24/03/2019 - 21:16h

Boa noite.

Hoje eu estava procurando a quantidade de memoria da minha placa de video no Fedora 29.
Como não encontrei nenhum lugar informando comandos para chegar nesse resultado então fui fazendo alguns testes e cheguei neste resultado:


--->> Obs: ( minha placa de video e uma AMD RX 460 )
Comandos:

$lspci
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 460/560D / Pro 450/455/460/555/555X/560/560X] (rev cf)

----> ai vc pega essa primeira sequencia de numeros ( 01:00.0 )
$dmesg | grep 01:00.0

$ dmesg | grep 01:00.0
[ 0.299440] pci 0000:01:00.0: [1002:67ef] type 00 class 0x030000
[ 0.299461] pci 0000:01:00.0: reg 0x10: [mem 0xc0000000-0xcfffffff 64bit pref]
[ 0.299469] pci 0000:01:00.0: reg 0x18: [mem 0xd0000000-0xd01fffff 64bit pref]
[ 0.299475] pci 0000:01:00.0: reg 0x20: [io 0xe000-0xe0ff]
[ 0.299481] pci 0000:01:00.0: reg 0x24: [mem 0xdfe00000-0xdfe3ffff]
[ 0.299486] pci 0000:01:00.0: reg 0x30: [mem 0xdfe40000-0xdfe5ffff pref]
[ 0.299540] pci 0000:01:00.0: supports D1 D2
[ 0.299541] pci 0000:01:00.0: PME# supported from D1 D2 D3hot D3cold
[ 0.302243] pci 0000:01:00.0: vgaarb: setting as boot VGA device
[ 0.302243] pci 0000:01:00.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
[ 0.302243] pci 0000:01:00.0: vgaarb: bridge control possible
[ 0.352082] pci 0000:01:00.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
[ 0.352086] pci 0000:01:00.1: Linked as a consumer to 0000:01:00.0
[ 2.016055] amdgpu 0000:01:00.0: No more image in the PCI ROM

--------->>>>>[ 2.016148] amdgpu 0000:01:00.0: VRAM: 4096M 0x000000F400000000 - 0x000000F4FFFFFFFF (4096M used)

[ 2.016149] amdgpu 0000:01:00.0: GART: 256M 0x000000FF00000000 - 0x000000FF0FFFFFFF
[ 2.303914] amdgpu 0000:01:00.0: fb0: amdgpudrmfb frame buffer device
[ 2.319017] [drm] Initialized amdgpu 3.27.0 20150101 for 0000:01:00.0 on minor 0


Ou

$ lsmod | grep -i amd

amdgpu 3764224 18
chash 16384 1 amdgpu
i2c_algo_bit 16384 1 amdgpu
amd_iommu_v2 20480 1 amdgpu
gpu_sched 36864 1 amdgpu
drm_kms_helper 204800 1 amdgpu
ttm 110592 1 amdgpu

$sudo dmesg | grep -i amdgpu

[ 2.015341] [drm] amdgpu kernel modesetting enabled.
[ 2.016055] amdgpu 0000:01:00.0: No more image in the PCI ROM
---->>>> [ 2.016148] amdgpu 0000:01:00.0: VRAM: 4096M 0x000000F400000000 - 0x000000F4FFFFFFFF (4096M used)
[ 2.016149] amdgpu 0000:01:00.0: GART: 256M 0x000000FF00000000 - 0x000000FF0FFFFFFF
--->> [ 2.016264] [drm] amdgpu: 4096M of VRAM memory ready
--->> [ 2.016265] [drm] amdgpu: 4096M of GTT memory ready.
[ 2.261572] fbcon: amdgpudrmfb (fb0) is primary device
[ 2.303914] amdgpu 0000:01:00.0: fb0: amdgpudrmfb frame buffer device
[ 2.319017] [drm] Initialized amdgpu 3.27.0 20150101 for 0000:01:00.0 on minor 0

como vcs podem ver na 3 linha, informa que esta 4096M em uso, entre outras informações

espero ter ajudado de alguma forma.

Abraço a todos



  


2. Re: Como encontrar quantidade de Memória da Placa de Video

Marcelo Oliver
msoliver

(usa Debian)

Enviado em 25/03/2019 - 17:18h

Boa tarde,
Segue outro método:
ID_VGA=$(lspci|awk '$2~/VGA/{print $1}')
lspci -v -s ${ID_VGA}

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
Subsystem: Acer Incorporated [ALI] 2nd Generation Core Processor Family Integrated Graphics Controller
Flags: bus master, fast devsel, latency 0, IRQ 26
Memory at c0000000 (64-bit, non-prefetchable) [size=4M]
Memory at b0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 2000 [size=64]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915


#Filtrando:
lspci -v -s $ID_VGA|awk '/ prefetchable/ {print $NF}'
[size=256M]

VEJA => echo -e "$(lynx --dump goo.gl/a9KeFc|sed -nr '/^[ ]+Se/,/dou.$/p')"
Att.: Marcelo Oliver


3. Re: Como encontrar quantidade de Memória da Placa de Video

Xerxes
xerxeslins

(usa openSUSE)

Enviado em 25/03/2019 - 17:29h

Tem esta dica mais mastigada:

https://www.vivaolinux.com.br/dica/lspci-Verificando-memoria-de-video

--
"There are lots of Linux users who don't care how the kernel works, but only want to use it. That is a tribute to how good Linux is." - Linus Torvalds







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts