My system hosts 8 GB of RAM and 2 GB of VRAM. It runs Ubuntu 18.04 with kernel 4.15.0-74-generic
x86_64
.
IIUC, these two types of memory, in addition to the BIOS read-only memory, are mapped into the virtual and the physical address space.
Is there a tool to show how has this mapping been performed? In particular, which ranges of physical/virtual addresses are located for the system RAM, which for the VRAM and which for the BIOS.
I don't know if lsmem
is the right tool, because it seems not to distinguish between the types of memory.
Edit
About lspci
:
$ lspci -v -s 01:00.0
01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GTX 650] (rev a1) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. GK107 [GeForce GTX 650]
Flags: bus master, fast devsel, latency 0, IRQ 29
Memory at ee000000 (32-bit, non-prefetchable) [size=16M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
Memory at e0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
The total amount of memory appears to be 16+256+32 = 304
MB, while this card should have 1024
MB.