Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp935549pxu; Wed, 6 Jan 2021 08:10:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzo72dGSO6nihjgZm5okaKeE0rdfY6PtkEKyeWh+1biD30K1BOEAw+r3zD9WKFdv9Cd0u1h X-Received: by 2002:a17:906:edc8:: with SMTP id sb8mr3334489ejb.247.1609949449477; Wed, 06 Jan 2021 08:10:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609949449; cv=none; d=google.com; s=arc-20160816; b=NNWnzRtRnnaspdCilnkbHRhaCvHVjUc/dP/pe79Gq54ZHx/VDjukIXaVfMoBrHiT/4 Y7B3O188ldn216bvvhX5RwqT9DOYYRrBt8jd9SsTYL9V+bX+IOG/VMnpXb2Q1TblFB1y 98pqcO3b6UNyIqMQnN63GnDqtK1XJVUG1B9L5KuqLcooAu91o/CFNxOe7uDNmORUkHTs xtGzXfdyOyEpRMyrfjrtaONhlRaBKl3mhEPtE60qWykaaJYu1nbABiMLjJtAxQ/eVaGk Uu+1SVfnjb/mmvgmSQX78JDMcsRcydgkowYpRPXPoTlAZbezqwfZ7NTEL1Zjy0RLMF8E TdHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DqIGbcceYvDxkWsAJN0aQAT/RO0PdGdUprcpKKPoJYc=; b=1K99QRV6mE9LGrZuurIRqhh/C5ZtB4kT5/hL5qzlatoaOnzLvFQpiTev5hAGx1vIqa eQeUL56RpureEJ/3lf21ZhTtYjmMbxiBHGMpCx+j7AfH1Vhx807yml6MVmrxavR1WMmj GfBmE6e0sSk3L7Ikfd+IMWypJO5p0h2YU8RF9m8jbhtvj3tiZ2BS5cj8QObo5CS4qcgM iobOu0PQU1C5YBxZXVq/PK1x6WXmPYqFR4lve/ad0G59DMPN7uOlhS2jFIah3uWUMInr Kp11a5GRydYBXMZWqxtx6sVGK/5ka1+qkX2Ua/Rbv2RwVwr/6b9uxd0Lb/bSf2priRh9 qDTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=FVZ5LPOF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cb20si1081580ejb.329.2021.01.06.08.10.23; Wed, 06 Jan 2021 08:10:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=FVZ5LPOF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726951AbhAFQJO (ORCPT + 99 others); Wed, 6 Jan 2021 11:09:14 -0500 Received: from mx2.suse.de ([195.135.220.15]:42068 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725925AbhAFQJO (ORCPT ); Wed, 6 Jan 2021 11:09:14 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1609949308; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DqIGbcceYvDxkWsAJN0aQAT/RO0PdGdUprcpKKPoJYc=; b=FVZ5LPOFge/VBmJ/fHjfRqNhyng0Huq1LpfiWWD8JBDYkeUpBuOzuKdagFWmKgeB4wDJSF HOCiWnDetJMcdA9xdbaqvnv8ZyuuS79gUWWGdKyhKnSpEyBK8T/nl+UcqSKksTj18dDQ60 ucJYQeRrMLsVu65tHG7RQoeTGpgmM0M= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 7A7FBAD8C; Wed, 6 Jan 2021 16:08:28 +0000 (UTC) Date: Wed, 6 Jan 2021 17:08:27 +0100 From: Michal Hocko To: Liang Li 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@kvack.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH 3/6] hugetlb: add free page reporting support Message-ID: <20210106160827.GO13207@dhcp22.suse.cz> References: <20210106034918.GA1154@open-light-1.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210106034918.GA1154@open-light-1.localdomain> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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