All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Widawsky <ben@bwidawsk.net>
To: Michal Mocny <mmocny@google.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: Shared memory management
Date: Sat, 3 Mar 2012 10:04:09 +0000	[thread overview]
Message-ID: <20120303100408.GA7052@cloud01> (raw)
In-Reply-To: <CAEeF2Te6VkQqy-bLpakLi0uQcHK1R3OLsJcoV-nXUsWAePaxLg@mail.gmail.com>

On Thu, Mar 01, 2012 at 11:41:53AM -0500, Michal Mocny wrote:
> Hello,
> 
> I am trying to measure video memory usage as per Ben Widawsky's
> instructions from a while back:
> 
> mount debugfs
> cat /sys/kernel/debug/dri/0/i915_gem_gtt
> 
> However, the numbers are difficult to read/draw conclusions from.  Can I
> get some insight into the meaning of the various column values?
>  Specifically, if I would like to measure the actual current physical
> memory usage, should any of the values be ignored?
> 
> Thanks,
> -Michal

At the bottom you should see something like:
Total 370 objects, 35368960 bytes, 35368960 GTT size

The number in bytes (not sure offhand how it differs from GTT) is the
current physical memory usage of GEM objects. While it does not account
for internal data structures, or currently locked user pages (which
could be very large at various times), it is a good approximation.

I've since learned Eugeni Dodonov has written a tool to make this more
readable. I'm not sure what you get if you use that instead.

~Ben

  reply	other threads:[~2012-03-03 10:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-01 16:41 Shared memory management Michal Mocny
2012-03-03 10:04 ` Ben Widawsky [this message]
2012-03-03 10:53   ` Chris Wilson
  -- strict thread matches above, loose matches on Subject: below --
2012-01-06  8:30 Yegor Yefremov
2012-01-06 16:18 ` Eric Anholt
2012-01-06 16:40   ` Ben Widawsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120303100408.GA7052@cloud01 \
    --to=ben@bwidawsk.net \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=mmocny@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.