Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7218785imu; Wed, 14 Nov 2018 13:41:59 -0800 (PST) X-Google-Smtp-Source: AJdET5eYMCFFyPyqRjUmOMKguoZCDkrK7TwxSjToLMyjsrRHkYrUFaWYD9mOjEXagJWUnjXX91Lb X-Received: by 2002:a63:f444:: with SMTP id p4mr3325421pgk.124.1542231719019; Wed, 14 Nov 2018 13:41:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542231718; cv=none; d=google.com; s=arc-20160816; b=j0eS7sNW0VYrNs/HiNKej2MbC7WLDb9EpiTR65ICmn1VMpzYxeJO8CLrkmaC9AZSgu zXAmE+9H/MpV+whrLmSQ2rszX1qbYtAWctEd1hP3fPuDSLJ0cxuP3RWu9hxdwcFtCO3r IDDLIbuJqfl6yFUWk8Z5N65+9VY8+A4NV0A+a5IvbTYtt/uby6jkW6Griau9GfMsO8oT Bmj3CbFntIuY1sXXBRxoTtyOulQL/cu/BLt68jnWulQzY+VCTBswP6mmEcvtw/wRPaj8 R2DPy5jejgZiys5Z45LGvBHB1TeXIWZEUU1axdBzd1r5W5Cko6Ge/bGuIbFzFVhjDyz+ 7hDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=wGu35BytE5MFLe3wiIaMa1iK3sSv0nEWLe5DbLqduK8=; b=gROP67CvJS36QFn+5BnMOjYl0nZjsiphw5ywTaVtXc1cFStryvH4iS1Et86UVfcx5+ /QYH0M1BzjW+WAHgAdTDA7cF7oVQKFHAd4WLi1TmVj+LqOlfa7oOf0PxKGK+mjZjSMci dmRERdXa+UguODG55UVCW3wuKj/9ofOOWjYTUoD5Shcv4M8vThYsVcGE/97hr4/aopUR Rn2Ce1GBOsCukxR4XpMDMWuBrkztVaIOTNI/rtDWxXTmE9QQzFx8NospZr8TJIoJc6+j OEPXkvCBHCeA+5DaXYz/novzPV8MouSQcpjQe4BJDVEguD71uyDmcJxpEFnZeQNxa2Er MCqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=an2VW91M; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q129-v6si23103505pga.96.2018.11.14.13.41.38; Wed, 14 Nov 2018 13:41:58 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=an2VW91M; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727118AbeKOHqM (ORCPT + 99 others); Thu, 15 Nov 2018 02:46:12 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33686 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725895AbeKOHqM (ORCPT ); Thu, 15 Nov 2018 02:46:12 -0500 Received: by mail-pf1-f195.google.com with SMTP id v68-v6so8573295pfk.0 for ; Wed, 14 Nov 2018 13:41:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=wGu35BytE5MFLe3wiIaMa1iK3sSv0nEWLe5DbLqduK8=; b=an2VW91MA1T9qZ2PHtda93I5gBdaba8fxSwwidt89RBj0yqRH/ZvbG5vhC7NLtWq4t IXzBbHaUm58BT9OG9Bue9IZHcobudCjdObrL9udDFH+zfdG9U+iwfiQYf2c8/FKdag5Q YiuHvR0KyFI6tonkoxZZuBYE23lcBMJrJKCuEgkp4onE2VOGL8kS/KmhbbDs/pRXdfkR TiGFuXPwI/5FAJntYD99dipkSUH41TdqSqEnbV9uza7FZ+RuFUp6WrX+p7xCxncXfEOU vUDayA3qDJaUGwURusPJgo14VzrmCC3RrVQ/fymBYWUHNtOZt9I6JLhNgIN1qPEyQEA7 igrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=wGu35BytE5MFLe3wiIaMa1iK3sSv0nEWLe5DbLqduK8=; b=nP4tNun/Y8rqFoJtPWveqj4kAobWhW75Iy0fBz9qat/+5mZU36XyTXPTO9SGinb6Co jr4NpKovPns6HkYrmcsnJk1qQ0XO4SwAwebiymiujd61rw0ope2SVwb/oJaqKXXIqDHA 9fKdIG2cbiuW9iZZ3s6xd+4xYakaOQil2sbNNUtP8ohELPv7ldawQvM6ajpRJ53qJATU 12QdqJw0nqchiG55B9BmSEFbnH1buFe7HVcUykj9CJLsDPrYxPLwn7U9s0YRB0si08yy 8Yzi1hy5+bvXm8QHwdAx4amkKO480xx7FEdtcgNMrViciCUDLjAg0Bx8rDp+ICmALucT eTew== X-Gm-Message-State: AGRZ1gKU3DpkB/q6vLEfa7VZ/LrQDrxm/j32x6IOZmk1YtkwrgzAy1lp Muc9quhc7goeTEuojswjkuFB4A== X-Received: by 2002:a63:77ce:: with SMTP id s197mr3297389pgc.89.1542231674742; Wed, 14 Nov 2018 13:41:14 -0800 (PST) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id x26sm689403pfn.50.2018.11.14.13.41.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Nov 2018 13:41:13 -0800 (PST) Date: Wed, 14 Nov 2018 13:41:12 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Michal Hocko cc: Andrew Morton , Vlastimil Babka , Alexey Dobriyan , "Kirill A. Shutemov" , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org Subject: Re: [RFC PATCH] mm, proc: report PR_SET_THP_DISABLE in proc In-Reply-To: <20181114132306.GX23419@dhcp22.suse.cz> Message-ID: References: <20181004094637.GG22173@dhcp22.suse.cz> <20181009083326.GG8528@dhcp22.suse.cz> <20181015150325.GN18839@dhcp22.suse.cz> <20181016104855.GQ18839@dhcp22.suse.cz> <20181017070531.GC18839@dhcp22.suse.cz> <20181018070031.GW18839@dhcp22.suse.cz> <20181114132306.GX23419@dhcp22.suse.cz> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Nov 2018, Michal Hocko wrote: > > > > Do you know of any other userspace except your usecase? Is there > > > > anything fundamental that would prevent a proper API adoption for you? > > > > > > > > > > Yes, it would require us to go back in time and build patched binaries. > > > > I read that as there is a fundamental problem to update existing > > binaries. If that is the case then there surely is no way around it > > and another sad page in the screwed up APIs book we provide. > > > > But I was under impression that the SW stack which actually does the > > monitoring is under your controll. Moreover I was under impression that > > you do not use the current vanilla kernel so there is no need for an > > immediate change on your end. It is trivial to come up with a backward > > compatible way to check for the new flag (if it is not present then > > fallback to vma flags). > > The userspace had a single way to determine if thp had been disabled for a specific vma and that was broken with your commit. We have since fixed it. Modifying our software stack to start looking for some field somewhere else will not help anybody else that this has affected or will affect. I'm interested in not breaking userspace, not trying a wait and see approach to see if anybody else complains once we start looking for some other field. The risk outweighs the reward, it already broke us, and I'd prefer not to even open the possibility of breaking anybody else.