All of lore.kernel.org
 help / color / mirror / Atom feed
* Checking the amount of memory pinned by i915_gem_object_get_pages_gtt()
@ 2018-11-02 12:48 Vovo Yang
  2018-11-02 13:00 ` Chris Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Vovo Yang @ 2018-11-02 12:48 UTC (permalink / raw)
  To: intel-gfx; +Cc: Dave Hansen

Is there a way to check the amount of memory pinned by
i915_gem_object_get_pages_gtt(), it would be very helpful to check
system memory usage.

I think the pinned field in i915_gem_gtt has a different meaning and
doesn't indicate whether a gem object is pinned by
i915_gem_object_get_pages_gtt().

# cat /sys/kernel/debug/dri/0/i915_gem_gtt
   ffff9fe1e9a7a3c0:   X       4224KiB 3e 02  uncached dirty (pinned x
0) (ppgtt offset: 00c00000, size: 00420000, pages: 4K)
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Checking the amount of memory pinned by i915_gem_object_get_pages_gtt()
  2018-11-02 12:48 Checking the amount of memory pinned by i915_gem_object_get_pages_gtt() Vovo Yang
@ 2018-11-02 13:00 ` Chris Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Wilson @ 2018-11-02 13:00 UTC (permalink / raw)
  To: Vovo Yang, intel-gfx; +Cc: Dave Hansen

Quoting Vovo Yang (2018-11-02 12:48:18)
> Is there a way to check the amount of memory pinned by
> i915_gem_object_get_pages_gtt(), it would be very helpful to check
> system memory usage.

Though it includes a few non-shmemfs objects, see
debugfs/dri/0/i915_gem_objects and the "bound objects".
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-02 13:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-02 12:48 Checking the amount of memory pinned by i915_gem_object_get_pages_gtt() Vovo Yang
2018-11-02 13:00 ` Chris Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.