Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp431568imu; Tue, 27 Nov 2018 14:52:36 -0800 (PST) X-Google-Smtp-Source: AFSGD/XfHjIH2TyKszhDskjNYFzKsq3YrMF1Q1wqiV+ZMP09wUiJM+VoNG1UOK4gJnlGTxVBZSdj X-Received: by 2002:a63:1204:: with SMTP id h4mr30972919pgl.51.1543359156103; Tue, 27 Nov 2018 14:52:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543359156; cv=none; d=google.com; s=arc-20160816; b=YKI4tXffEb9PO99BcBtHQCKwv/VcZ/SzejrUUfd6WJ6BKQ2yyEgYv6q/SZ6YQ2koQR VQGF+m76TUCNbJ4u4VkZvS3o/aPYPCHraHUX8ns4ld4rkpMK/oKx6srFs3TcmNX7duTl Mu+bNaiMdU+WY4cBD3UO7ZrQjU6vsiWoEWYGZLbQrqk+e+ivBdzAyq2nA7jju1BxXmdd BHPdmW7YeS1jxZeVuZhWgHRXLBYwJ0mu/+CoJDBd3x0k7KNN1VeDDNqz6KUDNO5Pj7PZ 3XR0ivDvxCMXk1m2HqJFjcHE9yieCY2yr5pvCpd46rvRNsXxUGNcpEAxAH46gRfjfol2 b4Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aOvCWGaG+QwdWQnwx64Hl42p81ImXtRWxbsAGCUP7FE=; b=sF0bT3PgWEyYpNVdDa31tCH3pSnlgEDkCGrLqNC5zQOzC2d3SVa/DtaPhOY0jeLeoC AHshdzLBPENQTkKiYSXtZWxfCF7PaGv3L6LnZpw0ioI8oljsR4fZyxsQhXniWqU9xbzK L1TA4XWJ3ruQZygXQHAaKxy2LFMbXRPt74g8k4ZEKgj0KfdHc3sBzjt4niwVFSgUzFgu o2SsDu+OrGtstbOVbPRE+lYxM63y0NgnGFgN8x9qb8ykqoznJAj0lR8daSur9p8bw+/d KDP+gOzo9LYnTkapUmcwZb9cEOtod8I5MyyWkrEAt97PGfvWB3Bx8+fZ9TYta8XcO1YZ RLgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=f4erISSE; 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 a190si5084181pgc.423.2018.11.27.14.52.21; Tue, 27 Nov 2018 14:52:36 -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=@linux-foundation.org header.s=google header.b=f4erISSE; 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 S1726636AbeK1Jtw (ORCPT + 99 others); Wed, 28 Nov 2018 04:49:52 -0500 Received: from mail-lj1-f182.google.com ([209.85.208.182]:34371 "EHLO mail-lj1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726068AbeK1Jtv (ORCPT ); Wed, 28 Nov 2018 04:49:51 -0500 Received: by mail-lj1-f182.google.com with SMTP id u6-v6so21611049ljd.1 for ; Tue, 27 Nov 2018 14:50:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aOvCWGaG+QwdWQnwx64Hl42p81ImXtRWxbsAGCUP7FE=; b=f4erISSE49NhPNad62QpCBMPcTkIfjMzxMyZf/uyV4h2Oqi5lRzqMS6ILpUZubXyx9 UvimG4zUs2DYtbgTcsMrMhZhwkdW57EZAbV11MWEW5EhVQ01czGUk8FJNpKeb/rvP+uv PgoTK6TpO259UKlUE7ocAvBx3pvwzQdJkhB+M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aOvCWGaG+QwdWQnwx64Hl42p81ImXtRWxbsAGCUP7FE=; b=MSF74YXGMU7i0K3Up6hdOzDg+Az4f6CJRnxK2XWB5aBnnvKEC7jcmUTQ4K5OCzENSJ MKzlcGVPOgXYbDd7K4xY/M99eoNv8TBXWxSLJ9JEIWvGYv76gs2b3vVgMnYIcfdBBhth JRsZsImfgSWf/E/J0xRxDYRSP/k1sib04jukF/URChfzxmPbWBlUUjosigIBWFYiqb0W mXwqJScMC5THh+CYyF+VvWR9FLTkhnzL8soGh0uNxJ+8xOrplvZsgp4+OqpHllWeHa8i PvgyzwSZ7Gw3szg0FYBB4Glw8Y41xcRMvuOUQxoiiCnYorDF1+dLvEo5KTmZhIC/uKKS m0NA== X-Gm-Message-State: AA+aEWbv51XpYNz5C+ttNNUC/aOeQgrqCYlo93iD8TQnE9C+hPcwQpw/ t2eVZjXzSBeZMQ66rkd9/y0G9r3+0uk= X-Received: by 2002:a2e:9e95:: with SMTP id f21-v6mr21254273ljk.128.1543359023778; Tue, 27 Nov 2018 14:50:23 -0800 (PST) Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com. [209.85.208.170]) by smtp.gmail.com with ESMTPSA id b17sm877341lfc.21.2018.11.27.14.50.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 14:50:22 -0800 (PST) Received: by mail-lj1-f170.google.com with SMTP id c19-v6so21624464lja.5 for ; Tue, 27 Nov 2018 14:50:22 -0800 (PST) X-Received: by 2002:a2e:9819:: with SMTP id a25-v6mr23475934ljj.6.1543359021483; Tue, 27 Nov 2018 14:50:21 -0800 (PST) MIME-Version: 1.0 References: <20181127062503.GH6163@shao2-debian> <20181127205737.GI16136@redhat.com> In-Reply-To: <20181127205737.GI16136@redhat.com> From: Linus Torvalds Date: Tue, 27 Nov 2018 14:50:05 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [LKP] [mm] ac5b2c1891: vm-scalability.throughput -61.3% regression To: Andrea Arcangeli Cc: rong.a.chen@intel.com, Michal Hocko , s.priebe@profihost.ag, alex.williamson@redhat.com, mgorman@techsingularity.net, zi.yan@cs.rutgers.edu, Vlastimil Babka , rientjes@google.com, kirill@shutemov.name, Andrew Morton , Linux List Kernel Mailing , lkp@01.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 27, 2018 at 12:57 PM Andrea Arcangeli wrote: > > This difference can only happen with defrag=always, and that's not the > current upstream default. Ok, thanks. That makes it a bit less critical. > That MADV_HUGEPAGE causes flights with NUMA balancing is not great > indeed, qemu needs NUMA locality too, but then the badness caused by > __GFP_THISNODE was a larger regression in the worst case for qemu. [...] > So the short term alternative again would be the alternate patch that > does __GFP_THISNODE|GFP_ONLY_COMPACT appended below. Sounds like we should probably do this. Particularly since Vlastimil pointed out that we'd otherwise have issues with the back-port for 4.4 where that "defrag=always" was the default. The patch doesn't look horrible, and it directly addresses this particular issue. Is there some reason we wouldn't want to do it? Linus