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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DEB3C433FE for ; Wed, 30 Nov 2022 09:40:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234415AbiK3Jkw (ORCPT ); Wed, 30 Nov 2022 04:40:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235061AbiK3Jkc (ORCPT ); Wed, 30 Nov 2022 04:40:32 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C15B1663D0 for ; Wed, 30 Nov 2022 01:40:05 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 69C6F61AB3 for ; Wed, 30 Nov 2022 09:40:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57F6FC433D6; Wed, 30 Nov 2022 09:40:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669801204; bh=j4pbxURSkB/qMAGKhX3c71/EfzCnkVfnezE1/DTusgY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qWusOV3BBSkYy7rrN42u80HXQwwdVYZOFUGbiEihPaSrqL2ILGP8e1vaCHK2E2lTZ S7WkLtjnjui8RQQW3//nhppG3vhYZOhtZS4ibsuCM68bewY08jB8YrelFxVN46yITz 6vBdiV5AtEMGKWlOCjeKkk2fL4F+1N432YCxdLHjLWEuH/rTiMLDUYma1AAL15yOTh oGi83OUsyDR/N3bh/pm1v8RdKaGX4cLTw0eEfBYq9pG3oMXVUHdCvNSSaxVU35H5HJ 1WjylIAn3qadSUyNbO9ut3S0ZagD+OrfQ4XjAgTkRVil1dYQnhLJ660Nfs1gQ2HmPn Su0xPK1NkLdJA== Date: Wed, 30 Nov 2022 11:39:47 +0200 From: Mike Rapoport To: Song Liu Cc: "Edgecombe, Rick P" , "peterz@infradead.org" , "bpf@vger.kernel.org" , "linux-mm@kvack.org" , "hch@lst.de" , "x86@kernel.org" , "akpm@linux-foundation.org" , "mcgrof@kernel.org" , "Lu, Aaron" Subject: Re: [PATCH bpf-next v2 0/5] execmem_alloc for BPF programs Message-ID: References: <9e59a4e8b6f071cf380b9843cdf1e9160f798255.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Mon, Nov 21, 2022 at 07:52:12AM -0700, Song Liu wrote: > On Sun, Nov 20, 2022 at 3:41 AM Mike Rapoport wrote: > > > > > > > > The most obvious one to implement Peter's suggestion with VM_TOPDOWN_VMAP > > > > so that execmem_alloc() can be actually used by modules. > > > > > > Current implementation is an alternative to VM_TOPDOWN_VMAP. I am > > > very sure it works for modules just like VM_TOPDOWN_VMAP solution. > > > > It might, but it still does not. And until they do I consider these > > patches as an optimization for BFP rather than unification of code > > allocations. > > We haven't got module to use execmem_alloc yet, that's true. But > this has nothing to do with VM_TOPDOWN_VMAP at all. The point is that Peter suggested a way to make module_alloc() use 2M pages, so that all code allocations could benefit from it. Your execmem_alloc() isn't anywhere near this. > Thanks, > Song -- Sincerely yours, Mike.