Ask Your Question

Graphic memory details problem?

asked 2014-07-18 18:10:50 -0500

Qucco gravatar image

I have a nvidia 1gb graphic card. But when i query VGA details:

# lspci -v -s 01:00.0
01:00.0 VGA compatible controller: NVIDIA Corporation GF119M [GeForce GT 520M] (rev a1) (prog-if 00 [VGA controller])
    Subsystem: ASUSTeK Computer Inc. Device 1742
    Flags: bus master, fast devsel, latency 0, IRQ 50
    Memory at dc000000 (32-bit, non-prefetchable) [size=16M]
    Memory at c0000000 (64-bit, prefetchable) [size=256M]                  //This Line
    Memory at d0000000 (64-bit, prefetchable) [size=32M]
    I/O ports at d000 [size=128]
    [virtual] Expansion ROM at dd000000 [disabled] [size=512K]
    Capabilities: [60] Power Management version 3
    Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [78] Express Endpoint, MSI 00
    Capabilities: [b4] Vendor Specific Information: Len=14 <?>
    Capabilities: [100] Virtual Channel
    Capabilities: [128] Power Budgeting <?>
    Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
    Kernel driver in use: nvidia
    Kernel modules: nouveau, nvidia

It say my graphic memory is 256M. And But when i see Xorg logs:

# grep -i KBytes /var/log/Xorg.0.log
[    34.771] (--) NVIDIA(0): Memory: 1048576 kBytes

Which is right?

p.s. : I installed my graphic driver use this guide.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-07-19 12:49:13 -0500

hedayat gravatar image

lspci is expected to provide information about PCI devices, and their communication interface information. It does NOT provide information about internal aspects of the device. For example, you don't see any information about the GPU processor used in your VGA card. Similarly, it doesn't show anything about internal memory of your VGA card. As can be seen, the memory you see in lspci output is addressable, which IMHO should be a memory by which your host system can communicate directly with the VGA card, and can be addressed from host.

Anyway, the Xorg log is more appropriate.

edit flag offensive delete link more


thanks, how can i get best result?

Qucco gravatar imageQucco ( 2014-07-19 13:16:55 -0500 )edit

You're welcome. Please accept my answer! :P I'm not sure where you can get the best result. Maybe using lshw or hardinfo as mentioned at can provide more information, but I'm not sure. You might need to use vendor (NVidia) specific tools to extract more precise information. There might be no standard way to do so.

hedayat gravatar imagehedayat ( 2014-07-19 13:50:38 -0500 )edit

@hedayat, first, this answer does not answer the acctual query of OP which is something like "how can I locate how much memory is used or the system recognizes", and so (at my opinion) is not a correct (or complete) answer. Second, it's a good practice to always ask from OP to mark an answer as correct IF this answer helped him/her and not "force" like, "accept my answer". And yes, at this specific sittuation, the best results he/she can extract, is from nvidia tools . Thank you.

NickTux gravatar imageNickTux ( 2014-07-20 02:32:31 -0500 )edit

@NikTh Thanks for the comment. However, IMHO his question is this: "Which output is correct? Xorg's or that of lspci", and I answered "Xorg's". Also, I said "Please", but OK, I edit the comment and remove that request. Update: Oops, I cannot edit the previous comment. Anyway, @Qucco, there is no need to accept my answer. I didn't meant that you should do it. And if you think it is misleading, I would happily remove it altogether. :P

hedayat gravatar imagehedayat ( 2014-07-20 04:32:58 -0500 )edit

No problems. The OP will decide if this answered his/her queries or not. Maybe I misunderstood the question :) As for the request, I didn't mean to insult you or anything (nor of course removing your answer altogether), I think you understand that, yes ? I just wanted to mention what I'm doing at my answers is that. "If you found this answer helpful and/or answered your question, please mark the answer as correct" or something like that, I think is better than "Please accept my answer". And yes, you cannot edit your comments if 5 (or 10 I don't remember exactly) minutes have passed.

NickTux gravatar imageNickTux ( 2014-07-20 05:22:12 -0500 )edit

Question Tools

1 follower


Asked: 2014-07-18 18:10:50 -0500

Seen: 475 times

Last updated: Jul 19 '14