Re: [Intel-gfx] What's using all my DRI memory?
Adam Nielsen composed on 2016-05-28 16:59 (UTC+1000): Any suggestions with this? My system just crashed again because the Intel driver used up all 16GB of my system memory. Which Intel driver version? Which X server version? Which kernel version? Which window manager/DE? Have you tried running Memtest overnight or longer? How did you decide it's the Intel driver exhausting RAM? If using X server > 16.999, have you tried removing the Intel driver, using instead the modeset driver built into the server? -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] What's using all my DRI memory?
Hi all, Any suggestions with this? My system just crashed again because the Intel driver used up all 16GB of my system memory. Thanks, Adam. On Mon, 9 May 2016 22:06:49 +1000 Adam Nielsenwrote: > 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. > > > ___ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/intel-gfx ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] What's using all my DRI memory?
On Mon, May 09, 2016 at 10:06:49PM +1000, Adam Nielsen wrote: > 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 16MiB for each leaked buffer, I guess framebuffers. Could you checck /sys/kernel/debug/dri/0/i915_gem_framebuffer ? Which kernel? -Chris -- Chris Wilson, Intel Open Source Technology Centre ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
[Intel-gfx] What's using all my DRI memory?
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. ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx