Received: by 10.223.176.46 with SMTP id f43csp3485600wra; Mon, 22 Jan 2018 15:24:00 -0800 (PST) X-Google-Smtp-Source: AH8x226jVB+/zRPfqBW0ItFF7D7g95UTd1gEP/T6PUbkLmAuR3xpHVZ0siIK3v/tKgwZNb8rtUqt X-Received: by 10.36.70.81 with SMTP id j78mr832641itb.58.1516663440075; Mon, 22 Jan 2018 15:24:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516663440; cv=none; d=google.com; s=arc-20160816; b=k6NfZanar/v8ZcAld6CjHnlDd9arA4BOePneRuGk/13pzu1FhikwIVqILfmHDII6gO kI15VGB1WrSsqobtMod077jz0Yx+HaUuTkSQgfYoaLhZ2fRHSLXcAwscSO5OiIhdkztq y8HflduEBlrcBUkzwr6u31vnbzV69830zjYzD9ENC1n1cnPa1+zvczSNZdpVa0TwPzgL QWhcmKF+nYI3/tm7523kN2vHDaDYfZcvMViWKBa8u/wPGn8Sgieu3+aIz01vioV936pY vW3Q7Tb5KJ11vfWVN/sTX1IsDPVPcj2FQXOe4DPeq+9YHPDbCWYDDQrINW9NCE1P3kpW P3SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=3EWWyjRBjJiQj1vv/TvgJxQvlLxlDfFrJqnt39nW6ms=; b=klSSN2AT3v+pKj7aPL9K/wASrGreku4iBrjEXjPYt1+eusnpuL/pF0/hvGCpLlyIMt mcY9B6zdkfl2QUgjWsNOzDl+uxbA+hCzEGgf8Yw8u1sLfBI4mba5Yc7wrn+zVARCD9x9 GzcxlPrDwJE5tS1PFsWV7bEF3VGogUZWed8Sr9Z+MTNhWhlkzoGVWLSas/z2ZMus96bn rOclqz4BBLdzW++BHRm3OUJXGyyYtpfL8PnFx2D6Hz93nYZTIP5P94OTzqGRRnbaRroN Mjeu3fH0boqpZaOx7U2Xd/1xmL9gzHs/uc4KYu6u9Ktg53ju6KDOUnYf8S8/MKgB1U7b 4zZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3si7306538iob.277.2018.01.22.15.23.47; Mon, 22 Jan 2018 15:24:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751253AbeAVXXS convert rfc822-to-8bit (ORCPT + 99 others); Mon, 22 Jan 2018 18:23:18 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:60194 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751049AbeAVXXR (ORCPT ); Mon, 22 Jan 2018 18:23:17 -0500 Received: from akpm3.svl.corp.google.com (unknown [104.133.9.92]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 89B97E4A; Mon, 22 Jan 2018 23:23:16 +0000 (UTC) Date: Mon, 22 Jan 2018 15:23:15 -0800 From: Andrew Morton To: Andrey Grodzovsky Cc: , , , , Subject: Re: [RFC] Per file OOM badness Message-Id: <20180122152315.749d88f3c91ffce4d70ac450@linux-foundation.org> In-Reply-To: <1516294072-17841-1-git-send-email-andrey.grodzovsky@amd.com> References: <1516294072-17841-1-git-send-email-andrey.grodzovsky@amd.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 18 Jan 2018 11:47:48 -0500 Andrey Grodzovsky wrote: > Hi, this series is a revised version of an RFC sent by Christian K?nig > a few years ago. The original RFC can be found at > https://lists.freedesktop.org/archives/dri-devel/2015-September/089778.html > > This is the same idea and I've just adressed his concern from the original RFC > and switched to a callback into file_ops instead of a new member in struct file. Should be in address_space_operations, I suspect. If an application opens a file twice, we only want to count it once? But we're putting the cart ahead of the horse here. Please provide us with a detailed description of the problem which you are addressing so that the MM developers can better consider how to address your requirements.