From mboxrd@z Thu Jan 1 00:00:00 1970 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=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 7C140C33CA1 for ; Mon, 20 Jan 2020 12:45:22 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5781C21835 for ; Mon, 20 Jan 2020 12:45:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5781C21835 Authentication-Results: mail.kernel.org; dmarc=none (p=none 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 D9CF16B064C; Mon, 20 Jan 2020 07:45:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D4D486B064D; Mon, 20 Jan 2020 07:45:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C636B6B064E; Mon, 20 Jan 2020 07:45:21 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0208.hostedemail.com [216.40.44.208]) by kanga.kvack.org (Postfix) with ESMTP id B17F26B064C for ; Mon, 20 Jan 2020 07:45:21 -0500 (EST) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with SMTP id 51F3C40C0 for ; Mon, 20 Jan 2020 12:45:21 +0000 (UTC) X-FDA: 76397983242.21.voice61_2eb6c445aa912 X-HE-Tag: voice61_2eb6c445aa912 X-Filterd-Recvd-Size: 2141 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf48.hostedemail.com (Postfix) with ESMTP for ; Mon, 20 Jan 2020 12:45:20 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 55520AF79; Mon, 20 Jan 2020 12:45:18 +0000 (UTC) Date: Mon, 20 Jan 2020 13:45:11 +0100 From: Michal Hocko To: Li Xinhai Cc: Mike Kravetz , "linux-mm@kvack.org" , akpm , "yang.shi" , n-horiguchi Subject: Re: [PATCH 2/2] mm/mempolicy: Skip walking HUGETLB vma if MPOL_MF_STRICT is specified alone Message-ID: <20200120124511.GC18451@dhcp22.suse.cz> References: <2020011422092314671410@gmail.com> <20200116075933.GN19428@dhcp22.suse.cz> <20200117103819968585195@gmail.com> <20200117075759.GH19428@dhcp22.suse.cz> <20200117200521532456232@gmail.com> <20200117152022.GI19428@dhcp22.suse.cz> <20200117234600029919288@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20200117234600029919288@gmail.com> User-Agent: Mutt/1.12.2 (2019-09-21) Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri 17-01-20 23:46:03, Li Xinhai wrote: [...] > >> by call mbind then check the > >> numa_maps, instead of just call mbind. So, I'd like option #3 is the= re. That is > >> a simple change, and I am glad to add this function if no objection. > > > >Any reason you cannot use move_pages syscall?=20 >=20 > I use it, that is the 'take action later' mentioned above, I'd like to > know=A0if there are misplace pages before call it if mbind can help > to give answer. I am sorry but I do not follow? Why do you need to do two steps? Why don't you simply call move_pages right away? --=20 Michal Hocko SUSE Labs