From: Kamil Konieczny <kamil.konieczny@linux.intel.com> To: igt-dev@lists.freedesktop.org Cc: "Rob Clark" <robdclark@chromium.org>, "Christian König" <ckoenig.leichtzumerken@gmail.com>, Intel-gfx@lists.freedesktop.org, "Christian König" <christian.koenig@amd.com> Subject: Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 8/8] gputop: Basic vendor agnostic GPU top tool Date: Mon, 6 Feb 2023 15:04:29 +0100 [thread overview] Message-ID: <20230206140429.z7e5i5ed6mz3xkew@kamilkon-desk1> (raw) In-Reply-To: <0edf920f-0ba8-2aa7-6b52-07facb400b3f@linux.intel.com> Hi Tvrtko, On 2023-02-06 at 09:19:02 +0000, Tvrtko Ursulin wrote: > > On 03/02/2023 16:42, Kamil Konieczny wrote: > > Hi Tvrtko, > > > > On 2023-01-31 at 11:32:37 +0000, Tvrtko Ursulin wrote: > > > From: Tvrtko Ursulin <tvrtko.ursulin@intel.com> > > > > > > Rudimentary vendor agnostic example of how lib_igt_drm_clients can be used > > > to display a sorted by card and usage list of processes using GPUs. > > > > > > Borrows a bit of code from intel_gpu_top but for now omits the fancy > > > features like interactive functionality, card selection, client > > > aggregation, sort modes, JSON output and pretty engine names. Also no > > > support for global GPU or system metrics. > > > > > > On the other hand it shows clients from all DRM cards which > > > intel_gpu_top does not do. > > > > > > Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> > > > Cc: Rob Clark <robdclark@chromium.org> > > > Cc: Christian König <ckoenig.leichtzumerken@gmail.com> > > > Acked-by: Christian König <christian.koenig@amd.com> > > > > I run it with: > > # ./gputop > > > > but it do not work on my Skylake card, I see no output, > > kernel 5.19.0-29-generic, ubuntu 22.10 > > Odd, 5.19 should have the support. Intel_gpu_top works - it is showing the > individual clients? There is no display nor any gpu app running, when I run some igt tests then it does sometimes prints some activity. Intel_gpu_top works and shows headers and zero activity so it mislead me. > > > > > # ./lsgpu > > card0 Intel Skylake (Gen9) drm:/dev/dri/card0 > > └─renderD128 drm:/dev/dri/renderD128 > > > > Please add some options like debug, version, debug with high > > verbose level, help. It seems like q or Q do not exit. > > As the cover letter hints I was only set out to demonstrate an extremely > rudimentary vendor agnostic tool. To quote the cover letter more - "..It > also makes no effort to provide sorting modes, well any interactivity, or > any pretty names for GPUs or engines..". I have no scope presently to make > it better or nicer. > > The tool however can serve as a starting point and people had reported it > working as-is with a few other drivers, AMD, msm and most recently I believe > etnaviv. So perhaps a pool of people to further improve it will be found > there in the future. > > In summary I think it's worth reviewing so that the common code gets > extracted from intel_gpu_top into respective libraries. After that I was > hoping other people start contributing further improvements. > > Regards, > > Tvrtko I agree it is good starting point, it may have something like overall gpu activity, imho something which shows gpu % usage (mem % and power %) for all GPUs present. Regards, Kamil
WARNING: multiple messages have this Message-ID (diff)
From: Kamil Konieczny <kamil.konieczny@linux.intel.com> To: igt-dev@lists.freedesktop.org Cc: "Rob Clark" <robdclark@chromium.org>, "Tvrtko Ursulin" <tvrtko.ursulin@intel.com>, "Christian König" <ckoenig.leichtzumerken@gmail.com>, Intel-gfx@lists.freedesktop.org, "Christian König" <christian.koenig@amd.com> Subject: Re: [igt-dev] [PATCH i-g-t 8/8] gputop: Basic vendor agnostic GPU top tool Date: Mon, 6 Feb 2023 15:04:29 +0100 [thread overview] Message-ID: <20230206140429.z7e5i5ed6mz3xkew@kamilkon-desk1> (raw) In-Reply-To: <0edf920f-0ba8-2aa7-6b52-07facb400b3f@linux.intel.com> Hi Tvrtko, On 2023-02-06 at 09:19:02 +0000, Tvrtko Ursulin wrote: > > On 03/02/2023 16:42, Kamil Konieczny wrote: > > Hi Tvrtko, > > > > On 2023-01-31 at 11:32:37 +0000, Tvrtko Ursulin wrote: > > > From: Tvrtko Ursulin <tvrtko.ursulin@intel.com> > > > > > > Rudimentary vendor agnostic example of how lib_igt_drm_clients can be used > > > to display a sorted by card and usage list of processes using GPUs. > > > > > > Borrows a bit of code from intel_gpu_top but for now omits the fancy > > > features like interactive functionality, card selection, client > > > aggregation, sort modes, JSON output and pretty engine names. Also no > > > support for global GPU or system metrics. > > > > > > On the other hand it shows clients from all DRM cards which > > > intel_gpu_top does not do. > > > > > > Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> > > > Cc: Rob Clark <robdclark@chromium.org> > > > Cc: Christian König <ckoenig.leichtzumerken@gmail.com> > > > Acked-by: Christian König <christian.koenig@amd.com> > > > > I run it with: > > # ./gputop > > > > but it do not work on my Skylake card, I see no output, > > kernel 5.19.0-29-generic, ubuntu 22.10 > > Odd, 5.19 should have the support. Intel_gpu_top works - it is showing the > individual clients? There is no display nor any gpu app running, when I run some igt tests then it does sometimes prints some activity. Intel_gpu_top works and shows headers and zero activity so it mislead me. > > > > > # ./lsgpu > > card0 Intel Skylake (Gen9) drm:/dev/dri/card0 > > └─renderD128 drm:/dev/dri/renderD128 > > > > Please add some options like debug, version, debug with high > > verbose level, help. It seems like q or Q do not exit. > > As the cover letter hints I was only set out to demonstrate an extremely > rudimentary vendor agnostic tool. To quote the cover letter more - "..It > also makes no effort to provide sorting modes, well any interactivity, or > any pretty names for GPUs or engines..". I have no scope presently to make > it better or nicer. > > The tool however can serve as a starting point and people had reported it > working as-is with a few other drivers, AMD, msm and most recently I believe > etnaviv. So perhaps a pool of people to further improve it will be found > there in the future. > > In summary I think it's worth reviewing so that the common code gets > extracted from intel_gpu_top into respective libraries. After that I was > hoping other people start contributing further improvements. > > Regards, > > Tvrtko I agree it is good starting point, it may have something like overall gpu activity, imho something which shows gpu % usage (mem % and power %) for all GPUs present. Regards, Kamil
next prev parent reply other threads:[~2023-02-06 14:08 UTC|newest] Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-01-31 11:32 [Intel-gfx] [PATCH i-g-t v3 0/8] Vendor agnostic gputop Tvrtko Ursulin 2023-01-31 11:32 ` [igt-dev] " Tvrtko Ursulin 2023-01-31 11:32 ` [Intel-gfx] [PATCH i-g-t 1/8] lib: Extract igt_drm_clients from intel_gpu_top Tvrtko Ursulin 2023-01-31 11:32 ` [igt-dev] " Tvrtko Ursulin 2023-01-31 11:32 ` [Intel-gfx] [PATCH i-g-t 2/8] lib: Allow specifying custom engine map Tvrtko Ursulin 2023-01-31 11:32 ` [igt-dev] " Tvrtko Ursulin 2023-01-31 11:32 ` [Intel-gfx] [PATCH i-g-t 3/8] lib/igt_drm_clients: Record client drm minor Tvrtko Ursulin 2023-01-31 11:32 ` [igt-dev] " Tvrtko Ursulin 2023-01-31 11:32 ` [Intel-gfx] [PATCH i-g-t 4/8] lib/igt_drm_clients: Support multiple DRM cards Tvrtko Ursulin 2023-01-31 11:32 ` [igt-dev] " Tvrtko Ursulin 2023-01-31 11:32 ` [Intel-gfx] [PATCH i-g-t 5/8] lib/igt_drm_fdinfo: Track largest engine index Tvrtko Ursulin 2023-01-31 11:32 ` [igt-dev] " Tvrtko Ursulin 2023-01-31 11:32 ` [Intel-gfx] [PATCH i-g-t 6/8] lib/igt_drm_clients: Decouple hardcoded engine assumptions Tvrtko Ursulin 2023-01-31 11:32 ` [igt-dev] " Tvrtko Ursulin 2023-01-31 11:32 ` [Intel-gfx] [PATCH i-g-t 7/8] lib/igt_drm_clients: Enforce client status sort order in the library Tvrtko Ursulin 2023-01-31 11:32 ` [igt-dev] " Tvrtko Ursulin 2023-01-31 11:32 ` [Intel-gfx] [PATCH i-g-t 8/8] gputop: Basic vendor agnostic GPU top tool Tvrtko Ursulin 2023-01-31 11:32 ` [igt-dev] " Tvrtko Ursulin 2023-02-03 16:42 ` [Intel-gfx] " Kamil Konieczny 2023-02-03 16:42 ` Kamil Konieczny 2023-02-06 9:19 ` [Intel-gfx] " Tvrtko Ursulin 2023-02-06 9:19 ` Tvrtko Ursulin 2023-02-06 14:04 ` Kamil Konieczny [this message] 2023-02-06 14:04 ` Kamil Konieczny 2023-04-05 17:57 ` [Intel-gfx] " Rob Clark 2023-04-05 17:57 ` [igt-dev] " Rob Clark 2023-04-06 11:08 ` [Intel-gfx] " Tvrtko Ursulin 2023-04-06 11:08 ` [igt-dev] " Tvrtko Ursulin 2023-04-06 14:21 ` [Intel-gfx] " Rob Clark 2023-04-06 14:21 ` Rob Clark 2023-04-06 14:31 ` [Intel-gfx] " Tvrtko Ursulin 2023-04-06 14:31 ` Tvrtko Ursulin 2023-05-12 14:18 ` [Intel-gfx] " Rob Clark 2023-05-12 14:18 ` Rob Clark 2023-05-15 11:10 ` [Intel-gfx] " Tvrtko Ursulin 2023-05-15 11:10 ` Tvrtko Ursulin 2023-01-31 12:14 ` [igt-dev] ✓ Fi.CI.BAT: success for Vendor agnostic gputop (rev5) Patchwork 2023-01-31 15:55 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
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=20230206140429.z7e5i5ed6mz3xkew@kamilkon-desk1 \ --to=kamil.konieczny@linux.intel.com \ --cc=Intel-gfx@lists.freedesktop.org \ --cc=christian.koenig@amd.com \ --cc=ckoenig.leichtzumerken@gmail.com \ --cc=igt-dev@lists.freedesktop.org \ --cc=robdclark@chromium.org \ /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: linkBe 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.