Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5530977pxb; Tue, 16 Feb 2021 00:25:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0pkEKAIq+O28ozcXeF15IfxX7xgZuWBfDTZinZ886XIo0ov1WCkeGnGCPBuNBtuIhKwrx X-Received: by 2002:aa7:db53:: with SMTP id n19mr17427857edt.359.1613463921326; Tue, 16 Feb 2021 00:25:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613463921; cv=none; d=google.com; s=arc-20160816; b=IT0sc3li8M4xmHPEieB6ev9TfXVfZFRCp2So1KsBkAK+dEZPqyKPt0QFjX1/BGuNAy CRwV78XxH71ygOwymVld6f7bOE0bvOKW3j3eae/a92RF/GODkZQ2eF6iHve4pf3DZmRE oKrpznQqsqJC49VqxSMiU4VLsOl12lqmj7ZAmSAeliXwKqz3hovKxuE3kL88cbyVBnBI E1D4ScsKx3BZoulrNU3gOsmj4CcZg+faBoJ+E1cFUJC+Nf4unsB3l9FYOSWAYE5CElCD QxBj5qNDGd/yOa8RJ54yIsbgBZQEYnZuUCNyxTHYPbKPXD+aTyBAca1UNSPx4dL03V7u XTfQ== 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=yxFwziSyZyOqU27QatYvWYrbroR4UnAqOg89qO7rMuM=; b=lmXd8+2SoR1Xq9POtf8f2IGVRoVIfRqOMPqE8Q63EIt2q0opLfxdUPLAEnhB4siBOn Bq5lZPWwO+riOkwzzlTPPYbWj9XmyXvuN4Rm2K00FZDTRNeLf5LPg4i9apbcFBYM0mcL 1VU5Mmn3sH69frZm5Frtp0NSfv1JgeguUI//IhJ1CaLa+ksAcCowD5RBLBZEJx5fAfwF siFOL9v2Vp5HkTkaTjjxs+D6BVls+3OXSlAAifc4E8HRNQgmcXI3hf+cAX09EIPAvgb+ cOIRkJBDJMD1Zr5wUWkTOHjWxcCV7VdFdiNJ3VuVs9prsERLtNNhRaaXVbkK/6F37Dep MI6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=eYhfed6N; 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 cw22si844450ejb.705.2021.02.16.00.24.57; Tue, 16 Feb 2021 00:25:21 -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=eYhfed6N; 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 S229721AbhBPIXi (ORCPT + 99 others); Tue, 16 Feb 2021 03:23:38 -0500 Received: from mx2.suse.de ([195.135.220.15]:45514 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229811AbhBPIVv (ORCPT ); Tue, 16 Feb 2021 03:21:51 -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=1613463662; 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=yxFwziSyZyOqU27QatYvWYrbroR4UnAqOg89qO7rMuM=; b=eYhfed6NW++hDwqLUPTACF6UbC/shda+lS/QxJlotWM16Wipv6jy5WmRh0cQc/dRvyIxn1 ej82DijW+bwiWE8xN5YuvI0cL/vh4pQBm5opBLNybn59CV64dhCAs6bX7KzaRJl7Wzoetb brEJ3VJWFdkxM425lJ/yR6eCq3l9z6o= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 8D7B1AD29; Tue, 16 Feb 2021 08:21:02 +0000 (UTC) Date: Tue, 16 Feb 2021 09:21:01 +0100 From: Michal Hocko To: David Hildenbrand Cc: Muchun Song , Jonathan Corbet , Mike Kravetz , Thomas Gleixner , mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, dave.hansen@linux.intel.com, luto@kernel.org, Peter Zijlstra , viro@zeniv.linux.org.uk, Andrew Morton , paulmck@kernel.org, mchehab+huawei@kernel.org, pawan.kumar.gupta@linux.intel.com, Randy Dunlap , oneukum@suse.com, anshuman.khandual@arm.com, jroedel@suse.de, Mina Almasry , David Rientjes , Matthew Wilcox , Oscar Salvador , "Song Bao Hua (Barry Song)" , HORIGUCHI =?utf-8?B?TkFPWUEo5aCA5Y+jIOebtOS5nyk=?= , Joao Martins , Xiongchun duan , linux-doc@vger.kernel.org, LKML , Linux Memory Management List , linux-fsdevel Subject: Re: [External] Re: [PATCH v15 4/8] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page Message-ID: References: <4f8664fb-0d65-b7d6-39d6-2ce5fc86623a@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4f8664fb-0d65-b7d6-39d6-2ce5fc86623a@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 16-02-21 09:13:09, David Hildenbrand wrote: > On 15.02.21 20:02, Michal Hocko wrote: > > Would it be feasible to reused parts of the freed page in > > the worst case? > > As already discussed, this is only possible when the huge page does not > reside on ZONE_MOVABLE/CMA. Right. But usually this is not the case so it would be at least something. > In addition, we can no longer form a huge page at that memory location ever. Yes, that's why I am saying in the worst case. E.g. when dissolving is really necessary like in hwpoison case. Maybe we are really far from needing something like that. I just wanted to mention this option and I was not aware this has been discussed previously. -- Michal Hocko SUSE Labs