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=-0.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,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 BACB2C433B4 for ; Tue, 20 Apr 2021 13:35:47 +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 43EE561027 for ; Tue, 20 Apr 2021 13:35:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 43EE561027 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 A67C36E826; Tue, 20 Apr 2021 13:35:46 +0000 (UTC) Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0A6986E826 for ; Tue, 20 Apr 2021 13:35:46 +0000 (UTC) Received: by mail-wr1-x430.google.com with SMTP id e7so28673590wrs.11 for ; Tue, 20 Apr 2021 06:35:45 -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=h0665Q9PlPd4DaUIk9mWhDK12nGo1R6bvXcfes8jy7o=; b=IWajLmN5ZmjJXWRPY3Xxn1VGiWgGfCNajHv7kcIxPb6M6J5dHAGvXTLKV5TrBicQer GqpsO6pSTn8oyzlBNQtQkKyhgzbdmONsBQCa9vz3vK4lfWXnKBR8PAVvEC31ygMirhbc qJ/fhJHtGaLhcEUTll80aBeiVXw2coYcZ/N0D4eYs3ZUj5qsjat4LbvKotnQsz1OyuuF a4+ncr1wlsAEKY0SfeaoENT3/WVS9PMUj5PfQXZMBtmfNlCCrC3koQXGnfQ8toui7hEq 3nRj1zDtU6auPfAo0Ut40AJNMG+ETdMu4AR2FjgHlpCKv7jjVncDGjwFGO3f6xPz55+q AHLQ== 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=h0665Q9PlPd4DaUIk9mWhDK12nGo1R6bvXcfes8jy7o=; b=ckOo0FfuMlQYTqgZ7ju3nQtC8YRjtBMIgkguBZZ6G6j8wIp1B5DhhoOEFzF6xhTZw7 72Aum9W6v9qSUlTycZ5Uj1C4SCBQec9MoKRqDbf1wBvsCAhT2Puo5oGZeUR2u0kXpPBV hSigLn6c5YZDpS1PvYmvVGqoOKfdu8Izc4W80Gyz2Z3kjRPMM1igoaW5U8XI4YDAA+p7 qUcBQBjWbXc3Ykvo/hB7whbRjU/ntMYKqw0tIzXaeTB0yGKNCpw3J4Ioxsy/7W2ROFf6 74LgY3DILBkpqwyHqhykmWOerRjOXRnKq5alMqktCWyLXbbZAclM1Zvn93xqBC5482Io mcoQ== X-Gm-Message-State: AOAM531KEG7bq94kgCZEnZIUJrISi2HmnzlRYxOO/hz11GEZ0KGpeCtj IysFuJYwZiSQx9FrzISplRWBEmogErjDWSB6mITsPw== X-Google-Smtp-Source: ABdhPJxuJXO0zzw6aKgSeT2Hl07jbqe9w8e2wOp9LJynwiaXBlRSa/MVfrZLfC4Tl9Tj/xypxtar5EW0p1iPvPkA0Do= X-Received: by 2002:a5d:4b8b:: with SMTP id b11mr20538465wrt.256.1618925744656; Tue, 20 Apr 2021 06:35:44 -0700 (PDT) MIME-Version: 1.0 References: <20210416123352.10747-1-peter.enderborg@sony.com> In-Reply-To: <20210416123352.10747-1-peter.enderborg@sony.com> From: Daniel Stone Date: Tue, 20 Apr 2021 14:34:58 +0100 Message-ID: Subject: Re: [PATCH v2] dma-buf: Add DmaBufTotal counter in meminfo To: Peter Enderborg 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: Michal Hocko , Matthew Wilcox , NeilBrown , Linux Kernel Mailing List , dri-devel , Alexey Dobriyan , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Shakeel Butt , Mike Rapoport , Sami Tolvanen , Muchun Song , linux-fsdevel@vger.kernel.org, Andrew Morton , =?UTF-8?Q?Christian_K=C3=B6nig?= , Roman Gushchin , "open list:DMA BUFFER SHARING FRAMEWORK" Content-Type: multipart/mixed; boundary="===============1385376121==" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" --===============1385376121== Content-Type: multipart/alternative; boundary="000000000000eda49405c067851b" --000000000000eda49405c067851b Content-Type: text/plain; charset="UTF-8" Hi Peter, On Fri, 16 Apr 2021 at 13:34, Peter Enderborg wrote: > This adds a total used dma-buf memory. Details > can be found in debugfs, however it is not for everyone > and not always available. dma-buf are indirect allocated by > userspace. So with this value we can monitor and detect > userspace applications that have problems. > FWIW, this won't work super well for Android where gralloc is implemented as a system service, so all graphics usage will instantly be accounted to it. Cheers, Daniel --000000000000eda49405c067851b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable --000000000000eda49405c067851b-- --===============1385376121== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1385376121==--