Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5404289ybg; Tue, 22 Oct 2019 02:44:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJFsHC3VpcEGEhrIkNhxeuZy8618Wwg1YgD2g88lA799JaXyaZvCdM1YUJhMgTfHhLVSV6 X-Received: by 2002:a05:6402:3c5:: with SMTP id t5mr29221500edw.125.1571737469859; Tue, 22 Oct 2019 02:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571737469; cv=none; d=google.com; s=arc-20160816; b=m7Njhw103LijigbMzwu7n4NKmo1fHXxrTbO2ZUGpaeMoNu6vrGKBkgsGRerqyi6vrP 95y6WE0+4vOXzFRkFojbomGQbU0Jw+bdWZnO5qeJEl1q12mLUXlsL45sK1zxXmbJ6879 tt9VPF91ljbYHZ4JxEvmV0pLud/1jpSSuwviLYjZv6GkRQ4nWAqSYbPUFDRfgzHus13N ZfQDBC0f1/MNLcH3aHd1nVRwUw2DOSgwtVVLkJvgKyE/GknsL4404CKq/Hljgzn84sfg 1vyPVbZq6ub/9YIzURqn6NiZdv3ED/om/y3UEq+gN3LONci2i5OKNgCISqcwLdkounKE 1BsQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5irFbrSZLSFA6dyUAlanCHIvbb6I8aTSEQfnWqTsMzg=; b=xbZNChBi31AE7c0r4qSipALTlm7O1+zWdvO5DnLWKMucwxp4icmFGRTB+wnzQDK2IT wxzSJD5emjli+qW8HLaI4anKyNqtu90xFfbOd15pi1bO1x9tipENPi9l9xBIViqqmI52 fodkoLLTpqlPfL8MI78flAxhNqEmfR5nhyEV/4XsvqecQlPuj0JBGv9AUbJjit0VNQU/ qE5XhqRbX4kgLEdrLIIkGnh8VY6qFCDFREaNzMySBWKFR2+eqRdVvmTb2ON4W3mYLPSX g7ZVtlgb3TQ7J4VuPm6iWtbLaIP4ZAgpHIXHNJXGM4N89cZQGF9jIBMO3R+hB1+9yAKZ +Whg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p22si9973294ejf.278.2019.10.22.02.44.05; Tue, 22 Oct 2019 02:44:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731497AbfJVJk7 (ORCPT + 99 others); Tue, 22 Oct 2019 05:40:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:36710 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730312AbfJVJk6 (ORCPT ); Tue, 22 Oct 2019 05:40:58 -0400 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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