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