From patchwork Mon Aug 20 03:26:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Arcangeli X-Patchwork-Id: 10569855 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 62F5F920 for ; Mon, 20 Aug 2018 03:26:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C2C229131 for ; Mon, 20 Aug 2018 03:26:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F51A29135; Mon, 20 Aug 2018 03:26:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 26A8829131 for ; Mon, 20 Aug 2018 03:26:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 487696B16F3; Sun, 19 Aug 2018 23:26:45 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 435506B16F4; Sun, 19 Aug 2018 23:26:45 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 325556B16F5; Sun, 19 Aug 2018 23:26:45 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk0-f199.google.com (mail-qk0-f199.google.com [209.85.220.199]) by kanga.kvack.org (Postfix) with ESMTP id 0CC416B16F3 for ; Sun, 19 Aug 2018 23:26:45 -0400 (EDT) Received: by mail-qk0-f199.google.com with SMTP id w126-v6so13661637qka.11 for ; Sun, 19 Aug 2018 20:26:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=dJkqfE4dr5ZNvGDl/wDRjkc5vLpp1zBSIr9zrlpHEiY=; b=p1EkLRAuefh/7NKhlBGio+oQw7vb57KKZDhNTXbG76a3GxJbm23Ck6ri4Dj9Uw1dZM lbqKMTVCfPUKMisTwCpfGNG7l2awgpsYKQMELEZma1EE8TkVOWKxzUAjKeNJG34sES5X pPrWEDLlbmOzggm2dPCmg9RrBnC2lML4/Kf2s2mTpG4iC//uDV196Cd4q+7bTrO8qqS4 HvWOV95KsXGg2jHP7mwwycKTp2R9mXNA+xpLUdKAbL3BFvDOnB0xeeoYhj1ug45TEoOU 2+tOHjH96fj5uVj6mEfRSgwLxhbvcH6ToYvFS9tbBUZa9r0nIBROUyenDR3/FZXMPGAn QVFg== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of aarcange@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=aarcange@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: AOUpUlH8yHK+TcD5hrhAxMfqkqPgWBJoWZHjtHcicja/dL+HlloG1Mom LSbZjPNMa8/WBYHqxfzh/PPubAqCXAJIk/4i5+4VB5/d8Hcepm+KNXYP4mx0rncRHeM4Wi+8RG4 Q2KfRdjrimpJppC/wayBFXXMODlxqduDFkEk4Akjeljvb/xDKcjM4Qhg0K4lMgRPvrw== X-Received: by 2002:aed:3a29:: with SMTP id n38-v6mr14185463qte.148.1534735604801; Sun, 19 Aug 2018 20:26:44 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxWXt9l4c5rV08lsHcLH7h67T/TbJpSFyC0qafiMxvCpq3mwUxO6vH/HSSVGknrEDhIdbrq X-Received: by 2002:aed:3a29:: with SMTP id n38-v6mr14185445qte.148.1534735604421; Sun, 19 Aug 2018 20:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534735604; cv=none; d=google.com; s=arc-20160816; b=N593IGiQp3ofiaIwT6VTaThbQd3yyqvTpBsuPh4xSnQGd53tLikDUb5/cZf4qdDcEe TR4ZFALhgD3eku+/vmd7J0Vbsqb4/ZRvg5DhqXNOaar+oXW4pCV1VzoqMVILFk9pJUtg dpl8sFv/uhATbe+VLUWcm3l0byvCescoy2nsL27P/CyhFAZwg5iyAaOU4lgsWJzuKcW3 r3fvDQHehwArtqQoIp3smZaDqBsmrcNfQK4Amnthiqwz7bEi18SIclpQjdCX6LgyHCII NZzcSdY6kpnc4ClfdHU+5Z+1WtkaRgM8LSYM/XhjeRicpqwqafuyJaTPvfSCy/Dtl93P uS2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=dJkqfE4dr5ZNvGDl/wDRjkc5vLpp1zBSIr9zrlpHEiY=; b=no29fSewJ8NaVgO/ehIZXZ7xwfpz6xTzOO8qtwByTnLf5PZ8SK32GfYPvkDniHY7WJ pmVwn7a/GF9n+z3RnG2BpoQT4jYkD4qU1NzLnXv+dDkjAmWaP8LPGaIRTmM/92FfHMXU RXS57iOygLvh44cK1T2IYoeYHFDMhszck03GYBtAbJal45qRN9BaJqDLgtyw0jh72epq IxIugguL5Ixu4kzWrtAk3JFmUuzdKDb4KubdPSvIFpKOObmr6yX9LM5DSvNLBgunoJ/G mcBdjLAiVJaL+VeEagVlPQx/TnKWNCQhr1CjidnfI53lbZT+mfCzAXjCGs19TALPWb/t At4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of aarcange@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=aarcange@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id x61-v6si685265qvx.96.2018.08.19.20.26.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Aug 2018 20:26:44 -0700 (PDT) Received-SPF: pass (google.com: domain of aarcange@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of aarcange@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=aarcange@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A0317308421C; Mon, 20 Aug 2018 03:26:43 +0000 (UTC) Received: from sky.random (ovpn-120-72.rdu2.redhat.com [10.10.120.72]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A3547308BDA0; Mon, 20 Aug 2018 03:26:41 +0000 (UTC) From: Andrea Arcangeli To: Andrew Morton Cc: linux-mm@kvack.org, Alex Williamson , David Rientjes , Vlastimil Babka Subject: [PATCH 0/1] fix for "pathological THP behavior" v2 Date: Sun, 19 Aug 2018 23:26:39 -0400 Message-Id: <20180820032640.9896-1-aarcange@redhat.com> In-Reply-To: <20180820032204.9591-3-aarcange@redhat.com> References: <20180820032204.9591-3-aarcange@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Mon, 20 Aug 2018 03:26:43 +0000 (UTC) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Hello, This would be the other option which also works well, but changes the behavior of MADV_HUGEPAGE and defrag="always" to prioritize THP generation over NUMA locality. Thanks, Andrea Andrea Arcangeli (1): mm: thp: fix transparent_hugepage/defrag = madvise || always mm/mempolicy.c | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-)