Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp396221imu; Fri, 7 Dec 2018 02:58:02 -0800 (PST) X-Google-Smtp-Source: AFSGD/WmXW3yPlEM3YfEQCvAq8HjTrtBn8FdGsqH1sx0mQ+a623LVU2pmXTF6m1xqy3F8uUeKvnO X-Received: by 2002:a62:3006:: with SMTP id w6mr1768305pfw.258.1544180282607; Fri, 07 Dec 2018 02:58:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544180282; cv=none; d=google.com; s=arc-20160816; b=YL0cP1Gb3LQyK5yMDzENZoOxxxPxB8UU6E6ZrcNyyq8/ALXxnjCJnBZnoNLDJ71gVn p7Lr2d1Ky/86UNW0Rppm9hsgy2ROojdUZftSNthtUwq5t43iVXVbSlH4gKILvCUNzVpZ XLqwyaft2bMBUeMMfp7ZtDQGKOJkcDgiU7fsHQF806RiWDfXpqn7d0lJIPt2wNX/xgWn /AE8R6n+W1Oe+Fmz0KeXpmeb/PonbG05r4pGl3Qj1bSrTcah7qWViJBExQVd6Z57ntnO Npe+rPKywUeXzrO/PK2M8dsQKT+57MzfOhjEZ95A+uJ7SQjhgyEDSqW7qtwaO8kNplD2 x+wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=FsIpxNKSMenHMDTCgBREpleE5Ozprrq46gy/XEhUnqw=; b=CUp89elUG4CpckbPjMn+Aq6DAKnqhlF8jCZlNsVvrBkfvXRBDD7JQXXqYtE5Ik9qzD GL1rayXGd6r1cN6IrjCAR6j3qheX88HChJPBGb9c+QomaCC6X9L4cW79teRbIezwS87Z iv9SCGoh05yGN6A7pqEJMDhaMWrmZQevyLrammGChXcA9rsFHcOpnVB0rkAsL54VW7+I dq2LV1XwIedMJAriaOCWF7mtMOPl/XR2LSs1Q2Hos2BwDwcNuHCnpemqMNgBB2FgLWvG JNwCAks2eQ7CyVRt3feTtfoB/MsydHAVkqzkv2dPy7nE0p5ChNEo9RBC9gdUppR/mV+F YalA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si2704269plx.157.2018.12.07.02.57.47; Fri, 07 Dec 2018 02:58:02 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726018AbeLGKz6 (ORCPT + 99 others); Fri, 7 Dec 2018 05:55:58 -0500 Received: from mx2.suse.de ([195.135.220.15]:38856 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725987AbeLGKz5 (ORCPT ); Fri, 7 Dec 2018 05:55:57 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id BE1A1AF0E; Fri, 7 Dec 2018 10:55:55 +0000 (UTC) Date: Fri, 7 Dec 2018 11:55:54 +0100 From: Michal Hocko To: linux-api@vger.kernel.org Cc: Andrew Morton , Alexey Dobriyan , linux-mm@kvack.org, LKML , Dan Williams , David Rientjes , Jan Kara Subject: Re: [RFC PATCH 0/3] THP eligibility reporting via proc Message-ID: <20181207105554.GX1286@dhcp22.suse.cz> References: <20181120103515.25280-1-mhocko@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181120103515.25280-1-mhocko@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 20-11-18 11:35:12, Michal Hocko wrote: > Hi, > this series of three patches aims at making THP eligibility reporting > much more robust and long term sustainable. The trigger for the change > is a regression report [1] and the long follow up discussion. In short > the specific application didn't have good API to query whether a particular > mapping can be backed by THP so it has used VMA flags to workaround that. > These flags represent a deep internal state of VMAs and as such they should > be used by userspace with a great deal of caution. > > A similar has happened for [2] when users complained that VM_MIXEDMAP is > no longer set on DAX mappings. Again a lack of a proper API led to an > abuse. > > The first patch in the series tries to emphasise that that the semantic > of flags might change and any application consuming those should be really > careful. > > The remaining two patches provide a more suitable interface to address [1] > and provide a consistent API to query the THP status both for each VMA > and process wide as well. Are there any other comments on these? I haven't heard any pushback so far so I will re-send with RFC dropped early next week. > > [1] http://lkml.kernel.org/r/http://lkml.kernel.org/r/alpine.DEB.2.21.1809241054050.224429@chino.kir.corp.google.com > [2] http://lkml.kernel.org/r/20181002100531.GC4135@quack2.suse.cz > -- Michal Hocko SUSE Labs