Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp616736pxa; Tue, 11 Aug 2020 10:42:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/1f/OtzA3+qPpFeFrJMIrLNtWxZ4hl8XfE1N0tDFCxG1CLhHrSTkCC0UaBp67rAVLJ7S8 X-Received: by 2002:a17:906:b08:: with SMTP id u8mr28381053ejg.401.1597167753687; Tue, 11 Aug 2020 10:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597167753; cv=none; d=google.com; s=arc-20160816; b=srpAgkU7GfWFH+W/e7UlGDRK9Hv2g/uCcRdoZT8QARHK3dFGhESdXzSErCRlh9/r/A 4+mzA4hvUygEyqtUBi54KZtgrytrGhVkBPet9amVh84R9tmVVrlrA69SNma4lwrfz9ES pUbxfpy9T3fWb3L4GcfBB+XW52VAhbO5RlbmxkG36ZzhgOY12k4aJS5nzoOc4AmMK/wM VpNqGKcr3/aLs4n0UdauN7Tq9l0MCmcHiWueB70ulqFhB+M7COyuRg5EhULbqqiPwr2B +6exTPYxxAbKTcuGpgXb3xzxk/X4cMYRd2PmA/3jDaGqdYDl+PrrQIXMZYoVru5KEyNJ B7hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OVg/uR4zVLWcjVjrKs8tsHBHX3XbUVD7Z/QCkQo4KAY=; b=F9Pl1QCPNUaPToKiBNlGHnqefdhSt9dbrIwkEbpc58vL2MAMXUEjYLVj61zWuPlmYE T0JUgquPoPh1P1SgLmvGMNt2YL7Uefd9ydb26bSRcsSBNrtdX10chlq96IG8TvMJc1YU Or9Jqyr0TKknhsAcRebr8Q7pKqfo6Bv0hZ66YL8Z/aJrCqO77LEP6IxlkvBmFTbLD5Jj cPORIQ0GFzTV/oWtg1r63ln9AotReJybHXeMKlvpmltuXw/PF+zwB2JM6SKtPxsVq6zv ByFpw+Akgl69pY0PH2chxj6e8zmksLHfAqTUKxHd4azeIuNpExX/ZAZMbJxFMFhC2WUn QUFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=VsIA4Kay; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f25si13317074ejc.587.2020.08.11.10.42.09; Tue, 11 Aug 2020 10:42:33 -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; dkim=pass header.i=@lca.pw header.s=google header.b=VsIA4Kay; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729148AbgHKRje (ORCPT + 99 others); Tue, 11 Aug 2020 13:39:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728862AbgHKRjc (ORCPT ); Tue, 11 Aug 2020 13:39:32 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16291C06174A for ; Tue, 11 Aug 2020 10:39:32 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id d27so10040444qtg.4 for ; Tue, 11 Aug 2020 10:39:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=OVg/uR4zVLWcjVjrKs8tsHBHX3XbUVD7Z/QCkQo4KAY=; b=VsIA4KayqpDCO4zO8hV186Ei0lW9axCsLY4540Pt2e8yWuwsn+PvE0XTzumKI04jrB mxOzFXs0u9pnALo/Q0Y/He2KiRBkocmq6KWVWvAVadP8rOPYXYADrncmORfIe5wfWjgf fO8DcKvbL/UFWPkFdKmZ8fJhDV/iLFtG2QYvscbGOxcpBMNmNZAzf9HXjlJduv3lrwuo RMdGr5Jidk7yC/xz8+RjlTrF+MhqgHxB7q5UuAoO1d/B867DPuNmAYGqvMJpVUgjHsUj vT1cor6vNEMRe64t1hvWI/ZkvukoBFDg5AX1V+166j6gMivMCnanqJo3amMzi0NQFrip /yLA== 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:content-transfer-encoding :in-reply-to:user-agent; bh=OVg/uR4zVLWcjVjrKs8tsHBHX3XbUVD7Z/QCkQo4KAY=; b=f1w7/HK5lqSit9Iy4xHVqj1Hd3pDOwWj/LwWvMT0+i5KBWE2JoeUlvIwkmThYAfVsq WQD1xl3QD6DTkLs091HQxP9eRFclG6MhupFCh6xbHIEMrnCelT2beY2LHFpV+P541BnE y2J0U9Rfcbz+WV6CSfQLo9eMeUPswwcOVEZDqO3XCZtgVvZatg78kEWV0KiTsJ912xWd TwY4aiZ7m77IlcDYwXABKtHM+MspqrclocQ670DBLEbM+bSJGVWS2dSglOtMR/upIyjx w6uxQT82Lyj/NTCMeg3yph9E7E3YFHro0x5byHpxIOM+zr7KauUEb9zVoTLp9PoNsYmq OtbA== X-Gm-Message-State: AOAM530daRMokaNH4obkATMqtZ5a/LR73yiKX2froUHU/VgZq1/HIkTJ hwOe3fHt3RSbFzdRd4Fw6SjDfA== X-Received: by 2002:ac8:5505:: with SMTP id j5mr2271212qtq.326.1597167571270; Tue, 11 Aug 2020 10:39:31 -0700 (PDT) Received: from lca.pw (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id j15sm17333817qkl.63.2020.08.11.10.39.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Aug 2020 10:39:30 -0700 (PDT) Date: Tue, 11 Aug 2020 13:39:24 -0400 From: Qian Cai To: HORIGUCHI =?utf-8?B?TkFPWUEo5aCA5Y+j44CA55u05LmfKQ==?= Cc: "nao.horiguchi@gmail.com" , "linux-mm@kvack.org" , "mhocko@kernel.org" , "akpm@linux-foundation.org" , "mike.kravetz@oracle.com" , "osalvador@suse.de" , "tony.luck@intel.com" , "david@redhat.com" , "aneesh.kumar@linux.vnet.ibm.com" , "zeil@yandex-team.ru" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "catalin.marinas@arm.com" , "will@kernel.org" Subject: Re: [PATCH v6 00/12] HWPOISON: soft offline rework Message-ID: <20200811173923.GA39857@lca.pw> References: <20200806184923.7007-1-nao.horiguchi@gmail.com> <20200810152254.GC5307@lca.pw> <20200811031139.GA7145@hori.linux.bs1.fc.nec.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200811031139.GA7145@hori.linux.bs1.fc.nec.co.jp> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 11, 2020 at 03:11:40AM +0000, HORIGUCHI NAOYA(堀口 直也) wrote: > I'm still not sure why the test succeeded by reverting these because > current mainline kernel provides similar mechanism to prevent reuse of > soft offlined page. So this success seems to me something suspicious. > > To investigate more, I want to have additional info about the page states > of the relevant pages after soft offlining. Could you collect it by the > following steps? > > - modify random.c not to run hotplug_memory() in migrate_huge_hotplug_memory(), > - compile it and run "./random 1" once, > - to collect page state with hwpoisoned pages, run "./page-types -Nlr -b hwpoison", > where page-types is available under tools/vm in kernel source tree. > - choose a few pfns of soft offlined pages from kernel message > "Soft offlining pfn ...", and run "./page-types -Nlr -a ". # ./page-types -Nlr -b hwpoison offset len flags 99a000 1 __________B________X_______________________ 99c000 1 __________B________X_______________________ 99e000 1 __________B________X_______________________ 9a0000 1 __________B________X_______________________ ba6000 1 __________B________X_______________________ baa000 1 __________B________X_______________________ Every single one of pfns was like this, # ./page-types -Nlr -a 0x99a000 offset len flags 99a000 1 __________B________X_______________________ # ./page-types -Nlr -a 0x99e000 offset len flags 99e000 1 __________B________X_______________________ # ./page-types -Nlr -a 0x99c000 offset len flags 99c000 1 __________B________X_______________________