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=-7.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,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 A62C8C56201 for ; Tue, 24 Nov 2020 08:44:47 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 13DC62073C for ; Tue, 24 Nov 2020 08:44:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="VSvlgc01" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 13DC62073C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 21B336B006E; Tue, 24 Nov 2020 03:44:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1A52C6B0070; Tue, 24 Nov 2020 03:44:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 044F06B0071; Tue, 24 Nov 2020 03:44:43 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0236.hostedemail.com [216.40.44.236]) by kanga.kvack.org (Postfix) with ESMTP id DF7096B006E for ; Tue, 24 Nov 2020 03:44:43 -0500 (EST) Received: from smtpin02.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id A4E438249980 for ; Tue, 24 Nov 2020 08:44:43 +0000 (UTC) X-FDA: 77518676046.02.show03_58007c22736c Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin02.hostedemail.com (Postfix) with ESMTP id 8A09010097AA0 for ; Tue, 24 Nov 2020 08:44:43 +0000 (UTC) X-HE-Tag: show03_58007c22736c X-Filterd-Recvd-Size: 3492 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by imf26.hostedemail.com (Postfix) with ESMTP for ; Tue, 24 Nov 2020 08:44:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606207482; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rFvnWingY7PrQj77qBtBNXevIVda9mBy5RjtelX8LV0=; b=VSvlgc01WOBUJVHsnr3P8CeeXkjTZJeA10LrHZL3/svLIvBMkouUCMmLToFIOhfzBFeaAr mPFXcH1S2RWZwu6/G+KVyk6BHgOyqfPIhFkzK5BhR0/yS1ELwv2RYBbFc0qNHrN/15Ocht k8gje7FyO9pr2ejjRObwamZqyBEjGvs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-147-yaL4ZV1cMG2YOctfOi8C2A-1; Tue, 24 Nov 2020 03:44:40 -0500 X-MC-Unique: yaL4ZV1cMG2YOctfOi8C2A-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8A6C51007293; Tue, 24 Nov 2020 08:44:37 +0000 (UTC) Received: from [10.36.113.167] (ovpn-113-167.ams2.redhat.com [10.36.113.167]) by smtp.corp.redhat.com (Postfix) with ESMTP id A77615D71D; Tue, 24 Nov 2020 08:44:34 +0000 (UTC) Subject: Re: Pinning ZONE_MOVABLE pages To: Michal Hocko , Pavel Tatashin Cc: Vlastimil Babka , linux-mm , Andrew Morton , LKML , Oscar Salvador , Dan Williams , Sasha Levin , Tyler Hicks , Joonsoo Kim , sthemmin@microsoft.com, John Hubbard References: <20201124084350.GU27488@dhcp22.suse.cz> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: <43922bf4-c818-e675-2369-10097c460ac4@redhat.com> Date: Tue, 24 Nov 2020 09:44:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201124084350.GU27488@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 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 24.11.20 09:43, Michal Hocko wrote: > On Mon 23-11-20 11:31:59, Pavel Tatashin wrote: > [...] >> Also, we still need to take care of the fault scenario. > > Forgot to reply to this part. I believe you mean this to be fault at gup > time, right? Then the easiest way forward would be to either add yet > another scoped flag or (maybe) better to generalize memalloc_nocma_* to > imply that the allocated memory is going to be unmovable so drop > __GFP_MOVABLE and also forbid CMA. I have to admit that I do not > remember why long term pin on CMA pages is ok to go to movable but I > strongly suspect this is just shifting problem around. Agreed. -- Thanks, David / dhildenb