Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp39041pxb; Wed, 14 Apr 2021 08:57:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCH5hvoZd1tzdMWLM4HAaWj1JlvX6SDDXMiODP+itk05+fE71Uyg+M8AIKPhF/UE/TG5u4 X-Received: by 2002:a17:90a:d41:: with SMTP id 1mr4522068pju.232.1618415821376; Wed, 14 Apr 2021 08:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618415821; cv=none; d=google.com; s=arc-20160816; b=MVq+Pi8XtCmjvBJBRzdFkGskkQjxEFgyVUHq1aGmOyvjRIivFm0RB2LuCaz9R7qv8M 1itp4QuLz0RxseR6TtotxxS9loXQiqkakFOJw58DLOUvifXsv5lavrreU+qTZFlz/An9 flT34LM7RBYezFUHfgKz7bEsCykmetIaM0wbo2h2MJINYHjh1HnVyhCb8TVYCNVf9sb6 WSNH8SiK55shO03BV/uzTCi7HeDZ8sU53A9KI8BVdtrXNrgKjxCdudRZL3oHzbL9KJWB 3kBfzRFvXRbD5Hj0Zw2L2O1y4RiJqcrh+LzmGnn8uitE5HW/g4WKGBcascHsY1scWth7 W55A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WK2tglOodrWcHX/sWIFzGgFANwYLOhHY9/+WgOzzF7I=; b=SLHSOaXStaYvk7HMkh8hsn0W+u6bASjdYkmmKLy7UclpFtwERzztbT/9S28vyY6wf+ ZyFk6EEY6NkROuv5MOyZi7cwlZRwpbmZKU5Q9FbDVnIuVq0uU61UFNw0UX579BqrqUNo dWE2b2FrR/A91FeCgZOi+I9mS+LDhyK+dcLULveoGqYxEWk5gmnpzJqEVBLaKK+0TNsh xtdvkJB9pirm3acJbcxmLiklkgQWU8F5WD4/NypkZjIlHZL+4dMCgpuyrRnILBQIlNhO p9yA1GUSvjqLJbkt0t8w9ezMNWFVpRQ3S8LJo6mirP6uu4cQeVmlKc15cqb5tqv01e3E 1Bkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=kPNlVeT3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si21535111pgq.393.2021.04.14.08.56.47; Wed, 14 Apr 2021 08:57:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=kPNlVeT3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351091AbhDNNCa (ORCPT + 99 others); Wed, 14 Apr 2021 09:02:30 -0400 Received: from mx2.suse.de ([195.135.220.15]:52572 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345934AbhDNNCR (ORCPT ); Wed, 14 Apr 2021 09:02:17 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1618405315; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WK2tglOodrWcHX/sWIFzGgFANwYLOhHY9/+WgOzzF7I=; b=kPNlVeT3TOhJTXtx1tmHbTs2rzMWQYKHxZybvqPagHlWlCwPmBccMfD6uQo/jUjZGyKp7o yImTJv13aIsF0+sCNJYP6uqNzuHoIr8YcElZhrSWvxGNLVlPMurWICdGqYyB+ZsTHSUGXk blMP2QsrHwsnRMe/OQqG6oHVQ4XYTcA= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id CADEDAFAB; Wed, 14 Apr 2021 13:01:55 +0000 (UTC) Date: Wed, 14 Apr 2021 15:01:55 +0200 From: Michal Hocko To: Feng Tang Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Andrea Arcangeli , David Rientjes , Mel Gorman , Mike Kravetz , Randy Dunlap , Vlastimil Babka , Dave Hansen , Ben Widawsky , Andi Kleen , Dan Williams Subject: Re: [PATCH v4 07/13] mm/mempolicy: handle MPOL_PREFERRED_MANY like BIND Message-ID: References: <1615952410-36895-1-git-send-email-feng.tang@intel.com> <1615952410-36895-8-git-send-email-feng.tang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1615952410-36895-8-git-send-email-feng.tang@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 17-03-21 11:40:04, Feng Tang wrote: > From: Ben Widawsky > > Begin the real plumbing for handling this new policy. Now that the > internal representation for preferred nodes and bound nodes is the same, > and we can envision what multiple preferred nodes will behave like, > there are obvious places where we can simply reuse the bind behavior. > > In v1 of this series, the moral equivalent was: > "mm: Finish handling MPOL_PREFERRED_MANY". Like that, this attempts to > implement the easiest spots for the new policy. Unlike that, this just > reuses BIND. No, this is a bug step back. I think we really want to treat this as PREFERRED. It doesn't have much to do with the BIND semantic at all. At this stage there should be 2 things remaining - syscalls plumbing and 2 pass allocation request (optimistic preferred nodes restricted and fallback to all nodes). -- Michal Hocko SUSE Labs