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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 099ABC77B7A for ; Thu, 18 May 2023 16:48:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 29793900006; Thu, 18 May 2023 12:48:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2481A900004; Thu, 18 May 2023 12:48:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 136FD900006; Thu, 18 May 2023 12:48:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 0275F900004 for ; Thu, 18 May 2023 12:48:30 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 2EAE7AE1B1 for ; Thu, 18 May 2023 16:48:28 +0000 (UTC) X-FDA: 80803959096.12.F20A4C5 Received: from out-41.mta0.migadu.com (out-41.mta0.migadu.com [91.218.175.41]) by imf20.hostedemail.com (Postfix) with ESMTP id 327341C0015 for ; Thu, 18 May 2023 16:48:25 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=B69OOOf9; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf20.hostedemail.com: domain of kent.overstreet@linux.dev designates 91.218.175.41 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684428506; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=1BJyFti2GSK6Ojcdhf1oqrHvjDqy4qKVqOaagfZXbM8=; b=wK1S6i5BGaP78w8xJZdS2f3KUdfiT8aBIETt7uZh/oS5yYZynIJ821BqPqFHVE7dR+f+7E U4AmR2tuZit/ltZsWMr5rB7gxmYNZRqFcLMunjO5QGUN/38d2tXmv2BgI8HtMOOjx0Ivag qPm2P6sb6iQyqCB159bItHtd+xl+81Q= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=B69OOOf9; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf20.hostedemail.com: domain of kent.overstreet@linux.dev designates 91.218.175.41 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684428506; a=rsa-sha256; cv=none; b=YiB9UD/DlRnXv+y/IYKBUZK3hjp/6ov5h6Yn0E+yD8By0Z0Otqqupc60kYxaLGC4DaxTY9 yszp/sKfEupn45SkKcEcqkvNE0W4yL2XNmR2hszJIT24tSUxb2hj50X9mM+sTDB/nwWkap 7Es/gd7bAka0Ae7xWTEiqRjI6YAnaIc= Date: Thu, 18 May 2023 12:48:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1684428504; 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=1BJyFti2GSK6Ojcdhf1oqrHvjDqy4qKVqOaagfZXbM8=; b=B69OOOf99KKPTXqHA+bgu5GeyBKcn9r6JhoMGiKzX+giLnBWWwnzh2gd+oX0gtR1U9F5N3 JPdn5RZdQDHj93zYae1uGFPgQWS+XGqALy1GJDVdowHGLeilE//EZ5Cm/Sanj+u2fymPxM e/NCrNvkFDq3i1jNiBH71I5vS36UZ9Q= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Song Liu Cc: Mike Rapoport , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Rspamd-Queue-Id: 327341C0015 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: 99we6tzn45mrs1ekfiqu1yrmiwp9yyhg X-HE-Tag: 1684428505-305994 X-HE-Meta: U2FsdGVkX19dMLTh4T6cZzcQKjJxdvH+rRQIs4V8pYlhbRPkv/rp+ISbjBndW52G4e1+RpEfmAq9kduxTRXXeddyJqgV2a1MWzF8NtBxcAixw0KKqXuAfNNkqTwqvdmhfZateLHVU2qcqO+08ZlA+vMuB61WRMSdctKUbigmPXkdY1VmVo6dsQ8WxxQuOkkY4HNWae9Kp8SpZUqqEWKuCMKrYLL4n622P7pfaAzZFYe+pqhwvPjU46h0ZpZkj4FtshuNbGBrNviVURY6+iY97Zr6J4wXTGCNu/RnvcRmoxdHBPgwj5lyqR0osF89BiKGocinOie3aqF7lCBR+cV90aY5PAxyTMW7aT4SsaSSQTfaSHA7Mk1wCNrb40zdy0NGgD4Wjq0vqkO1mPjWyHdvmwHRLLgOpUoXhzQVWX6wdhw00Has5ts4N2lXAb6imDbZ+tqEBLXfGMLLtObreJ40kwq4cF498EkCUEyZ4gPS8Dn5GP51zJJBICl+DDC42ta+MGaH170OXlt5WnEOtSV0xalJ3oS7Y/dFZz2Dsn6W2h/OnD/lciDIa5uFc8/wF+uBU9QUdR7qojIvcrzjbP4hVeMK2uuADnb6s00f74LzzRJ11JXetuzTSG2s8Y/A/ZLtfYHt+4RkNBurnvhTzaFynfQIRw5wp9OZ4sbFVqbhh882suaRXKZkUiDgJEANUc9iBhSZpe8MNfPMDpdsJpS0O4lC1iapsooG/UjoDWZMPHVq/rb1cD7++xBVgZgbQcNPi1OrlTdFdn7aYktTxCExbK2tFFQHNyiO/J5d0OVyKd4wlPkbAC+bx1Q7xd+M0PLY9cbTtVGIbpAOf0mVAQbNgqFHhA2c3iCUhLR7wTiw5ewRXTeUzXj0ZBfztN2IJ7UI3CtkdaeSuqvf9kZrDCfN6M2j8NurfuUEQf+N3S6+ScTaVAlVuqJttrcOD8ZBU3DCE16GupXnWb0E+12iL9I HPJiexP8 gF7X0HTHSYgENskiHk4pePCgnGVVzBahx/jZqcYursbSw9WMhoUUCJgcvNwbEjl+WivivEkvNPTWj7IupF9+fDchO7/XwC9cfEM61 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, May 18, 2023 at 09:33:20AM -0700, Song Liu wrote: > I am working on patches based on the discussion in [1]. I am planning to > send v1 for review in a week or so. Hey Song, I was reviewing that thread too, Are you taking a different approach based on Thomas's feedback? I think he had some fair points in that thread. My own feeling is that the buddy allocator is our tool for allocating larger variable sized physically contiguous allocations, so I'd like to see something based on that - I think we could do a hybrid buddy/slab allocator approach, like we have for regular memory allocations. I started on a slab allocator for executable memory allocations the other day (very minimal, but tested it for bcachefs and it works). But I'd love to hear more about your current approach as well. Cheers, Kent