libGL heap usage
NickName:pholz Ask DateTime:2012-05-22T16:06:34

libGL heap usage

I am working on a linux-based c++ OpenGL application, utilizing the Nvidia 290.10 64bit drivers. I am trying to reduce its memory footprint as it makes use of quite a lot of live data.

I've been using valgrind/massif to analyze heap usage, and while it helped me optimize various things, by now the largest chunk of heap memory used is allocated by libGL. No matter how I set the threshold, massif doesn't let me see in detail where those allocations come from, just that it's libGL. At peak times, I see about 250MB allocated by libGL (out of 900MB total heap usage). I hold a similar amount of memory on the graphics card, as VBOs and Textures (mostly one big 4096*4096 texture).

So it appears as if a similar amount of memory as what I upload to GPU memory is allocated on the heap by libGL. The libGL allocations also peak when the volume of VBOs peaks. Is that normal? I thought one of the benefits of having a lot of GPU memory is that it keeps the RAM free?

Copyright Notice:Content Author:「pholz」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/10698125/libgl-heap-usage

More about “libGL heap usage” related questions

libGL heap usage

I am working on a linux-based c++ OpenGL application, utilizing the Nvidia 290.10 64bit drivers. I am trying to reduce its memory footprint as it makes use of quite a lot of live data. I've been u...

Show Detail

Monitor Java heap usage

I am about to monitor JVM memory utilization for individual nodes. The tool (JON 3.3) has different metrics like initial heap/non heap , committed heap/non heap , used heap /non heap , maximum heap...

Show Detail

JVM Heap memory usage - Heap memory usage not crossing minimum heap size

My application heap memory usage is not increasing beyond minimum heap size. Ex : If I had set Xms as 1024 and Xmx as 2048, application memory usage is not crossing my Xms limit. Full Garbage

Show Detail

Java heap usage monitor

I have decided to monitor maximum heap usage and used heap of my EAP applications (using rhq/JON3.3) Pulled out both parameters for SINGLE node and it showing as max heap: 682.7MB and used heap to ...

Show Detail

Elastic Search measure heap usage

How I can use heap usage of elastic search cluster between some time range? I want to check performance and heap usage of elastic search if I am continuously updating documents and at the same time...

Show Detail

Heap memory usage for Openssl

I have a simple HTTPS server implemented with Openssl library in C. The heap usage seems huge for a single connection. The following are some objects that might take big heap space: char readbuffe...

Show Detail

JVM GC behaviour on heap dump and unnecessary heap usage

We have problem tuning the memory management of JVM's. The very same application running on the k8s cluster, but one of the pods' jvm heap usage rises to ~95% and, when we try to get a heapdump on ...

Show Detail

How to measure peak heap memory usage in Java?

How to measure peak heap memory usage in Java? MemoryPoolMXBean keeps track of the peak usage per memory pool, but not the entire heap. And the peak heap usage is not simply the sum of different heap

Show Detail

Huge Heap Mem Usage for a Simple Task

I am trying to understand what is going on in a basic flink stream job. I have a basic flink job which reads from kafka as string, in a flatmap makes some string operations and sends messages back to

Show Detail

Dynamically capturing heap usage stats collection

I want to programatically capture the statistics of java application for all its objects present in heap and their usage. My requirement is not to analyze the heap dump with MAT, but dynamically t...

Show Detail