Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2692041rwd; Fri, 19 May 2023 08:57:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7awxGaId3CBikvOzVmMQf6oPzeTXDlBkopNjJkB67Y31UrtQzkr2DI7iYX54hZ2XAEoc3H X-Received: by 2002:a05:6a20:c886:b0:106:5dff:5dc6 with SMTP id hb6-20020a056a20c88600b001065dff5dc6mr2365040pzb.16.1684511878312; Fri, 19 May 2023 08:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684511878; cv=none; d=google.com; s=arc-20160816; b=Pv2JX8zpyesN3NadfHFIAEDtDiZNgR1iz2bFOg61KZmu0++gzaNF4WS/s042tFnoWU Saew3suUSeFHhFyi8554MLvdVwv/cFAE+BHyWiv3qd6JWhIRYxqrZ5myMoA6ysV6xiPx BURy02d9fi5A09JecCsUVfVjrKGKpP41+LaXvTa9iM1Oz+MHQeCN2UT0MiS5zdt5EgGR 9uay8ej/n+tb4y7Gwr1ISjy44iXI9oFhEfzguMR3UnVx3TEOyWAbfYZfhFmSasqK0SQq U9OPz1b1HMp3pk8CD5AmNBZBA7KbaYq6T2pm6hy9fdk0gofK1lUqvUiXfvRWZbLeedD6 ZLKw== 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:dkim-signature:date; bh=fasz5CKzUC1yAWqOA9RyNvs+D0MVd+kzXi06AjZXfzk=; b=gTts/TbJgifPQcfMzWZYjRRdcUrwUNtLOGeaFTg9seEP6UQ+RBrYZfCnBh/e79sEUf 2h5lTQGz9GQYNXcsNGlkacDy6qfeFMB2SkhBMHXx51O4tgli5ZTor4kHEd0kc+xFAg3k wvelP9oBba/91oBCh5i0dHaP6w9OKCHhLJjgaPz4E08WCuRxXw/0IODwRMu3cjewrxkx HJFa1DIaDIDBfSjqwqVX1iQMhZ4SO8JOeG6QJ7WUCr5LWtIbitSKDPKt++Cw9o+bs9S+ 8o+WjH13ewVay+ZsXTfgCfADsg9Uzr+v7OEOp8e0I8zQjYEFia2/63Y9NWluHb0Shlpk 6Xfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=AxFce45L; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s30-20020a63925e000000b0050bf5a814a8si1015848pgn.403.2023.05.19.08.57.43; Fri, 19 May 2023 08:57:58 -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=@linux.dev header.s=key1 header.b=AxFce45L; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232154AbjESPrx (ORCPT + 99 others); Fri, 19 May 2023 11:47:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231438AbjESPrv (ORCPT ); Fri, 19 May 2023 11:47:51 -0400 Received: from out-20.mta1.migadu.com (out-20.mta1.migadu.com [IPv6:2001:41d0:203:375::14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 178AB128 for ; Fri, 19 May 2023 08:47:50 -0700 (PDT) Date: Fri, 19 May 2023 11:47:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1684511266; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fasz5CKzUC1yAWqOA9RyNvs+D0MVd+kzXi06AjZXfzk=; b=AxFce45LR8ceWjWQIf5kqgG5BRwR6+PUEnj0pY00HSyEnOqSZqn0aqvOBCi/BzDY256sHS SW50sek0Ah+C50zdyoyQ/4+nd2YbMLyG7V0mcqlbaV45yfmOyjQZvXihZCH1ptG40sxXVd HA/eg59DOhs6affhHbmvW06YACgdZms= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Mike Rapoport Cc: Song Liu , linux-mm@kvack.org, Andrew Morton , Dave Hansen , Peter Zijlstra , Rick Edgecombe , Thomas Gleixner , Vlastimil Babka , linux-kernel@vger.kernel.org, x86@kernel.org 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> <20230518152354.GD4967@kernel.org> <20230519082945.GE4967@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230519082945.GE4967@kernel.org> X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Fri, May 19, 2023 at 11:29:45AM +0300, Mike Rapoport wrote: > Your allocator implicitly relies on vmalloc because of module_alloc ;-) > > What I was thinking is that we can replace module_alloc() calls in your > allocator with something based on my unmapped_alloc(). If we make the part > that refills the cache also take care of creating the mapping in the > module address space, that should cover everything. Yeah, that's exactly what I was thinking :) Liam was also just mentioning on IRC vmalloc lock contention came up again at LSF, and that's historically always been an isuse - going with your patchset for the backend nicely avoids that. If I have time (hah! big if :) I'll see if I can cook up a patchset that combines our two approaches over the weekend.