Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp925190ybe; Wed, 11 Sep 2019 06:53:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwO+vypXioRlNocJQv/gtU6bwN4NNkUCU6oOjjwLZH1YlgaOTZ6DlaWqEL3mmn2efAoPk20 X-Received: by 2002:a05:6402:148c:: with SMTP id e12mr36917105edv.62.1568210004040; Wed, 11 Sep 2019 06:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568210004; cv=none; d=google.com; s=arc-20160816; b=G8gdQoucZY/Rhb58iEJ82IZ02xRQMbSIExCPo5Lqiz59dkhXegyBl0u1GQ4g8fJvQX Y/Z26PREShh7UYNpJrd77URi6O1283JHo3Sd64CawcOJlwXbh3ga5IcLDFC8db6XXth+ HKapnJoVAglMGVwtawT+mcn8fB7Z2hO5bqXXeLYHHO3mc7w5w5Fn2XsTuG+NLu0fNEJ9 aQU65QR4RztLtbK6T5q5DchPbgmdBcDqLvWZKBUEvjh0qpSHIMutjQH4jzHVQHKBG85d qJuXVAR9fWZTSqIaTBWyHxlIOfzjzxFSYgFxMO6xlUdg7NJDzhz93SFrTdPl9sYHiFnq l6IQ== 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=IQDOpBkoK3afx+pyQR7gxhqOd8+fK+rCZoWu6zP5sDI=; b=qwKldh4oEha3DUpXdqJ2QrGd0kw96DrIec4SrNtdzLEO7cM1aJ7w1AkP5Nw+czFTOC U3W2aZCDyZa2LMWU9MrVzFDsrkbb4nC1fs3EEzEV+VYv15tRRjefbkmUT0Mn38XBXPIB YkxtfKOLwZXQV8ALI5YI6/eQ0qTM5z//pVZzlmNyGsQz7sr/D62EwiwH02Ku2XcXPuuU k+wUeImledVzbHGPbAHzlo32S+s7qKoE3tycfAogccntpvfqvoD8+oEb7Z1w0rvPTH0q odeJuUtsmTSJf1RgGFn27ZUm0WJEM/kuuOtUhMYMPoGQ4lK0VLZy5aTG4JQ7VMDuGQ1u XO+g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a13si11148152ejp.117.2019.09.11.06.52.59; Wed, 11 Sep 2019 06:53:24 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728140AbfIKNvF (ORCPT + 99 others); Wed, 11 Sep 2019 09:51:05 -0400 Received: from mx2.suse.de ([195.135.220.15]:55284 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726781AbfIKNvE (ORCPT ); Wed, 11 Sep 2019 09:51:04 -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 81F1EC07E; Wed, 11 Sep 2019 13:51:02 +0000 (UTC) Date: Wed, 11 Sep 2019 15:51:00 +0200 From: Michal Hocko To: David Hildenbrand Cc: "Michael S. Tsirkin" , Alexander Duyck , Alexander Duyck , virtio-dev@lists.oasis-open.org, kvm list , Catalin Marinas , Dave Hansen , LKML , Matthew Wilcox , linux-mm , Andrew Morton , will@kernel.org, linux-arm-kernel@lists.infradead.org, Oscar Salvador , Yang Zhang , Pankaj Gupta , Konrad Rzeszutek Wilk , Nitesh Narayan Lal , Rik van Riel , lcapitulino@redhat.com, "Wang, Wei W" , Andrea Arcangeli , ying.huang@intel.com, Paolo Bonzini , Dan Williams , Fengguang Wu , "Kirill A. Shutemov" Subject: Re: [PATCH v9 0/8] stg mail -e --version=v9 \ Message-ID: <20190911135100.GC4023@dhcp22.suse.cz> References: <20190910175213.GD4023@dhcp22.suse.cz> <1d7de9f9f4074f67c567dbb4cc1497503d739e30.camel@linux.intel.com> <20190911113619.GP4023@dhcp22.suse.cz> <20190911080804-mutt-send-email-mst@kernel.org> <20190911121941.GU4023@dhcp22.suse.cz> <20190911122526.GV4023@dhcp22.suse.cz> <4748a572-57b3-31da-0dde-30138e550c3a@redhat.com> <20190911125413.GY4023@dhcp22.suse.cz> <736594d6-b9ae-ddb9-2b96-85648728ef33@redhat.com> <20190911132002.GA4023@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190911132002.GA4023@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 Wed 11-09-19 15:20:02, Michal Hocko wrote: [...] > > 4. Continuously report, not the "one time report everything" approach. > > So you mean the allocator reporting this rather than an external code to > poll right? I do not know, how much this is nice to have than must have? Another idea that I haven't really thought through so it might turned out to be completely bogus but let's try anyway. Your "report everything" just made me look and realize that free_pages_prepare already performs stuff that actually does something similar yet unrelated. We do report to special page poisoning, zeroying or CONFIG_DEBUG_PAGEALLOC to unmap the address from the kernel address space. This sounds like something fitting your model no? -- Michal Hocko SUSE Labs