Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3259565imm; Fri, 20 Jul 2018 13:03:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcOyURilbmls/+TeW8qviL5uqBnbXupldgZ7zSSaSIHNs8yERHau9ZbK9janwQbSiu+LW60 X-Received: by 2002:a17:902:1:: with SMTP id 1-v6mr3383392pla.167.1532117012956; Fri, 20 Jul 2018 13:03:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532117012; cv=none; d=google.com; s=arc-20160816; b=Au1asX/apWo9cwYDpQB8H0BG370kwWi8OVPBDGtxPdHZoYqd6czQ7bfFJr5gwFnUCo kCojojlM0rmFHNdItMW5f6hRnisl/ObHGG6A6UmjnmF50hE6wZpVVZpkkUGnoIzGRPan mEenQPGZ02tv41gmmAHEm2znZNnYf2WA43oI/TGERHb0pIJdR280rwXufX6hE9tsGsjQ FxhT2Ttn3UFznMnNrcUd4Cb97zdG4pqvcqG4HgV746UcjU58fvNUcAgabzbQhZYk5W4q 6r0SMi1GGy4UNvSJKRK+wH6uQyv8x7/CfBf1AC5vVl5G3BA+N4UHuE9EstHqglHoe2Rk 1Uzw== 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 :arc-authentication-results; bh=U95wxqtS68PgL/wEjb2QH8e7ZhgUqbKMAwpAR9PEnYo=; b=I3wKYuugwm19e4U7Qxym/aL7abBZgZUoSt7s7GBxGuH1ERn0adQqgmqZlOO/2Od2I0 IRYioLSwCD6z4PK052wkh6e5vYYPu5Qa4K0LfvS9gnKwDUPsBdaNHXIv8z/7aoFVQGLb DEGfh9MgWfRQ3gUarZT+4rZjV3PR3LSQAWkRii5owDxqmh2kSxhP+Vx7C17oTA3GRAoS jNUTNREZS5O7Sc371yk5NtsWO7ElzG3Tp+gL57Z6n9Bg+VQiDzLq2XUE5eB0ZrVlqtfW aXfcw3tFzviei1KnJnJUPlwSMoJwCiFg5KsSjbou2R5R6QN3RtH6dojKTctl5ZO4qvxR GMkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=lB6bPnQQ; 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 y141-v6si334567pfb.331.2018.07.20.13.03.18; Fri, 20 Jul 2018 13:03:32 -0700 (PDT) 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=lB6bPnQQ; 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 S1728088AbeGTUwV (ORCPT + 99 others); Fri, 20 Jul 2018 16:52:21 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:36571 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727815AbeGTUwV (ORCPT ); Fri, 20 Jul 2018 16:52:21 -0400 Received: by mail-pg1-f194.google.com with SMTP id s7-v6so4277276pgv.3 for ; Fri, 20 Jul 2018 13:02:34 -0700 (PDT) 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=U95wxqtS68PgL/wEjb2QH8e7ZhgUqbKMAwpAR9PEnYo=; b=lB6bPnQQj3ZjkYGq4qveIXejJuLOa4UyQVnlyxADJc+YL4qMk/s09r5xH+OQfzcQ4v Rzdsy5j/oT/UFDCdlmtoOeBH6B1f3ySAI0EqBBCU4YjDyqEin++jQscaz99rZ2x8yYUD vqrZtt3EWceSdvR/8P8bhWUJxpTNSnkRHADmc3MSqJLzoebABZvzeeCCxqrjlm1Lg7U+ 4MaG/eBV3MQqQ4zoaAQ/fBk32lF/WToFfc1j7VzZVPOndKtcCMadwwOPd6tCF+wkLO5N nHCZO/AqLr06FUCDK5F3+x+4/K/NjERS4gUq1NrTbIKBQrvQgYmQE7cDfqgdR7a0yMCa YpOQ== 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=U95wxqtS68PgL/wEjb2QH8e7ZhgUqbKMAwpAR9PEnYo=; b=kP0KzWdC6fOSQIbEnIFMRnt5ml0CuA4mnBEmvOJCjheINVDb+uMz59BC5eQw+SEKPr /RXk46R/ShKXcVfWvjsaeXrLl1jaVM6F9oZLUYz0ogDUdSeweSZmsFwyInRtPHu0Qq8G s/eWNLDdQzHHq1wBTfaA/dAD1sA/jfcUnjF4lOuaFtRl40JKoEMM+8bzPWPvFXnWB1Oz 3mEdiRBqcuXAdyiM/OfDDyt49Id65j52EbkTK+vhsTSVa4vryrK7Wk4pwxix8nDIruTu nzxQsAeFW1qXTQekA++EGrZlTRqjP+kkVYZarCU+h1B84oWJDImetO0XiMXX/BbIUTQf X+Aw== X-Gm-Message-State: AOUpUlHFUkN2Twf53Kpn/zn5sdo2mZOB4i62eueo2SBO+bpBe/y2SBmJ wgLfc24VAS3o9BLiIMJstHtbvg== X-Received: by 2002:a63:b349:: with SMTP id x9-v6mr3278961pgt.337.1532116954297; Fri, 20 Jul 2018 13:02:34 -0700 (PDT) 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 d123-v6sm3816721pfa.22.2018.07.20.13.02.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Jul 2018 13:02:33 -0700 (PDT) Date: Fri, 20 Jul 2018 13:02:33 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Andrew Morton cc: Yang Shi , kirill@shutemov.name, hughd@google.com, aaron.lu@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: thp: remove use_zero_page sysfs knob In-Reply-To: <20180720123243.6dfc95ba061cd06e05c0262e@linux-foundation.org> Message-ID: References: <1532110430-115278-1-git-send-email-yang.shi@linux.alibaba.com> <20180720123243.6dfc95ba061cd06e05c0262e@linux-foundation.org> 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 Fri, 20 Jul 2018, Andrew Morton wrote: > > By digging into the original review, it looks use_zero_page sysfs knob > > was added to help ease-of-testing and give user a way to mitigate > > refcounting overhead. > > > > It has been a few years since the knob was added at the first place, I > > think we are confident that it is stable enough. And, since commit > > 6fcb52a56ff60 ("thp: reduce usage of huge zero page's atomic counter"), > > it looks refcounting overhead has been reduced significantly. > > > > Other than the above, the value of the knob is always 1 (enabled by > > default), I'm supposed very few people turn it off by default. > > > > So, it sounds not worth to still keep this knob around. > > Probably OK. Might not be OK, nobody knows. > > It's been there for seven years so another six months won't kill us. > How about as an intermediate step we add a printk("use_zero_page is > scheduled for removal. Please contact linux-mm@kvack.org if you need > it"). > We disable the huge zero page through this interface, there were issues related to the huge zero page shrinker (probably best to never free a per-node huge zero page after allocated) and CVE-2017-1000405 for huge dirty COW.