Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp396280ybt; Wed, 24 Jun 2020 01:53:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEztj6f1K7PqEeRkZm5GC1IYmUMSwf5l1H0ctUdIeH3212ridyiv41xbSvRCc2CUh37SBt X-Received: by 2002:a17:906:7283:: with SMTP id b3mr24941361ejl.163.1592988825860; Wed, 24 Jun 2020 01:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592988825; cv=none; d=google.com; s=arc-20160816; b=HCGw7PxmiQPW9/jTDIwxMZh6PQ20v+atC6htmrFua/0L0GROHPr7F/etuxdLisNL/I vAZoOahtk4jUe+x6CBe8udd1M/o9RcnEfKPklCoAfOJ4amW3+9IvUwpT6/0nbl8m9HNq eqeX/WW6u+3CTCUFhKZlsvGF1tOmt+N/60ER9XyvPQowZl/kiyoRSNI9SCXy2N0quhls KxbmkxKfmfxWekQgfBBRzU+r2jViOxT9KeHobC+t40krFNZ5l/zOFPgcbqxSR//DoG2N 7jHV7fMp1HF1GDc0rEEyIQiu52oQGYrIRxE7WIYZekUZ8YiNPl/IfyBrm/0md264LDsD oF6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=rd9IzVM8tD3UftxMYmgDMxiwBT/HI+3YrHy3wROEERY=; b=jn2Ki21H8oslDBg5L5hJIpA422cc4PZBE0FLlu93WEc8MEUSxPJmqxF8l6PBmyoyOK VztWmSyZHdQO/zFOr0AB0Cg3tjvBsHQbUZXxVbgYDGRqMKwoT4HxSmfFCMWWRndJtKLr 9r5yzGxC3sP9HMj8EWqzIeotAtPan7gg3GIiiW+2+rnlkceY/Z5uzymLaANcFoP2VLLA 07kK1IBYjjcS2pfuXLiT56/9jYsZ2UeFJPUaTP0yJgmu15ml/lDhN/odWUFJB173Pn5h LSg67vvJhYJK7ffIhEdu/QwcGc0bBXq5oS1Xzxo8GqgefGC1xdQFMHW/Do6EhRUMi+B7 CSGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n16si12623812eja.95.2020.06.24.01.53.22; Wed, 24 Jun 2020 01:53:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389536AbgFXIuV (ORCPT + 99 others); Wed, 24 Jun 2020 04:50:21 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37846 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389505AbgFXIuS (ORCPT ); Wed, 24 Jun 2020 04:50:18 -0400 Received: by mail-wm1-f68.google.com with SMTP id o2so1718268wmh.2 for ; Wed, 24 Jun 2020 01:50:17 -0700 (PDT) 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=rd9IzVM8tD3UftxMYmgDMxiwBT/HI+3YrHy3wROEERY=; b=l0GKK7EBk6SGTJlFftfARsUBxN9FWqbxF0kqGS+BCryaRywk8yKsGKxNV6twUBLt3g UphWpbh3CgTU9O1Q+64l5oqaqQxedUIeogoRuV8+hSkruiYMnt+Mesqfv/U2Pwyc8PcW IE1cbVKAO9VCSUxy0Bq9yntQm0PY6HpT2rXaodqJRiH613+3iTcfa8AS7B3iHj3MV5zA fQ83g3FJKCYY3uvMQtX7qKn9CS7IYfpkd1NWL9vdvJwAZWRto5XKDfJojJKVPmjzz9s3 vHlUyJwzj0AsP5sa2DfN89aHdkfNyLKeWzliRSbXmn1zYjq5p5hVU3CvtU4/R81rGK/G azbg== X-Gm-Message-State: AOAM532IFwvyTaFd5e5nmKAVIZTbpdBx1AF4Wr4aF38PiihzwEQnBKzY z1Zh6CVHzddkdkp5VYvGyMY= X-Received: by 2002:a1c:e18a:: with SMTP id y132mr22706313wmg.27.1592988616864; Wed, 24 Jun 2020 01:50:16 -0700 (PDT) Received: from localhost (ip-37-188-168-3.eurotel.cz. [37.188.168.3]) by smtp.gmail.com with ESMTPSA id 185sm7124135wmz.22.2020.06.24.01.50.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 01:50:16 -0700 (PDT) Date: Wed, 24 Jun 2020 10:50:15 +0200 From: Michal Hocko To: David Hildenbrand Cc: Wei Yang , akpm@linux-foundation.org, osalvador@suse.de, dan.j.williams@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/spase: never partially remove memmap for early section Message-ID: <20200624085015.GG1320@dhcp22.suse.cz> References: <20200623094258.6705-1-richard.weiyang@linux.alibaba.com> <20200623151828.GA31426@dhcp22.suse.cz> <57d8a558-dcb3-b318-8e38-6c016b050414@redhat.com> <20200624081324.GA12461@L-31X9LVDL-1304.local> <2b2b722a-58de-4c6e-a04e-dc3516b1b8ab@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2b2b722a-58de-4c6e-a04e-dc3516b1b8ab@redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 24-06-20 10:41:18, David Hildenbrand wrote: [...] > But nothing actually breaks .... because *drummroll* we use huge pages in the vmemmap, > so the partial depopulate will not actually depopulate anything here. Huge page is 2M, > the memmap of 128MB sections is exactly 2MB == one hugepages. Trying to depopulate a > fraction (e.g., 16MB) of that won't do anything. > > > Now, forcing a CPU without hugepages - PSE (QEMU: "-cpu host,pse=off)", I can trigger > via ndctl create-namespace --force --reconfig=namespace0.0 --mode=devdax --size=16M OK, now I am following! Thanks a lot. That is something to be mentioned in the changelog. Small pages might be used if the hotplug happens on a system with fragmented memory so this is something we do care about. Thanks a lot David! -- Michal Hocko SUSE Labs