Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
About GPU-usage and GPU-memory-usage?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
fpemud
Guru
Guru


Joined: 15 Feb 2012
Posts: 349

PostPosted: Thu Feb 28, 2013 1:16 am    Post subject: About GPU-usage and GPU-memory-usage? Reply with quote

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
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Thu Feb 28, 2013 7:29 am    Post subject: Reply with quote

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
View user's profile Send private message
fpemud
Guru
Guru


Joined: 15 Feb 2012
Posts: 349

PostPosted: Thu Feb 28, 2013 3:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mr.EVIL
n00b
n00b


Joined: 22 Mar 2013
Posts: 10

PostPosted: Sat Mar 23, 2013 4:12 pm    Post subject: Reply with quote

are you trolling ? there is no any memory with Intel GMA ._.
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Thu Apr 25, 2013 11:49 am    Post subject: ur confused one Reply with quote

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
View user's profile Send private message
fpemud
Guru
Guru


Joined: 15 Feb 2012
Posts: 349

PostPosted: Fri Apr 26, 2013 1:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum