Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1256841pxj; Sat, 12 Jun 2021 03:12:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6a1hG8MNueCtV/0WJaRxDNDw9i2beX1zc/JfRStL63fYKPBb1ou/+o2/a9jkrDJgkCC5m X-Received: by 2002:a17:907:c0d:: with SMTP id ga13mr7520264ejc.325.1623492778520; Sat, 12 Jun 2021 03:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623492778; cv=none; d=google.com; s=arc-20160816; b=z6SA7JVAIkkmy6niNlj0YzTEM21cFLKqlIxAzZVlZoU62DHQz29hZ1yfCyfdWNrdTN IMfgavLyVubVA+hXZiKX4b9AfRNg7f8d3OJoidS6hMKv0ozoBEHLaEBFC4RwomeUpm/C Gx6VHwhe94crD26YDatdmyMIR0jeMWepZq2TX844xRp3vQUsOvGU/PimNCGWQj5dFyfw R8dPLqOm7GbtE1tEExKZV2GgLSi0Ke6Suwj7582LxLqeluYkHlRsseiyYAB3ZxKSKDIH a+MJ0ic3YpbCXLxGpS/6xBpGxtGHcPoa4D2mdxt2hO4UM37sN/4yoTDFPZrt0/Zy6dzP w0Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=AT7TdH2L77iTuTSn1aA0qtf/VJNsIDnQ4+a/eMxejMI=; b=fnpCiYuMLQ+7xTJTiObJMyWy14GQbpvxaha97NDfIBoDOvOio02Uec3uzYL0E7lWOt YBk8Wg958PkVS8Zmwyw3HKVXsJj80mibr4BEN3xsi1BZR0CAR9bkdNdYbRjz07nnKqXB dHt7pG23QEfR14c5OLmbxPRWEQdkA/6L+RjKZYrtbytB6epsw0KwMcmANIeIcqg707F+ 9ZT9r2bkQbOPznkW6DUFDUngr7wHL/4uftKHYljqR7JoL+azw59QvpXivEQgWGKNxJI0 0N0ymbiW2gDkQfj5pIsTqqK+raAxi/+amOWjghDgCYmqmN3z9J4c7O90p12YgmrAvBKb PoPg== ARC-Authentication-Results: i=1; mx.google.com; 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 y9si1005510eda.518.2021.06.12.03.12.21; Sat, 12 Jun 2021 03:12:58 -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; 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 S230040AbhFLKJJ (ORCPT + 99 others); Sat, 12 Jun 2021 06:09:09 -0400 Received: from outbound-smtp22.blacknight.com ([81.17.249.190]:48974 "EHLO outbound-smtp22.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbhFLKJJ (ORCPT ); Sat, 12 Jun 2021 06:09:09 -0400 Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp22.blacknight.com (Postfix) with ESMTPS id 9859ABAB48 for ; Sat, 12 Jun 2021 11:07:08 +0100 (IST) Received: (qmail 3549 invoked from network); 12 Jun 2021 10:07:08 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.17.255]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 12 Jun 2021 10:07:08 -0000 Date: Sat, 12 Jun 2021 11:07:06 +0100 From: Mel Gorman To: Andrew Morton Cc: Zi Yan , Dave Hansen , Vlastimil Babka , Michal Hocko , Jesper Dangaard Brouer , LKML , Linux-MM Subject: Re: [PATCH v2] mm/page_alloc: Allow high-order pages to be stored on the per-cpu lists Message-ID: <20210612100706.GE30378@techsingularity.net> References: <20210611135753.GC30378@techsingularity.net> <20210611162331.272f67eabffa491fc83798b4@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20210611162331.272f67eabffa491fc83798b4@linux-foundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 11, 2021 at 04:23:31PM -0700, Andrew Morton wrote: > > +static inline int pindex_to_order(unsigned int pindex) > > +{ > > + int order = pindex / MIGRATE_PCPTYPES; > > + > > +#ifdef CONFIG_TRANSPARENT_HUGEPAGE > > + if (order > PAGE_ALLOC_COSTLY_ORDER) { > > + order = pageblock_order; > > + VM_BUG_ON(order != pageblock_order); > > Somebody has trust issues? > Just a little bit :P > > + } > > +#else > > + VM_BUG_ON(order > PAGE_ALLOC_COSTLY_ORDER); > > +#endif > > + > > + return order; > > +} > > Do we really need all these assertions, long-term? > No, definitely not. Even now it's but already the patch caught me by surprise (breaking kvm boot) so I'd like to leave them in for at least one release given the number of changes queued in your tree for the next merge window. Thanks. -- Mel Gorman SUSE Labs