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=-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 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 E7611C2D0E4 for ; Mon, 23 Nov 2020 18:34:23 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5C7782078E for ; Mon, 23 Nov 2020 18:34:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="gih3TBU2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5C7782078E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 935A66B0081; Mon, 23 Nov 2020 13:34:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8E7576B0083; Mon, 23 Nov 2020 13:34:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7617A6B0085; Mon, 23 Nov 2020 13:34:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0122.hostedemail.com [216.40.44.122]) by kanga.kvack.org (Postfix) with ESMTP id 498B76B0081 for ; Mon, 23 Nov 2020 13:34:22 -0500 (EST) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id EDD911EE6 for ; Mon, 23 Nov 2020 18:34:21 +0000 (UTC) X-FDA: 77516533122.22.snake37_6007aa027367 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin22.hostedemail.com (Postfix) with ESMTP id CD98B18038E68 for ; Mon, 23 Nov 2020 18:34:21 +0000 (UTC) X-HE-Tag: snake37_6007aa027367 X-Filterd-Recvd-Size: 4360 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) by imf46.hostedemail.com (Postfix) with ESMTP for ; Mon, 23 Nov 2020 18:34:21 +0000 (UTC) Received: by mail-qk1-f170.google.com with SMTP id n132so17959850qke.1 for ; Mon, 23 Nov 2020 10:34:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=1u1sy4wI1CG6DZFHVu5ifgXp/o8YW2xyOy2wIPWsfUg=; b=gih3TBU2ie34aPD8GCBnr1hlEWJpANCJd1L/9e5q6wM6g+ySzsAsQAkZeX5ov0bm8w KMqGD2zqx81lskimJnNbWmiTfCUUH6V6jfRnz+RYqcsGIDgL+0BgOk+8BQ3zc2dgAbkX rm2QbI1sEI16WUkwm4BhRtfJkKA3OWLu9si/MKlfvUaXUekcsf3+iI++DV3ZhOfCd59z C8P60qh9BjLwDE4nOsf4L3CDrVjlYUdZ9vFSnY+7pMSSeEqky1SG/4txkpavUjNXUQZS iubB+g078hid8l+LWwEwpfH7l5JQjzSnu65jBT+60rf46aLEzD5Kf5G8050vlyTy+aBi EccA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=1u1sy4wI1CG6DZFHVu5ifgXp/o8YW2xyOy2wIPWsfUg=; b=e1N6VZElAf9O5DWe/1idbhQJUgy23ZU3e4GYSsguqkq0VoTMnGPb+bt0l8CZtTIXyM x+zL5StNl95UFDAuA0wSOc7GSov/QdROPfBvG5Vy8LCTgduFWi044SA33a/sCCM0/PZ8 7cXQ8WCsG+AicwrNs4a/dBtYkbqwXwoid224dww3hflwEb2MHiZWLjoQ477AfLozSBi5 pySSuUBoW3qBGSKRT8zqUP/dmnYsi5iH5xjfbDydFkRM8k5EOtWcmhW0DYF3Z019f8uv wzdowykG2sdm4qBQw0e0fPY6JMWUnBeQK2xnId7GmdQrl58bQspQ2inVUJ9kloGoBfRx QI9A== X-Gm-Message-State: AOAM530CJ+D+xdb8grxBJKMyqiFG37WqPh2sU31F5qGZ2e2OSd+Juo6K 1gBipX7PC+owNgkduLI5jSLmnA== X-Google-Smtp-Source: ABdhPJxC7o5Vri3XQELAZq9SSztQKpp5Dk2Ag9BZU5OCfm9BfrhI8Xz3WzsV/EejngMWbFSZKb34oQ== X-Received: by 2002:a37:45c6:: with SMTP id s189mr813608qka.472.1606156460610; Mon, 23 Nov 2020 10:34:20 -0800 (PST) Received: from ziepe.ca ([206.223.160.26]) by smtp.gmail.com with ESMTPSA id x21sm4956921qtb.14.2020.11.23.10.34.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 10:34:19 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1khGfK-0001k7-Mn; Mon, 23 Nov 2020 14:34:18 -0400 Date: Mon, 23 Nov 2020 14:34:18 -0400 From: Jason Gunthorpe To: Pavel Tatashin Cc: Michal Hocko , linux-mm , Andrew Morton , Vlastimil Babka , LKML , David Hildenbrand , Oscar Salvador , Dan Williams , Sasha Levin , Tyler Hicks , Joonsoo Kim , Stephen Hemminger Subject: Re: Pinning ZONE_MOVABLE pages Message-ID: <20201123183418.GB5487@ziepe.ca> References: <20201123090129.GD27488@dhcp22.suse.cz> <20201123171502.GX244516@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Mon, Nov 23, 2020 at 12:54:16PM -0500, Pavel Tatashin wrote: > > I agree with the other emails, ZONE_MOVABLE needs to be reconciled > > with FOLL_LONGTERM - most likely by preventing ZONE_MOVABLE pages from > > being returned. This will need migration like CMA does and the point > > about faulting is only an optimization to prevent fault then immediate > > migration. > > That is right, as the first step we could just do fault and immediate > migration, which is silly, but still better than what we have now. I was looking at this CMA code lately and would love to see a cleaner/faster implementation. If you really understand how this works maybe it is an opportunity to make it all work better. Jason