Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp862703pxt; Fri, 6 Aug 2021 16:11:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgmcqA4QMHgvz3cL4ZPYQ7nggCBcbyuppEUsyM3cDQPzw6EgoGG1y5vCESo5+1rhh2zRBH X-Received: by 2002:a6b:5d18:: with SMTP id r24mr12266iob.156.1628291467626; Fri, 06 Aug 2021 16:11:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628291467; cv=none; d=google.com; s=arc-20160816; b=RV0dtp15wwDDogVUq+xxMnQXRE7fNx3OOykqccMxXExVndmqF70Oz7ZR2odR69z6vi 4v3r56vS5Imha8wrbbdYsEK++SNK/J9p0r9J5a8VHyajege6YATT28I0PZoToISfC0Rz ZiWcpBtCjhApHG/rLr046LWuiRTkf4AmqK+gffmlRU6FvLtk5czNx/wdhtbwYM8w86Qu 3su/q0dm1gHU/AHeZYp8tiqe4ZDBEw2agrQAtqfAfTreJepY31NxP3+VAaJ8nyKQZv68 dDe9mv+hJlwW5119BKEsBpb2cvOWtIu/O0HlM0pDiWSfht0TTHyPhsJCwo5pxW6p22mn 9AqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=U/SzI1b8roifatTGVdNUueHB2p+u563uKTQPFj/ICfU=; b=jgtMSGpuHDvDKlUX0oFyZwa1T6g6BIrDplodBS028ZH0pXaa6r2CP3JK2bchfplsVM hG83Lxil5BVnQq+AOFzC+Fteru4ESWDgvHS59OVUvfiMOzL79Kvn0dM3FrdAJDyfN9OW TbEMpHBGP8a9Z4oYMYm+Vg00ED4cMh0QuwDPOMxZ7Zv78X8flvRbgHo7WDovwgNdRoge 9xuHhc8cilkp5bn6aKTs5xWCt+fAV/MjH3qBXs3pGmI5NXC3/irOWytdWSZo8qnB+6N/ kBNGulgw/pzMuXh5dMpDkeYt6bNuAsivNLQhVrYc2X3aKc5vV0oav/Iou14IGPpUKxg0 OvOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=YwLLjMqA; dkim=neutral (no key) header.i=@suse.cz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t8si8836387ils.83.2021.08.06.16.10.53; Fri, 06 Aug 2021 16:11:07 -0700 (PDT) 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.cz header.s=susede2_rsa header.b=YwLLjMqA; dkim=neutral (no key) header.i=@suse.cz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241761AbhHFPgg (ORCPT + 99 others); Fri, 6 Aug 2021 11:36:36 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:39556 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232103AbhHFPgg (ORCPT ); Fri, 6 Aug 2021 11:36:36 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 89DF222426; Fri, 6 Aug 2021 15:36:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1628264179; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U/SzI1b8roifatTGVdNUueHB2p+u563uKTQPFj/ICfU=; b=YwLLjMqAGe5/JcIBxU4RtVAHbGmKb205bHTmlg/4lTGMQGA6tSb27yv9ep0NeY3NfIYJVM yOQhg3/PRcjZ2oo7BVKlslZtn2MWB47JBtdqAiyM3H8OdtReMQ1lgi8mJrg+XSiTghhQhQ PTJPm+3mX43KFh/cYGdyA1HBc0NttHY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1628264179; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U/SzI1b8roifatTGVdNUueHB2p+u563uKTQPFj/ICfU=; b=te7htrDx210RhQaDluHmmOYI41uNnAU3QUhHwKP5S/VsW9mThyjfJoyIKdaO+VF8om2COp ih24c70zxQxXkBCA== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 25A9713A86; Fri, 6 Aug 2021 15:36:19 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id 3etuB/NWDWFUMAAAGKfGzw (envelope-from ); Fri, 06 Aug 2021 15:36:19 +0000 Subject: Re: [RFC PATCH 00/15] Make MAX_ORDER adjustable as a kernel boot time parameter. To: Zi Yan , David Hildenbrand , linux-mm@kvack.org Cc: Matthew Wilcox , "Kirill A . Shutemov" , Mike Kravetz , Michal Hocko , John Hubbard , linux-kernel@vger.kernel.org, Mike Rapoport References: <20210805190253.2795604-1-zi.yan@sent.com> From: Vlastimil Babka Message-ID: <40982106-0eee-4e62-7ce0-c4787b0afac4@suse.cz> Date: Fri, 6 Aug 2021 17:36:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210805190253.2795604-1-zi.yan@sent.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/5/21 9:02 PM, Zi Yan wrote: > From: Zi Yan > Patch 3 restores the pfn_valid_within() check when buddy allocator can merge > pages across memory sections. The check was removed when ARM64 gets rid of holes > in zones, but holes can appear in zones again after this patchset. To me that's most unwelcome resurrection. I kinda missed it was going away and now I can't even rejoice? I assume the systems that will be bumping max_order have a lot of memory. Are they going to have many holes? What if we just sacrificed the memory that would have a hole and don't add it to buddy at all?