Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5770292imm; Tue, 16 Oct 2018 16:12:42 -0700 (PDT) X-Google-Smtp-Source: ACcGV62H+teTTNj52RFp+dU+JdMZPlY48GCyRu6pDUISReJZVHhtSmLegS/j/bDr+m5lYsvO32pM X-Received: by 2002:a17:902:9b89:: with SMTP id y9-v6mr23456250plp.239.1539731562652; Tue, 16 Oct 2018 16:12:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539731562; cv=none; d=google.com; s=arc-20160816; b=xRF5vS6EMDPwIDp8OsJ8iAJMvH2LHCKK6rhTHt6AmubN96vaev1F360fxsFLXrgkQu vcti+WatWhvgMX2kQDA+ww9ZWhKWNl/iywCL4pwcVfeZ/KBQxSAPI0VITxrcIrcPoc+/ JVsYmvKDHWX+oqAQvVNF0Vwk4RhRwdXoIUSh2AgH5ohpd0uKnOPTSlNt8f18xzFKcGRY lbRUbaUnuAn51bsAzCc/A3iaP6s3f3PYsSNFYcJ7soQu/B/P9Y95J+lS2WrUzdfPk4eE fhEQiz/RJN1L3POvtWVePEI/4UPb8N3Ghy7UmQXvz5H14pWqOYOBY+cP57n2xyviuJpc IF6Q== 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=fKB5kW2qAsdaKf6WxDCG4Jnfjrftf59uYvcl/UnFti8=; b=dIVQEUpJVZ+mQCiScO4kUagyv47uoCHqRMK4p2o23YpVokT6wtXOryU1riAYw6VXi8 ux49CE/vOwgEXcpaahRwED0hCr8q7qvg2Lq8vV1zesEjRJnOeM7DYzFmC9fjIH7PTpsF 6j6x4HFSbc85fNxJTZA9Nrg8h3FOUApSyvDaJkFtwNse2CXEJVy6p0HCnPmY+08B5wEE 0kwkzuOg9z944DJ5RmGNl6KcYkFTEaDJbKvS2Aw9SiZYC1djgpOLirJKZuYkqEtM8po4 0/sJTf5YGxZGLzDHfbOn1Ln18m9+nEMLfqbFMLdmn90HzIge0wPRa6kQuKgpXV052wGP ZlZg== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 34-v6si17244336pgy.249.2018.10.16.16.12.25; Tue, 16 Oct 2018 16:12:42 -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; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727127AbeJQHEb (ORCPT + 99 others); Wed, 17 Oct 2018 03:04:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55574 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726703AbeJQHEa (ORCPT ); Wed, 17 Oct 2018 03:04:30 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F2016308624E; Tue, 16 Oct 2018 23:11:50 +0000 (UTC) Received: from sky.random (ovpn-120-12.rdu2.redhat.com [10.10.120.12]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5C02060490; Tue, 16 Oct 2018 23:11:50 +0000 (UTC) Date: Tue, 16 Oct 2018 19:11:49 -0400 From: Andrea Arcangeli To: Andrew Morton Cc: Mel Gorman , David Rientjes , Michal Hocko , Vlastimil Babka , Andrea Argangeli , Zi Yan , Stefan Priebe - Profihost AG , "Kirill A. Shutemov" , linux-mm@kvack.org, LKML , Stable tree Subject: Re: [PATCH 1/2] mm: thp: relax __GFP_THISNODE for MADV_HUGEPAGE mappings Message-ID: <20181016231149.GJ30832@redhat.com> References: <20181009094825.GC6931@suse.de> <20181009122745.GN8528@dhcp22.suse.cz> <20181009130034.GD6931@suse.de> <20181009142510.GU8528@dhcp22.suse.cz> <20181009230352.GE9307@redhat.com> <20181015154459.e870c30df5c41966ffb4aed8@linux-foundation.org> <20181016074606.GH6931@suse.de> <20181016153715.b40478ff2eebe8d6cf1aead5@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181016153715.b40478ff2eebe8d6cf1aead5@linux-foundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Tue, 16 Oct 2018 23:11:51 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Tue, Oct 16, 2018 at 03:37:15PM -0700, Andrew Morton wrote: > we'll still make it into 4.19.1. Am reluctant to merge this while > discussion, testing and possibly more development are ongoing. I think there can be definitely more developments primarily to make the compact deferred logic NUMA aware. Instead of a global deferred logic, we should split it per zone per node so that it backs off exponentially with an higher cap in remote nodes. The current global "backoff" limit will still apply to the "local" zone compaction. Who would like to work on that? However I don't think it's worth waiting for that, because it's not a trivial change. Certainly we can't ship upstream in production with this bug, so if it doesn't get fixed upstream we'll fix it downstream first until the more developments are production ready. This was a severe regression compared to previous kernels that made important workloads unusable and it starts when __GFP_THISNODE was added to THP allocations under MADV_HUGEPAGE. It is not a significant risk to go to the previous behavior before __GFP_THISNODE was added, it worked like that for years. This was simply an optimization to some lucky workloads that can fit in a single node, but it ended up breaking the VM for others that can't possibly fit in a single node, so going back is safe. Thanks, Andrea