[Intel-gfx] What's using all my DRI memory?

Adam Nielsen a.nielsen at shikadi.net
Mon May 9 12:06:49 UTC 2016


Hi all,

I'm trying to track down an annoying bug which is making my system
crash every two weeks, and in between those two weeks I get various
programs, typically Firefox, killed every day or two due to out of
memory errors.

Apparently all this memory is used by the Intel video driver, which
doesn't leave enough memory on my 16GB system for applications to run.
I'm not sure how to work out why this is the case.  Is it a bug in the
Intel driver, not releasing the memory?  Is it a buggy program
allocating too much display memory?  How can I figure out what's using
up all the memory?

According to this, it looks like 8GB of memory is in use:

=====
$ cat /sys/kernel/debug/dri/0/i915_gem_objects 
854 objects, 8128716800 bytes
446 [17] objects, 657387520 [105037824] bytes in gtt
  11 [1] active objects, 1662976 [1048576] bytes
  435 [16] inactive objects, 655724544 [103989248] bytes
0 unbound objects, 0 bytes
28 purgeable objects, 23433216 bytes
5 pinned mappable objects, 103358464 bytes
4 fault mappable objects, 55271424 bytes
2147483648 [268435456] gtt total

systemd-logind: 801 objects, 7467040768 bytes (1593344 active, 599011328 inactive, 600604672 global, 6698557440 shared, 6850830336 unbound)
systemd-logind: 40 objects, 693960704 bytes (0 active, 89206784 inactive, 89206784 global, 520888320 shared, 599760896 unbound)
=====

This seems excessively high, so is there any way to figure out what
it's being used for?

There must be a leak somewhere, because the system will run fine for a
week, then programs start getting killed by the kernel OOM handler more
and more frequently until I can't load any programs any more (they get
killed during launch) and have to reboot the machine.

Many thanks,
Adam.




More information about the Intel-gfx mailing list