Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GPU Memory Usage Monitor?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rada
Apprentice
Apprentice


Joined: 21 Oct 2005
Posts: 202
Location: Ottawa, Canada

PostPosted: Thu Mar 29, 2007 7:15 pm    Post subject: GPU Memory Usage Monitor? Reply with quote

Hi, I'm wondering if there are any tools which can monitor GPU memory usage. I have seen this in a few apps and games but never in a system monitor tool.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Sun Apr 01, 2007 10:28 am    Post subject: Reply with quote

Nice Idea, did you find anything?
Back to top
View user's profile Send private message
bLUEbYTE84
Guru
Guru


Joined: 21 Jul 2006
Posts: 566
Location: universe.tar.gz, src/earth.h, struct homo_sapiens_table

PostPosted: Sun Apr 01, 2007 3:34 pm    Post subject: Reply with quote

I don't think this is possible except inside the actual 3d application internally. The reason is that the allocation of video ram is done in a way that is not similar to the, say, system RAM.
The video RAM is allocated for two purposes:
1-Frame-buffer: Constant, computable ( widthxheightxbpp/8 bytes)
2-Texture storage: As I said, no generic way to monitor this. Only possibility is the implementing it inside the application I think.

You can map to video memory just like the real RAM and read it(via kernel fusion device interface), for instance you might see something like:
132475234238052304587634852365235000000000000
in which case you would say "X percent of the memory is not yet allocated(all zeros)". But this has two problems:
AFAIK the video memory is all-zero only on fresh powerons. Plus, I don't think the unused(de-alloced) sections are cleared.

Another possibility might be implementing it in driver or OpenGL-library level. In the first case I suspect this would require hardware assistance. But I'm not sure about that.
_________________
Advanced Signature Camouflage System®(ASCS) v0.1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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