From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0735DCA9EA0 for ; Tue, 22 Oct 2019 09:41:00 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D275320684 for ; Tue, 22 Oct 2019 09:40:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D275320684 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 582006B0003; Tue, 22 Oct 2019 05:40:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 531396B0006; Tue, 22 Oct 2019 05:40:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 446E46B0007; Tue, 22 Oct 2019 05:40:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0222.hostedemail.com [216.40.44.222]) by kanga.kvack.org (Postfix) with ESMTP id 226EA6B0003 for ; Tue, 22 Oct 2019 05:40:59 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with SMTP id 8B4148414 for ; Tue, 22 Oct 2019 09:40:58 +0000 (UTC) X-FDA: 76070926596.01.game92_25957ca6f7f56 X-HE-Tag: game92_25957ca6f7f56 X-Filterd-Recvd-Size: 2074 Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by imf06.hostedemail.com (Postfix) with ESMTP for ; Tue, 22 Oct 2019 09:40:58 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id D3A48B37A; Tue, 22 Oct 2019 09:40:56 +0000 (UTC) Date: Tue, 22 Oct 2019 11:40:54 +0200 From: Oscar Salvador To: Michal Hocko Cc: n-horiguchi@ah.jp.nec.com, mike.kravetz@oracle.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 11/16] mm,hwpoison: Rework soft offline for in-use pages Message-ID: <20191022094049.GA20429@linux> References: <20191017142123.24245-1-osalvador@suse.de> <20191017142123.24245-12-osalvador@suse.de> <20191018123901.GN5017@dhcp22.suse.cz> <20191021134846.GB11330@linux> <20191021140619.GQ9379@dhcp22.suse.cz> <20191022075626.GB19060@linux> <20191022083002.GE9379@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191022083002.GE9379@dhcp22.suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Oct 22, 2019 at 10:30:02AM +0200, Michal Hocko wrote: > But we have destructors for compound pages. Can we do the heavy lifting > there? Yes, we could. Actually, I tried that approach, but I thought it was simpler this way. Since there is no hurry in this, I will try to take that up again and see how it looks. > > > If the page is free then it shouldn't pin the memcg or any other state. > > > > Well, it is not really free, as it is not usable, is it? > > Sorry I meant to say the page is free from the memcg POV - aka no task > from the memcg is holding a reference to it. The page is not usable for > anybody, that is true but no particular memcg should pay a price for > that. This would mean that random memcgs would end up pinned for ever > without a good reason. Sure, I will re-work that. -- Oscar Salvador SUSE L3