From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B158C433ED for ; Tue, 18 May 2021 09:40:32 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 49DFA610A8 for ; Tue, 18 May 2021 09:40:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 49DFA610A8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CA5A06E866; Tue, 18 May 2021 09:40:31 +0000 (UTC) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 304D06E866; Tue, 18 May 2021 09:40:30 +0000 (UTC) IronPort-SDR: NllE0dEqvIjM3P7KNzA8Z7w72nxO15wXUYqh6U3FDmohLmsmYlaju0NI/PJKCAuUi5Z+/B3IXO 1eKaAm0YSEwg== X-IronPort-AV: E=McAfee;i="6200,9189,9987"; a="221718810" X-IronPort-AV: E=Sophos;i="5.82,309,1613462400"; d="scan'208";a="221718810" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2021 02:40:26 -0700 IronPort-SDR: K6iOpmkmPeNLeglPfgd+qPmb7kTQvkRXF5D7CXEh5yQ8CQ7XS/t5I9S73iegWET8EJ+6ogweQp YS6+JXgo+y3g== X-IronPort-AV: E=Sophos;i="5.82,309,1613462400"; d="scan'208";a="438584204" Received: from alirazas-mobl.ger.corp.intel.com (HELO [10.213.211.104]) ([10.213.211.104]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2021 02:40:24 -0700 To: Daniel Stone References: <6cf2f14a-6a16-5ea3-d307-004faad4cc79@linux.intel.com> <7f8fc38a-cd25-aa1f-fa2d-5d3334edb3d2@linux.intel.com> From: Tvrtko Ursulin Organization: Intel Corporation UK Plc Message-ID: <71428a10-4b2f-dbbf-7678-7487f9eda6a5@linux.intel.com> Date: Tue, 18 May 2021 10:40:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Subject: Re: [Intel-gfx] [PATCH 0/7] Per client engine busyness X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "jhubbard@nvidia.com" , "nouveau@lists.freedesktop.org" , Intel Graphics Development , Maling list - DRI developers , Simon Ser , "Koenig, Christian" , "aritger@nvidia.com" , "Nieto, David M" Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On 18/05/2021 10:16, Daniel Stone wrote: > Hi, > > On Tue, 18 May 2021 at 10:09, Tvrtko Ursulin > wrote: >> I was just wondering if stat(2) and a chrdev major check would be a >> solid criteria to more efficiently (compared to parsing the text >> content) detect drm files while walking procfs. > > Maybe I'm missing something, but is the per-PID walk actually a > measurable performance issue rather than just a bit unpleasant? Per pid and per each open fd. As said in the other thread what bothers me a bit in this scheme is that the cost of obtaining GPU usage scales based on non-GPU criteria. For use case of a top-like tool which shows all processes this is a smaller additional cost, but then for a gpu-top like tool it is somewhat higher. Regards, Tvrtko _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx