Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1061681iob; Thu, 28 Apr 2022 18:05:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmBViI2sqGza/Bu9ecYbKfcOuVwYqcxLzWMvO+DxsUCtX1HFttNqHZIbXXAF27Fy2t4R2K X-Received: by 2002:a05:6512:693:b0:472:346e:64f2 with SMTP id t19-20020a056512069300b00472346e64f2mr5257220lfe.623.1651194304064; Thu, 28 Apr 2022 18:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651194304; cv=none; d=google.com; s=arc-20160816; b=fT0NXMNENnrkFdfDAEraFN41u02SinfyMTG6Sya6++XE7y5LrHOPmon5jkvSGOVwoD V0K28eJyZH2wCGiSLq7RLwoJxvgrRP34BDWnWt+VSvLJ10bCHKvBCMeixN/pgpCKHbe6 tJclj5Du8uEY9nHERMawaxBsND9QiCHvIeNH3S/xRTUdkw1DYRq95dpMGP1aCrdr/pmK vRDMdcnTenbi3lOLAseP/Zh2O1zKaVfcnCpGMm230lRvhTd/Fok5XljOD3oAg5VGVLey sLY5PkiB9Sej5jwxSR7ZQCAcREkz2YQa6dhH6IFnDuhUjkxsCzfuQaUg0v7MFE4RyTJK qWkg== 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=staRmhhoFTpyzY4bmoGFNp1v/Je4AKSeU0LxuCL4jDU=; b=YFFqESFkpIfTu5QV3Sv5SR37/9W3CbrnObws70M9VUDGRLM6HkIYIg2PXqzJApYA5H CbljjccxvXYvyO4tyL5/ybfbtNwd0caVwC7KVpA2BstaQW53grl5xIN2k5ndH+h3C19e lC2Z9A9CTiQan1B9DR6ZmBa3FH4nYzbbn6U5Nebp43WwCILMlV+mTGlu7QhofQmiWml2 WYjcbzTvxwASHdQo9ZXzWUn/s+UpRoIBACB51MHu0YKv3HlkhwfACgGg9Fi5LVAlu6JC wxfs0RNpGJh1WPXQ+7BUYjfcs6cm4Rq3PrqGs5bkMoPr5rdCDY1UdUuLjoQrzZmErnl9 EDew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hqHWSiUo; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h4-20020a056512220400b00471fdc00eccsi6280735lfu.104.2022.04.28.18.04.37; Thu, 28 Apr 2022 18:05:04 -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=@gmail.com header.s=20210112 header.b=hqHWSiUo; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345538AbiD1LeI (ORCPT + 99 others); Thu, 28 Apr 2022 07:34:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345591AbiD1Ld6 (ORCPT ); Thu, 28 Apr 2022 07:33:58 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B132C1E3D1 for ; Thu, 28 Apr 2022 04:30:44 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id z16so4006544pfh.3 for ; Thu, 28 Apr 2022 04:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=staRmhhoFTpyzY4bmoGFNp1v/Je4AKSeU0LxuCL4jDU=; b=hqHWSiUoHqyucL9B+7Xovyqujly0/ugOcnWDtDiN8oqihfAWB3RIpcDDXpM5jV15hg hTTlGPr3vXZRbJEmMPxe+48hchpbpDQzU9bfmKH90Q3gDCvNlq5F/Colly/UkdD2GC8h Z498WozUjhxAMqgWkj7eE/fObrJZXKE6RCpmtDvuQmmQ0u2C/rrZg4VSC+uU8OpHYk3p EiGnC1lTGNxR81i2k0/0bNLq6rY0x5G1fLV4zpQ6NuW/MfiWfB84djujM1Bgn06h86dG fhKx8kxM5BPben913+t8OLYYFey76abD2FhmjWoh7/ZQ9G9kcTs37BXGHUdTf2iCoTwq dDFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=staRmhhoFTpyzY4bmoGFNp1v/Je4AKSeU0LxuCL4jDU=; b=PiNQOOBuT3/huEbe5Nv78FaNsxX38AlBBlyZa1Qy7civ2u7Q3cygDiHz0Qdkl8fdDC yHxXQoJZ92txSbBXKkI3wtwjTpg9NS3kBEaIsRbAqZhxgBIdvshiC/P86S8VttwvMHgL 1qh4oSMpgVS+KPNYDbCtduTisGf2LGNV/q84giObeoH2pUBubNkqZtDS1BIxBBe8GeJb 5fCV3Zw5hjCV89EyuU5Vmvx7E7HpFf8hamy5bt6a6VEs0cbSz2993PCl4j92YcXFi4wS hSvdy8HgEBOqtCqLSBRaGHKI98jJy6ATaoCKgrwav4ORhq02+fG1YuCFW4TAWX0+kiVk OxlQ== X-Gm-Message-State: AOAM532X6Aj0KHhVvQqFVDJY/VGEAZjSLuKtwsYTATZJPfMovL2a3H9I iFg+oUBNTSYeNMLc9JVWgrs= X-Received: by 2002:a05:6a00:1908:b0:4f7:8813:b2cb with SMTP id y8-20020a056a00190800b004f78813b2cbmr34479446pfi.54.1651145444215; Thu, 28 Apr 2022 04:30:44 -0700 (PDT) Received: from hyeyoo ([114.29.24.243]) by smtp.gmail.com with ESMTPSA id w123-20020a623081000000b005056a4d71e3sm22029839pfw.77.2022.04.28.04.30.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Apr 2022 04:30:43 -0700 (PDT) Date: Thu, 28 Apr 2022 20:30:36 +0900 From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: Joe Perches Cc: Vlastimil Babka , Marco Elver , Matthew WilCox , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Roman Gushchin , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 12/23] mm/slab_common: cleanup kmalloc() Message-ID: References: <20220414085727.643099-1-42.hyeyoo@gmail.com> <20220414085727.643099-13-42.hyeyoo@gmail.com> <50118b134e9495c5264adf62d998a5c5386d6a55.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50118b134e9495c5264adf62d998a5c5386d6a55.camel@perches.com> X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HK_RANDOM_ENVFROM, HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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, Apr 26, 2022 at 11:00:32AM -0700, Joe Perches wrote: > On Thu, 2022-04-14 at 17:57 +0900, Hyeonggon Yoo wrote: > > Now that kmalloc() and kmalloc_node() do same job, make kmalloc() > > wrapper of kmalloc_node(). > > Why make every kmalloc larger object code size ? > > What is the overall object size change in a typical defconfig ? Thank you for pointing this. It increases every call to kmalloc() is increased (+5 bytes) due to passing NUMA_NO_NODE. on x86_64's defconfig, the difference of vmlinux size is not that visible because this patch also removes tracepoint. But yeah, increasing 5 bytes for every caller seems questionable. I'll think about this for a bit :) Thanks! -- Thanks, Hyeonggon