Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4743231rwl; Tue, 28 Mar 2023 10:40:00 -0700 (PDT) X-Google-Smtp-Source: AK7set9RnfusC8A1KTLbzBQsa1a3XFsfjog1NGN+qP7A8zd+HjsPflSPwSMYLW3Se/EYysjtR9oH X-Received: by 2002:a05:6a20:6714:b0:d5:58df:fb7a with SMTP id q20-20020a056a20671400b000d558dffb7amr16938870pzh.3.1680025199924; Tue, 28 Mar 2023 10:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680025199; cv=none; d=google.com; s=arc-20160816; b=QFV0C05clsD50eTQB2pPT+FCl8oawwfIxigQh1lqyFZL+zFKaUdmEQtP7esEWibGY+ a3rttquyAzDn2dkeZnwAs+bpBFxEciWY2T+ngNK2teYsPhUx4tMu4HHS0O3foPiJR135 7mYTu/3MBrumOlwEqOjrRA9Xc2A6OLo6mKw+TsBelmZU6wRQhw6RuYoLpfa//Jw5qPTU bXXUExkv7GFYC3YFCt8mSpaZZHDOmolqEU+P/dVSIrVS6r86t0ShwPmnZvgl80Z0Pmph jDmerEZnnv2whxpXd1Sw6dzDMC6T7K2WD1cwU/1FuEIpuEZdFWABdofpx7MiO2nhpkxe Vk1g== 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=c7ay3PzfLUlKczzYKFS0hIWxG5cR/FUCy4TCuFGv3qg=; b=bdNq6IB2A007puQfj8KpCm3DiJA8+8UDGndJDqT/zH4SnSgLVCITcqSeQox91GoBbu MKJO+Z1ruFsRkCG1iHYnTXF65TgNp9oWifwG0lafT9Bek1LDRXBaR5mnExZakgUTpMKt fopXSL+vH6mIp+zEjxi3atKjWA7KeRvyjD0UhGt/PKDjuXAekwco+NkgDdPa048wt0hG jo3c+/oGy6YmDw2WOUzlw5rPfGHNJI14fdUGQQHjgP6lYzxawMaiMhLAHhHd5GwSd0BV lgIZ0n7hfdEelVMnngkf4Bo1NEA0ukvI+JOwx1zPe8i/pf8wSJOwiJVQSLOgmzmfLet5 LAHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=PeenjWv1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020a056a000a8e00b005de484ca9ccsi31423705pfl.149.2023.03.28.10.39.47; Tue, 28 Mar 2023 10:39:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=PeenjWv1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229507AbjC1RiO (ORCPT + 99 others); Tue, 28 Mar 2023 13:38:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbjC1Rhx (ORCPT ); Tue, 28 Mar 2023 13:37:53 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B7B0D50B; Tue, 28 Mar 2023 10:37:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=c7ay3PzfLUlKczzYKFS0hIWxG5cR/FUCy4TCuFGv3qg=; b=PeenjWv1jMr3I+rMLnHAOXi8Ov LpHwi74bFLig9FY8+yCpUh5rs4nDlcpMFFb/PK6vIz7iga4gtSTxpW+2RAZXIIML3GWHgZ0cE0Glv 2BjSFL7OS7hk0QmHUjjRT+u62r95HSe3G31uOvz6fv0UgkQ+EJcPtrY+TvqRS0J52ciZl8nC7eR8V iXYAsHhqjmj6IH4hVi6V1WIs4zyrbh2weILUMkDfuUU0/yb0K6ySz7HzDlyYCmvK8LHuLbsW3GRyw 0RPJvWB8LsA1xKCLyzMLB621XHfks0lbQa69mKbudJShGX860rTEOWYlgtAGoe3QD4EcCxpz58HHC 6SXRMklQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1phDFx-008d3L-CI; Tue, 28 Mar 2023 17:37:13 +0000 Date: Tue, 28 Mar 2023 18:37:13 +0100 From: Matthew Wilcox To: Luis Chamberlain Cc: Mike Rapoport , Michal Hocko , linux-mm@kvack.org, Andrew Morton , Dave Hansen , Peter Zijlstra , Rick Edgecombe , Song Liu , Thomas Gleixner , Vlastimil Babka , linux-kernel@vger.kernel.org, x86@kernel.org, linux-modules@vger.kernel.org, Pankaj Raghav , Daniel Gomez , "kbus >> Keith Busch" , Davidlohr Bueso , Adam Manzanares , Kees Cook Subject: Re: [RFC PATCH 1/5] mm: intorduce __GFP_UNMAPPED and unmapped_alloc() Message-ID: References: <20230308094106.227365-1-rppt@kernel.org> <20230308094106.227365-2-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 28, 2023 at 10:18:50AM -0700, Luis Chamberlain wrote: > differences with eBPF programs is that modules *can* be rather large > in size. What is the average size of modules? Well let's take a look: > > mcgrof@bigtwin /mirror/code/mcgrof/linux-next (git::master)$ find ./ > -name \*.ko| wc -l > 9173 ummm ... wc -c, surely? > mcgrof@bigtwin /mirror/code/mcgrof/linux-next (git::master)$ find ./ > -name \*.ko| xargs stat -c "%s - %n" | sort -n -k 1 -r | tail > -$((9173-5)) | awk 'BEGIN {sum=0} {sum+=$1} END {print sum/NR/1024}' > 160.54 ... which invalidates all of these.