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=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 C935EC433ED for ; Tue, 18 May 2021 09:17:11 +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 8E1F86135D for ; Tue, 18 May 2021 09:17:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8E1F86135D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=fooishbar.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=nouveau-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5F6F26EB19; Tue, 18 May 2021 09:17:07 +0000 (UTC) Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4343E6E84A for ; Tue, 18 May 2021 09:17:05 +0000 (UTC) Received: by mail-wr1-x432.google.com with SMTP id i17so9337178wrq.11 for ; Tue, 18 May 2021 02:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fooishbar-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9eTPO/t6NCx/uQxkUlEH7zQPG+VNu47KdFOPfaH3erE=; b=K0J9+LUeBjKpfAq1eso85FwLWG/fzU/3gAs1+laTEAsGsadH4ShCeT1i/mRXGIb4A0 dbEfer8uNPkFJB0IPEwS1v7fS29yW8JEUV27ePNg6MLa2FCThJan6FNhiKrf3QmcZ+tp GUa7D3d+Ay3IJBcuJGszjLzj/7q6ItNFNQHLyfomlcAUaz9jDOlMNUayZ7395NVTr1Ff 6aZ/pFA1ZqEHWDOS9M+GWDwYXIZVQ39mbDG6FdBIG4+SdQpHZfcOBdpFRUH4Vj9TFwe1 nlcGU3H9udX6PY8LB4AxngCmzlfyJVnMZpOZEs/2ISFuAD+i4jn4lVXYiWCZ1HntLN/I earA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9eTPO/t6NCx/uQxkUlEH7zQPG+VNu47KdFOPfaH3erE=; b=FIzmQL+W5CcdX0NiEa2ErQCo7+etEE/nD9wunWbn5kUoFBrGSwTDUcU4z9Zgl9QBp9 0cG5sdsBm2T97yL8eV2AV2/RUV8BPXYlR8LF9fFhEipINMo+4ogNJiGLLB5OgTzas/mo M9SP6je1pPzUwpT15TemeH/nWx6Mt91v6oA6N4WsOmkoR/I7QL1GCBQWWBw8xjnjXPeR Vw5i5rzYKVt5HvjoR0DSfGMIg6/IJ0WHT6ZLJBfX+yo3yr5LBqHiHH/HTAnYjdZ9hgd7 figOmv1w/RTeMq9MY20dVReSTDK+zcHAHg2aOayXiHnW2yS2R2RgdVtpA+8Zsbqo/NXv 3kxg== X-Gm-Message-State: AOAM530B9qD1cUXnkvis+6sJCwE2GrU/ty1fu/WI5g2NqV11u5TXmm2R /hKGpJcbzC+RWsxI22Ep8a9eBaJ9abVILlx0lCZGug== X-Google-Smtp-Source: ABdhPJxN4k+wHiN+IopkT08sjmzmaYf2pZO0ZVnrzgFQ2RRcF6ozwlW5KmeBRhHPEiXC5UP8hW2E/0py4TRuOBk/3S0= X-Received: by 2002:a5d:6e04:: with SMTP id h4mr5496119wrz.256.1621329423850; Tue, 18 May 2021 02:17:03 -0700 (PDT) MIME-Version: 1.0 References: <6cf2f14a-6a16-5ea3-d307-004faad4cc79@linux.intel.com> <7f8fc38a-cd25-aa1f-fa2d-5d3334edb3d2@linux.intel.com> In-Reply-To: <7f8fc38a-cd25-aa1f-fa2d-5d3334edb3d2@linux.intel.com> From: Daniel Stone Date: Tue, 18 May 2021 10:16:52 +0100 Message-ID: To: Tvrtko Ursulin Subject: Re: [Nouveau] [PATCH 0/7] Per client engine busyness X-BeenThere: nouveau@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Nouveau development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "nouveau@lists.freedesktop.org" , Intel Graphics Development , Maling list - DRI developers , Simon Ser , "Koenig, Christian" , "Nieto, David M" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: nouveau-bounces@lists.freedesktop.org Sender: "Nouveau" 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? Cheers, Daniel _______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/nouveau 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=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 EFDA0C433ED for ; Tue, 18 May 2021 09:17:08 +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 7FD6161285 for ; Tue, 18 May 2021 09:17:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7FD6161285 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=fooishbar.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B57726E855; Tue, 18 May 2021 09:17:06 +0000 (UTC) Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 505896E853 for ; Tue, 18 May 2021 09:17:05 +0000 (UTC) Received: by mail-wr1-x42b.google.com with SMTP id z17so9346486wrq.7 for ; Tue, 18 May 2021 02:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fooishbar-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9eTPO/t6NCx/uQxkUlEH7zQPG+VNu47KdFOPfaH3erE=; b=K0J9+LUeBjKpfAq1eso85FwLWG/fzU/3gAs1+laTEAsGsadH4ShCeT1i/mRXGIb4A0 dbEfer8uNPkFJB0IPEwS1v7fS29yW8JEUV27ePNg6MLa2FCThJan6FNhiKrf3QmcZ+tp GUa7D3d+Ay3IJBcuJGszjLzj/7q6ItNFNQHLyfomlcAUaz9jDOlMNUayZ7395NVTr1Ff 6aZ/pFA1ZqEHWDOS9M+GWDwYXIZVQ39mbDG6FdBIG4+SdQpHZfcOBdpFRUH4Vj9TFwe1 nlcGU3H9udX6PY8LB4AxngCmzlfyJVnMZpOZEs/2ISFuAD+i4jn4lVXYiWCZ1HntLN/I earA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9eTPO/t6NCx/uQxkUlEH7zQPG+VNu47KdFOPfaH3erE=; b=aMMklKpfrZ45nmAsu1t1pa5IGqsbIkq9TeL28LHakKdsIPPWqGXQ281+Q5sn/PZsB3 m2GqadAkW7UEVOm3EHiUU7/ocVVc0V9pKXcMFG0+Me+JhOgc9BcRC8fMXP6GJqO5t6kz X+eal0Y2P57qdIuiWdh5MV4WCcXJD0juSQFA4TKl+a1WTq53CGsY5X/3LfguFccLNN9u g/azMb5pFE8CRkvxrZFs2pILDgHGZvfFgUTzG/0nccmbKPyxkEifFvAii8lfTfH7PAA+ uoCFYA/ZsUYL9BYVe7EhX9571qsR47EKRoOgH+4jqT71ESZD6sDpHaLfzg4fhvAL4krE WH9Q== X-Gm-Message-State: AOAM531l2nuXFePInPMPnN3Xpk+QJeGIqFEsb4nZOJ+BjNGGXdM/P3aW boa8Y2/5gt6hDdMmmzMkZFZE2V95I5VyWQtDNzdKmQ== X-Google-Smtp-Source: ABdhPJxN4k+wHiN+IopkT08sjmzmaYf2pZO0ZVnrzgFQ2RRcF6ozwlW5KmeBRhHPEiXC5UP8hW2E/0py4TRuOBk/3S0= X-Received: by 2002:a5d:6e04:: with SMTP id h4mr5496119wrz.256.1621329423850; Tue, 18 May 2021 02:17:03 -0700 (PDT) MIME-Version: 1.0 References: <6cf2f14a-6a16-5ea3-d307-004faad4cc79@linux.intel.com> <7f8fc38a-cd25-aa1f-fa2d-5d3334edb3d2@linux.intel.com> In-Reply-To: <7f8fc38a-cd25-aa1f-fa2d-5d3334edb3d2@linux.intel.com> From: Daniel Stone Date: Tue, 18 May 2021 10:16:52 +0100 Message-ID: Subject: Re: [PATCH 0/7] Per client engine busyness To: Tvrtko Ursulin Content-Type: text/plain; charset="UTF-8" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - 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 , "Koenig, Christian" , "aritger@nvidia.com" , "Nieto, David M" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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? Cheers, Daniel 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=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 DA5D4C433ED for ; Tue, 18 May 2021 09:17:06 +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 7F40961285 for ; Tue, 18 May 2021 09:17:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7F40961285 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=fooishbar.org 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 0E8096E84A; Tue, 18 May 2021 09:17:06 +0000 (UTC) Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by gabe.freedesktop.org (Postfix) with ESMTPS id 617126E854 for ; Tue, 18 May 2021 09:17:05 +0000 (UTC) Received: by mail-wr1-x434.google.com with SMTP id j14so7621663wrq.5 for ; Tue, 18 May 2021 02:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fooishbar-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9eTPO/t6NCx/uQxkUlEH7zQPG+VNu47KdFOPfaH3erE=; b=K0J9+LUeBjKpfAq1eso85FwLWG/fzU/3gAs1+laTEAsGsadH4ShCeT1i/mRXGIb4A0 dbEfer8uNPkFJB0IPEwS1v7fS29yW8JEUV27ePNg6MLa2FCThJan6FNhiKrf3QmcZ+tp GUa7D3d+Ay3IJBcuJGszjLzj/7q6ItNFNQHLyfomlcAUaz9jDOlMNUayZ7395NVTr1Ff 6aZ/pFA1ZqEHWDOS9M+GWDwYXIZVQ39mbDG6FdBIG4+SdQpHZfcOBdpFRUH4Vj9TFwe1 nlcGU3H9udX6PY8LB4AxngCmzlfyJVnMZpOZEs/2ISFuAD+i4jn4lVXYiWCZ1HntLN/I earA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9eTPO/t6NCx/uQxkUlEH7zQPG+VNu47KdFOPfaH3erE=; b=PnpshUByishDzcQvpmgtGBK7V6+W4iJHpozey6XMtnJ5uVAie8/byHLd3WZnWW/x4y pcGHyUXrJ0jyaJofPTRCAgk33y3PtpXKfHbLmaNQS31cqSg9oySwUhKyPjcXU8buPCf1 AXOPxej1hAyyA5kZBP5VJK+XzQ5zT8cdWGtpBcKHZH9B2qXssVCQyQ/bzN4ExtLHGm9V xoxZZDe44l2EQNl7Nj79dbC29JUQFscGuGAJEv8RenOTrqjRX2dE0J7HzghtMy8lG8Dk 9olQGp/XwxYno5zf9FILjUAajkdpOZBddSPz9XbcVaUOWzq2RmeSecahgXrV49mwKwiC l+3w== X-Gm-Message-State: AOAM530HAdWIaGxgdpQ7HJFQhbdj4D4P4EZlMcEL3n5teh7onN3S8f8F fJoNmq/mPWLid5gZPqKt56DKuxlogdHI/wmqMZo9Mg== X-Google-Smtp-Source: ABdhPJxN4k+wHiN+IopkT08sjmzmaYf2pZO0ZVnrzgFQ2RRcF6ozwlW5KmeBRhHPEiXC5UP8hW2E/0py4TRuOBk/3S0= X-Received: by 2002:a5d:6e04:: with SMTP id h4mr5496119wrz.256.1621329423850; Tue, 18 May 2021 02:17:03 -0700 (PDT) MIME-Version: 1.0 References: <6cf2f14a-6a16-5ea3-d307-004faad4cc79@linux.intel.com> <7f8fc38a-cd25-aa1f-fa2d-5d3334edb3d2@linux.intel.com> In-Reply-To: <7f8fc38a-cd25-aa1f-fa2d-5d3334edb3d2@linux.intel.com> From: Daniel Stone Date: Tue, 18 May 2021 10:16:52 +0100 Message-ID: To: Tvrtko Ursulin 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" 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? Cheers, Daniel _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx