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.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 7481DC433E0 for ; Thu, 7 Jan 2021 03:38:21 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D0750230FC for ; Thu, 7 Jan 2021 03:38:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D0750230FC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 118D06B02A7; Wed, 6 Jan 2021 22:38:20 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 0CA636B02AB; Wed, 6 Jan 2021 22:38:20 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EF8666B02AC; Wed, 6 Jan 2021 22:38:19 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0187.hostedemail.com [216.40.44.187]) by kanga.kvack.org (Postfix) with ESMTP id D545C6B02A7 for ; Wed, 6 Jan 2021 22:38:19 -0500 (EST) Received: from smtpin30.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 97D91181AEF32 for ; Thu, 7 Jan 2021 03:38:19 +0000 (UTC) X-FDA: 77677571118.30.cork38_190fddd274e7 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin30.hostedemail.com (Postfix) with ESMTP id 747FA180B3AB8 for ; Thu, 7 Jan 2021 03:38:19 +0000 (UTC) X-HE-Tag: cork38_190fddd274e7 X-Filterd-Recvd-Size: 4518 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) by imf36.hostedemail.com (Postfix) with ESMTP for ; Thu, 7 Jan 2021 03:38:19 +0000 (UTC) Received: by mail-lf1-f50.google.com with SMTP id 23so11415561lfg.10 for ; Wed, 06 Jan 2021 19:38:18 -0800 (PST) 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; bh=GeCAMJy8inmpz/GCwmjQawIMiRibYQ20oruKL3WVOQU=; b=cw4Bdq5nTnPNot1yCo/h8oQHt+51YPGP1aPpZZT+CqfcRRErCBOTnNpjb1Uyd2kNIJ i5O7srvOz8xRlgmk0t9Zaw4onIgDHRhVL4RQ4sCI6+zUujatqNpjgwjZwbiusI2TtqXT TdvLmHJmu1EbJJbAX5k8Yx6fqAakKdUwuKVDNW/fSACelpCaNyBiAQBq0J8eNZ0SCjMQ S3mmDNKCOYieYGUus+TuSDCuTvNIZUBZD5/48DL0vjt9mTwQ8qUdi88nUOSZXLbs7LFw 1n0HBF0nr3eknA2DCy0TGHQR6k3T9lSxBauX5cbs/3RHmBAYLdD9VndAN6j9W21qXY2i m7ZQ== 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; bh=GeCAMJy8inmpz/GCwmjQawIMiRibYQ20oruKL3WVOQU=; b=U/5zXlnAmmvg7kswqktgYs+tO9BuMDtcVh7cZ5LvyOefUni8e51PTf5GnLnHWSqwr9 msKImVeKPxI4cSsWQ/l67nogMUNv14e64l4tzYUkyw5TUDlbXJSwnqKmM4vL7D10KJSU e1/s0NP/O4+/1Ffnl3p/I/OTWY/zA7Qurb02lVEjFk8DvrpuvFVgSQY2bBZipVAzIwtj mBApfoIFLKuikUncKvc6jibzXc1Uu8Unb3DZNlH8NfUp9oZDAcLQvdltGc0UxlTiAxOU gfrwJnZt0D1wldXqp2pAlGvPCL36tXBQgIe0XtSIwppB/GUYtWnSuiLBK2zK8iV7RoXG 043A== X-Gm-Message-State: AOAM533fVfjqA25boYCPdNlfdXFR9LCl9YHifb73CxkCm5aqDpn0Q85F 2QLOsNTkAMl7F9OqD8QH6z2Pa3ep/o7wZrhqN0U= X-Google-Smtp-Source: ABdhPJzWCNHzKk3QYDw/TyUEN+OiKbE6bgxe7SHbaTeKlZi5Ajw24jfR/9vttlDP13gJwdaMFsNj4Sm9oId7tlJ+HTw= X-Received: by 2002:a05:651c:1068:: with SMTP id y8mr3115838ljm.76.1609990697757; Wed, 06 Jan 2021 19:38:17 -0800 (PST) MIME-Version: 1.0 References: <20210106034918.GA1154@open-light-1.localdomain> <20210106160827.GO13207@dhcp22.suse.cz> In-Reply-To: <20210106160827.GO13207@dhcp22.suse.cz> From: Liang Li Date: Thu, 7 Jan 2021 11:38:04 +0800 Message-ID: Subject: Re: [PATCH 3/6] hugetlb: add free page reporting support To: Michal Hocko Cc: Alexander Duyck , Mel Gorman , Andrew Morton , Andrea Arcangeli , Dan Williams , "Michael S. Tsirkin" , David Hildenbrand , Jason Wang , Dave Hansen , Liang Li , Mike Kravetz , linux-mm , LKML , virtualization@lists.linux-foundation.org Content-Type: text/plain; charset="UTF-8" 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 Thu, Jan 7, 2021 at 12:08 AM Michal Hocko wrote: > > On Tue 05-01-21 22:49:21, Liang Li wrote: > > hugetlb manages its page in hstate's free page list, not in buddy > > system, this patch try to make it works for hugetlbfs. It canbe > > used for memory overcommit in virtualization and hugetlb pre zero > > out. > > David has layed down some more fundamental questions in the reply to the > cover letter (btw. can you fix your scripts to send patches and make all > the patches to be in reply to the cover letter please?). But I would Do you mean attach the patches in the email for the cover letter ? > like to point out that this changelog would need to change a lot as > well. It doesn't explain really what, why and how. E.g. what would any > guest gain by being able to report free huge pages? What would guarantee > that the pool is replenished when there is a demand? Can this make the > fault fail or it just takes more time to be satisfied? Why did you > decide that the reporting infrastructure should be abused to do the > zeroying? I do remember Alexander pushing back against that and so you > should better have a very strong arguments to proceed that way. > > I am pretty sure there are more questions to come when more details are > uncovered. > -- > Michal Hocko > SUSE Labs I will try to add more detail about the aspect you referred to. Thanks! Liang