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 C27D6C433EF for ; Mon, 21 Feb 2022 15:53:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379698AbiBUPyO (ORCPT ); Mon, 21 Feb 2022 10:54:14 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:54660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379695AbiBUPyM (ORCPT ); Mon, 21 Feb 2022 10:54:12 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6318C26AF2 for ; Mon, 21 Feb 2022 07:53:49 -0800 (PST) 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=2TqQ5tRnp0eoGVknHFyaLoJzJMPsgZYTcbNRq7FHagU=; b=wLMc/Rg+ITMwdTiRmPZG3N00Gs vz/8IeufoThPVafZriOUNk3MriGnbrudifGg2G9Gnb1GHrZF3G+VHp4PFqkI5cK4830P0CbcecSZU crDwpYFjBlNBNlLdowIWURvNh3dU4bzDPrj8/Ow8LROPCmVxMyxY3j3dwdOPRFnIhyV4Afcaz6Zyk OZa2dpPw+NI2rI8ogND9dKYvekrfYCQ7/Cm5XnRPSQpdVvajtt5lPLfglDijMTr44ye97aO4/APfP OWxJcDVblxQNqtctdiDvRXb+yMUtPhB+/WsanXHpJoCY1tWu3kNw1kMOq8MAf1fx5w0Lt88dOnPeT tOQlmX4w==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMB0O-001xiY-09; Mon, 21 Feb 2022 15:53:40 +0000 Date: Mon, 21 Feb 2022 15:53:39 +0000 From: Matthew Wilcox To: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: linux-mm@kvack.org, Roman Gushchin , Andrew Morton , Vlastimil Babka , linux-kernel@vger.kernel.org, Joonsoo Kim , David Rientjes , Christoph Lameter , Pekka Enberg Subject: Re: [PATCH 3/5] mm/slab: Do not call kmalloc_large() for unsupported size Message-ID: References: <20220221105336.522086-1-42.hyeyoo@gmail.com> <20220221105336.522086-4-42.hyeyoo@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220221105336.522086-4-42.hyeyoo@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 21, 2022 at 10:53:34AM +0000, Hyeonggon Yoo wrote: > SLAB's kfree() does not support freeing an object that is allocated from > kmalloc_large(). Fix this as SLAB do not pass requests larger than > KMALLOC_MAX_CACHE_SIZE directly to page allocator. I was wondering if we wanted to go in the other direction and get rid of kmalloc cache sizes larger than, say, 64kB from the SLAB allocator.