View previous topic :: View next topic |
Author |
Message |
fpemud Guru
Joined: 15 Feb 2012 Posts: 349
|
Posted: Thu Feb 28, 2013 1:16 am Post subject: About GPU-usage and GPU-memory-usage? |
|
|
I found two old post about it, but I still have some questions.
https://forums.gentoo.org/viewtopic-t-550065-highlight-gpu+usage.html
https://forums.gentoo.org/viewtopic-t-579381-highlight-gpu+usage.html
1. What is the concept of GPU and memory usage? Is there any doc?
The concept of CPU usage and system-memory usage is very clear.
It's easy to know how they are allocated and where the monitor tool get these information from.
GPU is a vector processor, how to calculate its usage?
Is it how many and how long the raster pipeline is occupied?
How to know which process it is used by?
can the heap and stack concept be applied to GPU memory?
is there GPU-memory-fragmentation?
2. I think there should be /sys interface to get usage info.
GPU memory is management by DRI in kernel, so I think there must be some tracking in this module?
Or can we get the usage info from hardware register? |
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Thu Feb 28, 2013 7:29 am Post subject: |
|
|
I think that a tool that would report these info is necessarily GPU dependent.
Well, I mean that reporting the memory usage, I mean "onboard memory usage" is certainly not the fact of a standard system call.
With my nvidia proprietary driver, I use nvidia-smi
Code: | acoswt@PrimaPratica ~ $ nvidia-smi
Thu Feb 28 08:21:48 2013
+------------------------------------------------------+
| NVIDIA-SMI 4.310.32 Driver Version: 310.32 |
|-------------------------------+----------------------+----------------------+
| GPU Name | Bus-Id Disp. | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce 9800 GT | 0000:01:00.0 N/A | N/A |
| 35% 40C N/A N/A / N/A | 13% 128MB / 1023MB | N/A Default |
+-------------------------------+----------------------+----------------------+ |
It unfortunately does not go as far as you would wish... Code: |
+-----------------------------------------------------------------------------+
| Compute processes: GPU Memory |
| GPU PID Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+ |
So, with this tool we get the memory usage aka onboard memory usage.
For what is the GPU usage definied by nvidia as "Percent of time over the past second during which one or more kernels was executing on
the GPU" , you'll have noticed that nvidia themselves cannot compute it... (N/A)...
OK... my GeForce is said not supported by nvidia-smi.
As for which process (I beleive you mean which linux thread) is using the GPU, I don't know what you could expect apart from the irq/whatever handler. _________________
|
|
Back to top |
|
|
fpemud Guru
Joined: 15 Feb 2012 Posts: 349
|
Posted: Thu Feb 28, 2013 3:00 pm Post subject: |
|
|
Thanks very much.
My video card is intel hd 3000, so I can't use nvidia-msi.
But I search by this as a keyword and find intel-gpu-tools suits me well.
I can see gpu-usage from it, but there's still no gpu-memory-usage information. |
|
Back to top |
|
|
Mr.EVIL n00b
Joined: 22 Mar 2013 Posts: 10
|
Posted: Sat Mar 23, 2013 4:12 pm Post subject: |
|
|
are you trolling ? there is no any memory with Intel GMA ._. |
|
Back to top |
|
|
_______0 Guru
Joined: 15 Oct 2012 Posts: 521
|
Posted: Thu Apr 25, 2013 11:49 am Post subject: ur confused one |
|
|
Mr.EVIL wrote: | are you trolling ? there is no any memory with Intel GMA ._. |
Quote: | I can see gpu-usage from it, but there's still no gpu-memory-usage information. |
The keyword in that sentence is this one --> USAGE. |
|
Back to top |
|
|
fpemud Guru
Joined: 15 Feb 2012 Posts: 349
|
Posted: Fri Apr 26, 2013 1:54 am Post subject: |
|
|
Mr.EVIL wrote: | are you trolling ? there is no any memory with Intel GMA ._. |
Yeah I know GMA uses system memory.
I want to know how much memory it is using, and who is using it. |
|
Back to top |
|
|
|