Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4879363iob; Mon, 9 May 2022 03:56:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxD3pYxaVY4cwsvJK/sptrx1X8XDv1aPt8N276w73+kFM92LL/eEKy6bK5/RTb1X2lq3OpJ X-Received: by 2002:a63:fa41:0:b0:3c2:1941:5894 with SMTP id g1-20020a63fa41000000b003c219415894mr12699668pgk.296.1652093778592; Mon, 09 May 2022 03:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652093778; cv=none; d=google.com; s=arc-20160816; b=h7cjeNPGiuCIwUyCL4CxWZcFbsJevhQocoTw/kMLwIyjcfD5YJWa8gnFXMugdoTXCH O35512gvDh6VLHKh8ZaLNlNwMEbVjpwGImGYFbMO316HWd8UFtAtifWL0nPxqo8n5opw ewjiT9B/lTknZM5+IC0H9LbiDHzXKOpNGdhk6/MJqnCllcTEH7LAbVBKJ2OJXlIt+PsE e72T/1JcVBIVpXEC7DRUDk+m501iGoaYQtHHA8Atf103eh1doFo0EgN57H3uX9oeSKCb YR5gmUR6kqkiLSsf08Qofl+aiszflVBFMGSwf0eL7p8zFUK1gfH3K9JE0IfQ2eHYmCND Viow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=t3Nw8WzaK1PoevHun3ShSThFnKV+M2vU5e2JQiidvDw=; b=OdeG3s3YN+PVHAcfvJj0ri5ScmyZyxlpEasdryen9WXpJBPTkvjmWKJkBHX/Jcb3nl 6Vv7UFZmjjS9AbWvaElnrv4/ReoitliV2zrmpzyAMsbJeUSYMN/m1PUZkezVA1aZe9pa h+zGw0vjxRomP2op1UO+613RL2/zyJr8G1CKn0nFEqfDLaPcOUEbgdQiPvHQbUEDafA7 e4qjRk1hUhUBbdr6RMDMAYBf5J2oehDIS7CG0RUVZD8NbqgkLewltMtBQCQhJdzQFOlV frSQAqeDnTWVWIWZzMZQdosVGHkjHzUCZmLcdO9byMcvCU6jXX2F7j0MLhh9oUpH8I5v Ma4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=CXXG+hQM; dkim=neutral (no key) header.i=@suse.de; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 140-20020a621992000000b004fa3a8dff62si12330654pfz.25.2022.05.09.03.56.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:56:18 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=CXXG+hQM; dkim=neutral (no key) header.i=@suse.de; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A341723E365; Mon, 9 May 2022 03:12:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233310AbiEIKEN (ORCPT + 99 others); Mon, 9 May 2022 06:04:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238474AbiEIKCy (ORCPT ); Mon, 9 May 2022 06:02:54 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1376526AEC for ; Mon, 9 May 2022 02:58:59 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 901421F9BB; Mon, 9 May 2022 09:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1652090338; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=t3Nw8WzaK1PoevHun3ShSThFnKV+M2vU5e2JQiidvDw=; b=CXXG+hQMBOphUH1gcr22Ve/aXotZ1hFxM02RPzbepKQ7S00eaBYD5MWx1g6XREZLxWb/89 D230tqg7UVI/dAh7GNBLQFqaFjpSYpbQ8edBQ+6JtyqonQHIiyP7LXfljBD/fr1boB3AYJ cMj9c7F5Xb0p9GhS/Q7FlR/csFrsYfg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1652090338; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=t3Nw8WzaK1PoevHun3ShSThFnKV+M2vU5e2JQiidvDw=; b=LYmXchS2Vpa+xW5lYWRGgNfp5aHMwIbNr5po8M8YhkXu2NelWmtihaGQyoQ70zDc7hco9E FYtT2Xtp/b3wU5AA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id CF73E132C0; Mon, 9 May 2022 09:58:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 2hE5L+HleGJobwAAMHmgww (envelope-from ); Mon, 09 May 2022 09:58:57 +0000 Date: Mon, 9 May 2022 11:58:56 +0200 From: Oscar Salvador To: Miaohe Lin Cc: HORIGUCHI =?utf-8?B?TkFPWUEo5aCA5Y+jIOebtOS5nyk=?= , David Hildenbrand , Naoya Horiguchi , "linux-mm@kvack.org" , Andrew Morton , Mike Kravetz , Yang Shi , Muchun Song , "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH v1 0/4] mm, hwpoison: improve handling workload related to hugetlb and memory_hotplug Message-ID: References: <20220427042841.678351-1-naoya.horiguchi@linux.dev> <54399815-10fe-9d43-7ada-7ddb55e798cb@redhat.com> <20220427122049.GA3918978@hori.linux.bs1.fc.nec.co.jp> <20220509072902.GB123646@hori.linux.bs1.fc.nec.co.jp> <6a5d31a3-c27f-f6d9-78bb-d6bf69547887@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6a5d31a3-c27f-f6d9-78bb-d6bf69547887@huawei.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 09, 2022 at 05:04:54PM +0800, Miaohe Lin wrote: > >> So that leaves us with either > >> > >> 1) Fail offlining -> no need to care about reonlining > > Maybe fail offlining will be a better alternative as we can get rid of many races > between memory failure and memory offline? But no strong opinion. :) If taking care of those races is not an herculean effort, I'd go with allowing offlining + disallow re-onlining. Mainly because memory RAS stuff. Now, to the re-onlining thing, we'll have to come up with a way to check whether a section contains hwpoisoned pages, so we do not have to go and check every single page, as that will be really suboptimal. -- Oscar Salvador SUSE Labs