Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1276FC433DB for ; Fri, 29 Jan 2021 09:09:32 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8F60664E25 for ; Fri, 29 Jan 2021 09:09:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8F60664E25 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B238A6B0005; Fri, 29 Jan 2021 04:09:30 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AD38B6B0006; Fri, 29 Jan 2021 04:09:30 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9C26B6B006C; Fri, 29 Jan 2021 04:09:30 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0160.hostedemail.com [216.40.44.160]) by kanga.kvack.org (Postfix) with ESMTP id 8403F6B0005 for ; Fri, 29 Jan 2021 04:09:30 -0500 (EST) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 3A9ECB7B5 for ; Fri, 29 Jan 2021 09:09:30 +0000 (UTC) X-FDA: 77758239300.27.owl80_1e14606275a7 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin27.hostedemail.com (Postfix) with ESMTP id 1062C3D663 for ; Fri, 29 Jan 2021 09:09:30 +0000 (UTC) X-HE-Tag: owl80_1e14606275a7 X-Filterd-Recvd-Size: 4286 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf33.hostedemail.com (Postfix) with ESMTP for ; Fri, 29 Jan 2021 09:09:29 +0000 (UTC) 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=1611911368; 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=YFtVLdlIVH2jXvzTRdXBD6Y/XPSS60fNDgiP5eQHEtA=; b=lM6X3AZfpVQIcm18l4du/0EYbSRRoTmdZRfxIZCpodQ9Y1GMfVe0K4f8ZMrXxpxyhpV5BZ IDdq7r7sNMpPWPJoMocMtLvJ/Ay6SLL4/swScQLrr2NBxmANwxUCWaLsuhmHjBF2zC16Pk QnLU8C/T54xueIpEoRxYHKXtpZqSLL0= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 286CEAE47; Fri, 29 Jan 2021 09:09:28 +0000 (UTC) Date: Fri, 29 Jan 2021 10:09:25 +0100 From: Michal Hocko To: Andrew Morton Cc: Mike Kravetz , Oscar Salvador , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Naoya Horiguchi , Muchun Song , David Hildenbrand , Matthew Wilcox , Miaohe Lin Subject: Re: [PATCH v3 3/5] hugetlb: only set HPageMigratable for migratable hstates Message-ID: References: <20210122195231.324857-1-mike.kravetz@oracle.com> <20210122195231.324857-4-mike.kravetz@oracle.com> <20210127103523.GI827@dhcp22.suse.cz> <2196d93e-f573-7163-183e-0ad2cec7555e@oracle.com> <20210128055221.GA3166@localhost.localdomain> <20210128133733.ce1fb2eac98ab5696c08f288@linux-foundation.org> <12187293-e972-acd8-7789-22ebfa736f95@oracle.com> <20210128141531.17fec31e6075fe0eb6e33683@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210128141531.17fec31e6075fe0eb6e33683@linux-foundation.org> 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: On Thu 28-01-21 14:15:31, Andrew Morton wrote: > On Thu, 28 Jan 2021 14:00:29 -0800 Mike Kravetz wrote: > > > On 1/28/21 1:37 PM, Andrew Morton wrote: > > > On Thu, 28 Jan 2021 06:52:21 +0100 Oscar Salvador wrote: > > > > > >> On Wed, Jan 27, 2021 at 03:36:41PM -0800, Mike Kravetz wrote: > > >>> Yes, this patch is somewhat optional. It should be a minor improvement > > >>> in cases where we are dealing with hpages in a non-migratable hstate. > > >>> Although, I do not believe this is the common case. > > >>> > > >>> The real reason for even looking into this was a comment by Oscar. With > > >>> the name change to HPageMigratable, it implies that the page is migratable. > > >>> However, this is not the case if the page's hstate does not support migration. > > >>> So, if we check the hstate when setting the flag we can eliminate those > > >>> cases where the page is certainly not migratable. > > >>> > > >>> I don't really love this patch. It has minimal functional value. > > >>> > > >>> Oscar, what do you think about dropping this? > > >> > > >> Yeah, I remember this topic arose during a discussion of patch#2 in the > > >> early versions, about whether the renaming to HPageMigratable made > > >> sense. > > >> > > >> Back then I thought that we could have this in one place at fault-path [1], > > >> which should have made this prettier, but it is not the case. > > >> True is that the optimization is little, so I am fine with dropping this > > >> patch. > > > > > > I've dropped it. > > > > Thanks Andrew. > > > > Michal suggested that comments describing synchronization be added for each > > flag. Since I did 'one patch per flag', that would be an update to each patch. > > Or, I could simply add a patch to update the comment block based on what you > > already have. > > > > Let me know what is best/easiest for you. > > I guess just one patch is best for reviewers. Then I'll split up into > a sprinkle of -fix patches if I'm feeling energetic ;) A single patch on top should be just fine. It is not like this would be a bisectability breaker. -- Michal Hocko SUSE Labs