Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp653798pxb; Wed, 18 Aug 2021 10:47:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyrubD4Rj6I61o4K9fIxpSrm6aHkRGkTtkp+K1bmpQ0YOKkwAkpqUnTajcKqOu2v7IXuyZ X-Received: by 2002:a05:6402:8da:: with SMTP id d26mr11319990edz.109.1629308845666; Wed, 18 Aug 2021 10:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629308845; cv=none; d=google.com; s=arc-20160816; b=b/PF9T79WiFBExOlpCO5AgG+zbX62CNvTB0nRhpRqF0rJNmmoBkh5TQL6c3AboCthb +DraLUHLOVVoX4jWBiy2Rv8tWNoVXVGmf2hZ3jN1BTcIpMOJs75wgVExg62ZMfscdv1/ u2G/irQVRK8Vnd/rUYUb3cThHnds+h+1wspoZCi9wQ6tdP8LaeyfmiVmhweENw/e3/fG lEpr7wiTMhZMUVwk2duXZb9a+jO25UENQk0rvSMpZRZQMEF4O4wFj1+Wzsuc8Xrlixoh hvCZ67Prd41aXqDxGZSXUphSo9nxsoK6+geOMPPqOjq4RWzhCu64ZLjEMuzJC9JeUgju Rz4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6Uovgw6HtB8nCaHLgQeNwVXL7QPb2LFvG/OTd/4a5ak=; b=N/3CtjDr20HiN+DtELMpvPZXttA62NrdxrtP3nENRT5+OnaJui3VGstdeOYoil0Eoy 9/Q1Bo9J/gocAwTmbkSsEvyQEzuh7fflnzxR/ykHsVvcrHca7itoy+Q2WnF4KgfkOZi3 FkykCmKgOS1rJ6FLjtjlNQLOKuhU7KEd8dwzOSM1bWEAWXiG9JGQ4ViQzXD8ropd/r26 YvcElhzPYVV7dU4CibDGUKzHsd6I2yIogPUlHHivPl6TVf4kBjdkFuZwithYZv/4GAmp CWR89KUF8X7Wph9Ju0T5pKMNcVN/SWnqjP+bDSfgicrQ1QSmgnHmLjpA1AVQahTgcUnc PT8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kTrFTfdZ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rh9si667724ejb.511.2021.08.18.10.46.59; Wed, 18 Aug 2021 10:47:25 -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=@gmail.com header.s=20161025 header.b=kTrFTfdZ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229705AbhHRRp5 (ORCPT + 99 others); Wed, 18 Aug 2021 13:45:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbhHRRp5 (ORCPT ); Wed, 18 Aug 2021 13:45:57 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38EE2C061764 for ; Wed, 18 Aug 2021 10:45:22 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id lo4so6682210ejb.7 for ; Wed, 18 Aug 2021 10:45:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6Uovgw6HtB8nCaHLgQeNwVXL7QPb2LFvG/OTd/4a5ak=; b=kTrFTfdZwBdHy76qEQOosd/JNgO9DHO3/3Fa6bHn+fmmaof5wf4BiiE3mRbELN9JIj 4fT93V+hTpd62/0WNVZVC2KfwrD0dn8pDlRKcalsElL9l/zMVygVutUk9REdxVBHnrPT bkoJxO8dxOc45W+t+4hWLhcb6dMDeuYNBAEg3bFhrVsTxV+1V3CE49MlLw6l6jRLmnDv 9bMa4KzJ9UbwU+nlyvRrUsWH4pNDA1ZfDZI7OELxYJd+BOIsvINbiH9KngvUK4Xk+IjT YrJvXsl4bczMww3m38J9zQULzv5YhXVwBkD2Y6HEp0HxEguTMVg2QSQwPXJ2X4VpCWCt GlEQ== 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:content-transfer-encoding; bh=6Uovgw6HtB8nCaHLgQeNwVXL7QPb2LFvG/OTd/4a5ak=; b=Mxl65QwReVsc5QgPG5cc3LgZYfO/pgE2nvqjWmxp4t74ASDGuidaXX1QhZGw6Mz35g OWYM9zE+qmjJI9wkNT4FCaZ/xuf0pIsbmYv+pkkeG1FEj2VZrNwBpe7A98Fw3jzd+Jq5 vA47zy+82BAD9cXg1pzm6CDvOOaniEWRB9/Xja9GORelIKxvfNjHRBUf40k8TW/b/puv 3UTYK07Yye6bKwDyDMKDKsB9XG8s+T3OMzcu3XV8dAhi7W+3AqapzGZx7eqZjgDAWyW8 PJsbthzW0yUY1pKGFJ3ZFGamh43hd1osP3Vjv8PlngJufIkhrln7f48EkSwoGcRDPqDX WIBA== X-Gm-Message-State: AOAM531lksJ5cD64AVtgVyZk1hErFMe9j37gxfVB17fitgKCeOnZROPV Er2wSvpO5j7WdSG9yobyOeFfJdd48ODYyXBYQv4= X-Received: by 2002:a17:906:491a:: with SMTP id b26mr11135731ejq.25.1629308720854; Wed, 18 Aug 2021 10:45:20 -0700 (PDT) MIME-Version: 1.0 References: <20210816180909.3603-1-shy828301@gmail.com> <20210818050239.GA496938@hori.linux.bs1.fc.nec.co.jp> In-Reply-To: <20210818050239.GA496938@hori.linux.bs1.fc.nec.co.jp> From: Yang Shi Date: Wed, 18 Aug 2021 10:45:08 -0700 Message-ID: Subject: Re: [PATCH 1/2] mm: hwpoison: don't drop slab caches for offlining non-LRU page To: =?UTF-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPoyDnm7TkuZ8p?= Cc: Matthew Wilcox , Oscar Salvador , "tdmackey@twitter.com" , Andrew Morton , Jonathan Corbet , Linux MM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 17, 2021 at 10:02 PM HORIGUCHI NAOYA(=E5=A0=80=E5=8F=A3=E3=80= =80=E7=9B=B4=E4=B9=9F) wrote: > > On Mon, Aug 16, 2021 at 01:24:25PM -0700, Yang Shi wrote: > > On Mon, Aug 16, 2021 at 12:38 PM Matthew Wilcox w= rote: > > > > > > On Mon, Aug 16, 2021 at 11:09:08AM -0700, Yang Shi wrote: > > > > But the most disappointing thing is all the effort doesn't make the= page > > > > offline, it just returns: > > > > > > > > soft_offline: 0x1469f2: unknown non LRU page type 5ffff0000000000 (= ) > > > > > > It's a shame it doesn't call dump_page(). There might be more > > > interesting information somewhere in struct page that would help us > > > figure out what kind of page it was in your environment. For example= , > > > it might be a page table page or a page allocated for vmalloc(), and > > > in both those cases, there are things we might be able to do (we'd > > > certainly be able to figure out that it isn't worth shrinking slab!) > > > > Yes, dump_page() could provide more information to us. I could add a > > new patch or just update this patch to call dump_page() if offline is > > failed if the hwpoison maintainer agrees to this as well. > > I agree with showing more information in failure case. Thanks for the inp= ut. By reading the code, it seems get_any_page() is called to shake the page for both soft offline and memory_failure(), so it seems like a good place to call dump_page() if -EIO is going to be returned, which hwpoison can't handle the page, otherwise we may need call dump_page() in a couple of different places. Although dump_page() will be called with pcp disabled and holding memory hotplug lock if it is called by get_any_page(), but I'm supposed it should be not a big deal. > > - Naoya Horiguchi