Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp584129pxb; Wed, 27 Jan 2021 15:52:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJySTgGG6o9ix0ffZd0QENVHdCjbCs7Mb9478ON3ROkKC5V+xJg1hHbbF9tv/rC3qnG8ORFw X-Received: by 2002:a17:906:298b:: with SMTP id x11mr8894130eje.158.1611791554734; Wed, 27 Jan 2021 15:52:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611791554; cv=none; d=google.com; s=arc-20160816; b=X1qeONBg09qpUbVre5Z/5znotxghzh+aDVZgQwl34FNhbS6FZ1Q5uLt+1d4vpnrB0W ReXUBbZmX3N0DG2GA4jVhIopZh/FcePHVm7QXhp0UTLI3yEsaiaW/Kq9TDr+B1VTI7U6 F3kkyzATzDX9hhRqrJ37F3/LMiXUQay5tRoQ4g3Je8i2l2ZY+2nb/qcZdMvYhP/LajEU 9vRNfesKFgeEJcnsm+NJgk86MSo20Ajg06NrW9pfhmiW+c/8ymMh8q63g9aRi2Au02h2 P128Fi4ruKSn0idKu9EU95t29uBbVIPgNQjTtHkrHaZ9YT39+Z2XJdvuwS6mF/fIKXDE dGIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=99b/OdLEJ9KjwcEyxGPTzdQW144ByhF4k4uosoq51RU=; b=LgjzlwsrprNU+i/m0OUwcKAuanbG7PMzNFm36o0wnPEwPCbp8OpIfp3ho0i/171tYW UrsDDomA+8EoKU2hKnxFhv6f4lENvcemRijtjYQHEQqLekeQ2Ky8ib3aZY5V+S3lBrfp NWBc1bBbHFlJiFskAZq88NN4S/KSHRvR28s2dSD5k++8Wv4j2TjUnUPN7Vi98vAIFJ09 Ir1mDZc9u/p6CVvf/9tlL4I5EwSS261VGRZHUaWOKLTqNMeiaSlyoN1+efIFTVxTlqfE sgYZmqpX9bBOdvGggg/hZFxhUgvoTpGeXv/110lJPv5WDphCEaLuBGV9kjpxK5hZwLnV tB5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=diYSQP3S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm28si1753264edb.528.2021.01.27.15.52.10; Wed, 27 Jan 2021 15:52:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=diYSQP3S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236698AbhA0L31 (ORCPT + 99 others); Wed, 27 Jan 2021 06:29:27 -0500 Received: from mx2.suse.de ([195.135.220.15]:44916 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236567AbhA0L1y (ORCPT ); Wed, 27 Jan 2021 06:27:54 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1611746827; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=99b/OdLEJ9KjwcEyxGPTzdQW144ByhF4k4uosoq51RU=; b=diYSQP3S6Y8kEMtpEhcN88lTl4rBuzcA+btJgHGJDVBXzl72W3kHlLkTjxKO+qVGumgP8Z 2M0wNjlEMq0IvjdTNK97lM2TffBqN1kVD/ly9x52X8I2b8F6AKHJLN41TUiidqhl9j+fHw rIMQHVxH352Xlqa6vEh93MvXViYxRz8= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 5B698AC9B; Wed, 27 Jan 2021 11:27:07 +0000 (UTC) Date: Wed, 27 Jan 2021 12:27:03 +0100 From: Michal Hocko To: Christian =?iso-8859-1?Q?K=F6nig?= Cc: Jann Horn , Kalesh Singh , Suren Baghdasaryan , Minchan Kim , Greg Kroah-Hartman , Hridya Valsaraju , kernel-team , Alexey Dobriyan , Jonathan Corbet , Sumit Semwal , Mauro Carvalho Chehab , Andrew Morton , Kees Cook , Alexey Gladkov , Szabolcs Nagy , "Eric W. Biederman" , Daniel Jordan , Michel Lespinasse , Bernd Edlinger , Andrei Vagin , Yafang Shao , Hui Su , kernel list , linux-fsdevel , "open list:DOCUMENTATION" , Linux Media Mailing List , dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, Jeffrey Vander Stoep , Linux API Subject: Re: [PATCH] procfs/dmabuf: Add /proc//task//dmabuf_fds Message-ID: References: <20210126225138.1823266-1-kaleshsingh@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 27-01-21 12:01:55, Christian K?nig wrote: [...] > Some years ago I've proposed an change to improve the OOM killer to take > into account how much memory is reference through special file descriptors > like device drivers or DMA-buf. > > But that never want anywhere because of concerns that this would add to much > overhead to the OOM killer. I have to admit I do not remember such a discussion. There were many on the related topic, concerns were mostly about a proper accounting of shared resources or locking required to gain the information. I do not remember overhead as being the main concern as oom is a real cold path. Anyway, if you want to revamp those patches then feel free to CC me and we can discuss further. I do not want to hijack this thread by an unrelated topic. -- Michal Hocko SUSE Labs