Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1463161pxb; Mon, 22 Feb 2021 02:34:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzemkyssRjGf4emzcmOLIRUpZviD6yhbVbs4MO/EVcbTzKnjKQfyvHtGUaIXLfEl7AyIw0c X-Received: by 2002:a17:906:2a8b:: with SMTP id l11mr20436601eje.1.1613990085823; Mon, 22 Feb 2021 02:34:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613990085; cv=none; d=google.com; s=arc-20160816; b=uBStsGFdUzvk1HvFhU2aiesqCu/iufsUYjV0B724aw1yodASHtlPFq/CjJl9K+NKjy FtLwfAib2WGWAMlxBX3UTzFRDLT77K+pOFAug/SQ+z56gyXN4B4rmhqheMKMeEjvvzWE vnpFvFhYYpjkKXM4MSU6Is/nti7EiK1cfyeE66mHAGtDrVpeuNKq3pWeKEiPVNJ7CDrS ZIIy1BuJ0QF2HweQ8XzHaVEwfuFPDTPVokdX1ArpwQK85qQviZ4cshY0PQv1N6cApEqs hPx/VmMqVDB0tr1LNg+Q3k1KIUyKIMTM0Tsr4XTDVR1jWAKHIv3CbA2I6I2t1u0ZCrwv zCZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8UWh8jduGRGu0Lvsdl9eBlyqHKjBe0P0nAH4NaZ9DMc=; b=zHITaJcV6Ii7tF+Pdc1jutpfhokYlv9TWMio+d4iHtCnSuZlVLCZKF73Je2J5nUX/M GVhlrJeR9Tf9svy3+4Lu1RLL3i/V0QKOrgBJtdwiezlERXmZNWS2s0xOZPv9kzptsms3 FyaOB+pZQUgQmnw6WD2/Da9r/4dHwguYS0oZeqexCAnO4Y1m2wz+svWG9swEvDUn545i mlLkAbR6+7ioemKe3pmo7iGR8ykz7WuBH9hmDvcY0TaObOBLHOTZncQoYadHcjS3yOll 2XFRkBuOTBYp27q8Whiv6Ok7yHCXlZ6NEUETlJ9sry7lf2WSpKFwbcPhBKIAvcf3+7JK SiqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=CJhQTg5e; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e11si12029993edz.97.2021.02.22.02.34.22; Mon, 22 Feb 2021 02:34:45 -0800 (PST) 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; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=CJhQTg5e; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230211AbhBVKcb (ORCPT + 99 others); Mon, 22 Feb 2021 05:32:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230212AbhBVKc3 (ORCPT ); Mon, 22 Feb 2021 05:32:29 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BBDAC061786 for ; Mon, 22 Feb 2021 02:31:49 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id k22so7462045pll.6 for ; Mon, 22 Feb 2021 02:31:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8UWh8jduGRGu0Lvsdl9eBlyqHKjBe0P0nAH4NaZ9DMc=; b=CJhQTg5ewgzZcnE2MhOHrzTbe0C5iEgOrytZGTuvGqjQI+Uw34/pbKAhYfv55ZbEQ+ 3k1GnYlHjK3NlkzleMwne0BnkjHisb1fCE5MYMfn2irYh+FIKK5ZeBhC1r/gr4ou+UsQ 9C2upnSbHxCxznvPzFE1kIpgGUj7irS2BkklgdS3tSc5tHC4pXnPdWSCPGnbaaJGIjZk z/n8oOfCDpuoEI15EjK00iptRmFy5EsufKXUlVyopdACbYxxWNCbmWSqyS0QQZL39Rj/ K04D7A6saCRLnu+QLw3fVe/ammJfGSl6OwbFU82JpozB+uMI0V6xEqmTjXu8gGmgwe8c P3wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8UWh8jduGRGu0Lvsdl9eBlyqHKjBe0P0nAH4NaZ9DMc=; b=kXuHirvNOxdykcbpU3eveiOBmQCcw9GvWZYzR7IuyCl+aqYoB937HrwJdyOA8rsKZz OQleVLfDIIEk6fdMMKtjzVptESsaELPOjKI38MLSKfg9dTisVfj94kMBdRAxTkV6hpzK DVNMoYCc1T1+bbVtlhPTu+XufGCPWqQb6zhzvZ+ELb4hjI/EQqyorJPWidtNIEAghmWy VOO4YqN/qVrUSHQuA4YyLn6p0klwSHXR9B6kN4yhLp2DLMRWn3CMCfuRor6ikkkqv+Ma x7JNkIpLIpqcOsPVNmCBj0Gl5+KQWrDsfdqFwLc39qntCboTkU6RdXM+iuGXYcZU+AGk GuRg== X-Gm-Message-State: AOAM531tXoGPpdtAJp6wb89mUVxpTS0VflyMOx8SW/pFL6dFX19TKXZR p3Qljh/0mFl+ZDd/qsEd8y3cAiWdkfIng/sjPqcj/g== X-Received: by 2002:a17:90a:f18d:: with SMTP id bv13mr1625214pjb.13.1613989908932; Mon, 22 Feb 2021 02:31:48 -0800 (PST) MIME-Version: 1.0 References: <20210219104954.67390-1-songmuchun@bytedance.com> <20210219104954.67390-5-songmuchun@bytedance.com> In-Reply-To: From: Muchun Song Date: Mon, 22 Feb 2021 18:31:12 +0800 Message-ID: Subject: Re: [External] Re: [PATCH v16 4/9] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page To: Michal Hocko Cc: Jonathan Corbet , Mike Kravetz , Thomas Gleixner , mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, dave.hansen@linux.intel.com, luto@kernel.org, Peter Zijlstra , viro@zeniv.linux.org.uk, Andrew Morton , paulmck@kernel.org, mchehab+huawei@kernel.org, pawan.kumar.gupta@linux.intel.com, Randy Dunlap , oneukum@suse.com, anshuman.khandual@arm.com, jroedel@suse.de, Mina Almasry , David Rientjes , Matthew Wilcox , Oscar Salvador , "Song Bao Hua (Barry Song)" , David Hildenbrand , =?UTF-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPoyDnm7TkuZ8p?= , Joao Martins , Xiongchun duan , linux-doc@vger.kernel.org, LKML , Linux Memory Management List , linux-fsdevel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 22, 2021 at 5:25 PM Michal Hocko wrote: > > On Sat 20-02-21 12:20:36, Muchun Song wrote: > > On Fri, Feb 19, 2021 at 10:12 PM Michal Hocko wrote: > [...] > > > What about hugetlb page poisoning on HW failure (resp. soft offlining)? > > > > If the HW poisoned hugetlb page failed to be dissolved, the page > > will go back to the free list with PG_HWPoison set. But the page > > will not be used, because we will check whether the page is HW > > poisoned when it is dequeued from the free list. If so, we will skip > > this page. > > Can this lead to an under provisioned pool then? Or is there a new > hugetlb allocated to replace the poisoned one? Actually, no page will be allocated. Your concern is right. But without this patch, the result does not change. e.g. The HW poisoned page can fail to be dissolved when h->free_huge_pages is equal to h->resv_huge_pages. But no one seems to have reported this issue so far. Maybe this behavior needs improvement in the feature. > > -- > Michal Hocko > SUSE Labs