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.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 BE05BC34022 for ; Wed, 19 Feb 2020 08:49:18 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8736A208E4 for ; Wed, 19 Feb 2020 08:49:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8736A208E4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=techsingularity.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 22DB36B0003; Wed, 19 Feb 2020 03:49:18 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1B86D6B0006; Wed, 19 Feb 2020 03:49:18 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0A7266B0007; Wed, 19 Feb 2020 03:49:18 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0195.hostedemail.com [216.40.44.195]) by kanga.kvack.org (Postfix) with ESMTP id E13C66B0003 for ; Wed, 19 Feb 2020 03:49:17 -0500 (EST) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 6E179180AD81D for ; Wed, 19 Feb 2020 08:49:17 +0000 (UTC) X-FDA: 76506252354.05.star98_16d85b780e603 X-HE-Tag: star98_16d85b780e603 X-Filterd-Recvd-Size: 4947 Received: from outbound-smtp39.blacknight.com (outbound-smtp39.blacknight.com [46.22.139.222]) by imf04.hostedemail.com (Postfix) with ESMTP for ; Wed, 19 Feb 2020 08:49:16 +0000 (UTC) Received: from mail.blacknight.com (unknown [81.17.254.10]) by outbound-smtp39.blacknight.com (Postfix) with ESMTPS id 86EEEC9A for ; Wed, 19 Feb 2020 08:49:15 +0000 (GMT) Received: (qmail 29501 invoked from network); 19 Feb 2020 08:49:15 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.18.57]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 19 Feb 2020 08:49:15 -0000 Date: Wed, 19 Feb 2020 08:49:12 +0000 From: Mel Gorman To: Alexander Duyck Cc: Andrew Morton , Alexander Duyck , kvm@vger.kernel.org, david@redhat.com, mst@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, yang.zhang.wz@gmail.com, pagupta@redhat.com, konrad.wilk@oracle.com, nitesh@redhat.com, riel@surriel.com, willy@infradead.org, lcapitulino@redhat.com, dave.hansen@intel.com, wei.w.wang@intel.com, aarcange@redhat.com, pbonzini@redhat.com, dan.j.williams@intel.com, mhocko@kernel.org, vbabka@suse.cz, osalvador@suse.de Subject: Re: [PATCH v17 0/9] mm / virtio: Provide support for free page reporting Message-ID: <20200219084912.GO3466@techsingularity.net> References: <20200211224416.29318.44077.stgit@localhost.localdomain> <20200211150510.ca864143284c8ccaa906f524@linux-foundation.org> <20200211161927.1068232d044e892782aef9ae@linux-foundation.org> <31383bb111737c9f8ffbb1e6e4446cb4fd620a53.camel@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <31383bb111737c9f8ffbb1e6e4446cb4fd620a53.camel@linux.intel.com> 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, Feb 18, 2020 at 08:37:46AM -0800, Alexander Duyck wrote: > On Tue, 2020-02-11 at 16:19 -0800, Andrew Morton wrote: > > On Tue, 11 Feb 2020 15:55:31 -0800 Alexander Duyck wrote: > > > > > On the host I just have to monitor /proc/meminfo and I can see the > > > difference. I get the following results on the host, in the enabled case > > > it takes about 30 seconds for it to settle into the final state since I > > > only report page a bit at a time: > > > Baseline/Applied > > > MemTotal: 131963012 kB > > > MemFree: 95189740 kB > > > > > > Enabled: > > > MemTotal: 131963012 kB > > > MemFree: 126459472 kB > > > > > > This is what I was referring to with the comment above. I had a test I was > > > running back around the first RFC that consisted of bringing up enough VMs > > > so that there was a bit of memory overcommit and then having the VMs in > > > turn run memhog. As I recall the difference between the two was something > > > like a couple minutes to run through all the VMs as the memhog would take > > > up to 40+ seconds for one that was having to pull from swap while it took > > > only 5 to 7 seconds for the VMs that were all running the page hinting. > > > > > > I had referenced it here in the RFC: > > > https://lore.kernel.org/lkml/20190204181118.12095.38300.stgit@localhost.localdomain/ > > > > > > I have been verifying the memory has been getting freed but didn't feel > > > like the test added much value so I haven't added it to the cover page for > > > a while since the time could vary widely and is dependent on things like > > > the disk type used for the host swap since my SSD is likely faster than > > > spinning rust, but may not be as fast as other SSDs on the market. Since > > > the disk speed can play such a huge role I wasn't comfortable posting > > > numbers since the benefits could vary so widely. > > > > OK, thanks. I'll add the patches to the mm pile. The new > > mm/page_reporting.c is unreviewed afaict, so I guess you own that for > > now ;) > > > > It would be very nice to get some feedback from testers asserting "yes, > > this really helped my workload" but I understand this sort of testing > > is hard to obtain at this stage. > > > > Mel, > > Any ETA on when you would be available to review these patches? They are > now in Andrew's tree and in linux-next. I am hoping to get any remaining > review from the community sorted out in the next few weeks so I can move > onto focusing on how best to exert pressure on the page cache so that we > can keep the guest memory footprint small. > I hope to get to it soon. I'm trying to finalise a scheduler-related series that reconciles NUMA and CPU balancing and it's occupying much of my attention available for mainline development :( -- Mel Gorman SUSE Labs