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 3EB86C6FD18 for ; Tue, 28 Mar 2023 17:38:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229501AbjC1RiO (ORCPT ); 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: Precedence: bulk List-ID: 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.