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.5 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 85782C83867 for ; Tue, 27 Oct 2020 15:44:44 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CA0EB23A32 for ; Tue, 27 Oct 2020 15:44:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="jP+LAuCn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CA0EB23A32 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 0D2C46B007E; Tue, 27 Oct 2020 11:44:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 085126B0080; Tue, 27 Oct 2020 11:44:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EB4AE6B0081; Tue, 27 Oct 2020 11:44:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0219.hostedemail.com [216.40.44.219]) by kanga.kvack.org (Postfix) with ESMTP id BF4136B007E for ; Tue, 27 Oct 2020 11:44:42 -0400 (EDT) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 6D0401EE6 for ; Tue, 27 Oct 2020 15:44:42 +0000 (UTC) X-FDA: 77418128004.03.wind23_060f1332727d Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin03.hostedemail.com (Postfix) with ESMTP id 4887128A4EA for ; Tue, 27 Oct 2020 15:44:42 +0000 (UTC) X-HE-Tag: wind23_060f1332727d X-Filterd-Recvd-Size: 3478 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by imf15.hostedemail.com (Postfix) with ESMTP for ; Tue, 27 Oct 2020 15:44:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603813481; 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=TyLKTZmrav8/jKwoRRJvE881iIOZpv4FNe8qMkz/2ls=; b=jP+LAuCnf3o0dJVS5kki+s9Xtk2E9QbQAQZDsaNgg8viu4MqzR/V43AwsBdlTPQOFoVOpR DcdvvsLho+bpOCwPn+0BdHYiJ3JMeY4onfmSmaNh2IeOrJVQs1lxVdKdEjUfUZikT1sbFY JaJ3Wx4GXTv4ktpyeNnACpEQMZbocLQ= 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-100-UhViin-wN-SW6I-5ICq8Wg-1; Tue, 27 Oct 2020 11:44:37 -0400 X-MC-Unique: UhViin-wN-SW6I-5ICq8Wg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 43BA257206; Tue, 27 Oct 2020 15:44:36 +0000 (UTC) Received: from [10.36.113.185] (ovpn-113-185.ams2.redhat.com [10.36.113.185]) by smtp.corp.redhat.com (Postfix) with ESMTP id C0BC65D9DD; Tue, 27 Oct 2020 15:44:34 +0000 (UTC) Subject: Re: [RFC PATCH 0/3] Allocate memmap from hotadded memory (per device) To: Oscar Salvador Cc: mhocko@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, vbabka@suse.cz, pasha.tatashin@soleen.com References: <20201022125835.26396-1-osalvador@suse.de> <3c18e078-25df-3fd4-9988-1b7677d8e05f@redhat.com> <20201027154031.GA11489@linux> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: Date: Tue, 27 Oct 2020 16:44:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20201027154031.GA11489@linux> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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 27.10.20 16:40, Oscar Salvador wrote: > On Thu, Oct 22, 2020 at 03:01:44PM +0200, David Hildenbrand wrote: >>> This does not go without saying that the patchset is not 100% complete. >>> It is missing: >>> >>> - a way to disable memmap_on_memory (either sysfs or boot_time cmd) >>> - atm, arch_add_memory for s390 screams if an altmap is passed. >>> I am still thinking of a way to nicely drop handle that. >>> Maybe a function in s390 that sets memmap_on_memory false and >>> stuff that check in support_memmap_on_memory function. >> >> Or simply implement altmap support ... shouldn't be too hard :) > > Yeah, I guess so, but first I would like to have everything else settled. > So, gentle ping :-) > I'm planning on looking into patch #2/3 later this or next week (this week is open source summit / KVM Forum). One thing to look into right now is how to make this fly this with vmemmap optimizations for hugetlb pages. https://lkml.kernel.org/r/20201026145114.59424-1-songmuchun@bytedance.com -- Thanks, David / dhildenb