Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8205682rwb; Wed, 23 Nov 2022 17:31:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf61g/ADcVTtwf47IjjQhUGKhkWyxYtQALFPbdFAd+YQWVaxtmEEPnpoVQDgCrsJQRBz82jj X-Received: by 2002:a17:907:7f8e:b0:7bb:52b2:4162 with SMTP id qk14-20020a1709077f8e00b007bb52b24162mr449279ejc.608.1669253494755; Wed, 23 Nov 2022 17:31:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669253494; cv=none; d=google.com; s=arc-20160816; b=Yc9WObTz+zn1H3exOlKXIKNG2reJyTXOLtkivNSNm3XeTOYBp937kL58VJ46oVhD61 L7dRBbb519xwyQeCFyce2Q65Vk5IAq8MtZDppBA9/hkHXUAuIrzlrvJcaqBeri717T66 rRI3sA9aFOsxk7ySas+jCs9oKjgRqHNRDLrbh0bJdfEFa03WjIHb+6l6Bx2RC8TVxJ+J 0tu1WqLLkX5skQWp43Jf2SmVEQqjHtBfaD38wci5LW09vJWuqgKxsl+plkXjpjHnkuPI 1rZgCDqg9H7HBNJ3UpH+gHfLpySBTIngSoVq9nRr4SDjPJ0jstj/JDb5CmgMcB1ls1G4 mfLg== 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=X10ndcuj6qHWzQmi4w31+6lj2UzJf4XjRKHTMNK22xA=; b=fPKFVN0qcPyCnYGZB8oJRFHnBzlvLlSMrwHLmj2MzzBHZaIqEWRRtyPThp+oKamcVl Aiqw3PG3lSIPUnaC4EQLvbKdLwHF3In4uK9ScDzmxBglsGFeHBaRkiF02z932XFCaFkJ upxiX6i24HClSbGId/I5kbirK/ByKGEUHdTiKzpTz0+wL7OfBh7dDLlwslb7qpTmzCys E9z4xLQwNVECIlQ51HfUH8GyLOvyIyDfEHfM7l+53ADrQITUoPyNfQT1Hn6rl4GhjLy4 u8/zKdLmKfx5EM7hPS7IAbyN9bfIzky0kspeUZR2ebqFSUwIGMGVoeFs/TCJfLWwhBhL z4Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="e0Q3wb/H"; 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 js2-20020a17090797c200b007ae75edfa25si192927ejc.63.2022.11.23.17.31.13; Wed, 23 Nov 2022 17:31:34 -0800 (PST) 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="e0Q3wb/H"; 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 S229847AbiKXBQZ (ORCPT + 89 others); Wed, 23 Nov 2022 20:16:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229673AbiKXBQY (ORCPT ); Wed, 23 Nov 2022 20:16:24 -0500 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89FE9FF423 for ; Wed, 23 Nov 2022 17:16:23 -0800 (PST) Date: Wed, 23 Nov 2022 17:16:17 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1669252582; 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=X10ndcuj6qHWzQmi4w31+6lj2UzJf4XjRKHTMNK22xA=; b=e0Q3wb/H+DLIDd0sI4f0wcZ9ndVg9eOU4za2VvlRXG1glYig38lDN8jYW9chPpHFfsYm/Q LgRQJORtMKohoWvwd+/13AI8ddbb7/bQBGZoY7kzeXMdywfPYrubPq9VeyAsIMhRw9eNWq H+Z8YvM+em1ArcUWSfnyzQntsE+CRdk= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Vlastimil Babka Cc: Christoph Lameter , David Rientjes , Joonsoo Kim , Pekka Enberg , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Andrew Morton , Linus Torvalds , Matthew Wilcox , patches@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 05/12] mm, slub: lower the default slub_max_order with CONFIG_SLUB_TINY Message-ID: References: <20221121171202.22080-1-vbabka@suse.cz> <20221121171202.22080-6-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221121171202.22080-6-vbabka@suse.cz> 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_PASS,SPF_PASS 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 Mon, Nov 21, 2022 at 06:11:55PM +0100, Vlastimil Babka wrote: > With CONFIG_SLUB_TINY we want to minimize memory overhead. By lowering > the default slub_max_order we can make slab allocations use smaller > pages. However depending on object sizes, order-0 might not be the best > due to increased fragmentation. When testing on a 8MB RAM k210 system by > Damien Le Moal [1], slub_max_order=1 had the best results, so use that > as the default for CONFIG_SLUB_TINY. > > [1] https://lore.kernel.org/all/6a1883c4-4c3f-545a-90e8-2cd805bcf4ae@opensource.wdc.com/ > > Signed-off-by: Vlastimil Babka Acked-by: Roman Gushchin Thanks!